CN102360499B - Multi-lane line tracking method based on Kalman filter bank - Google Patents

Multi-lane line tracking method based on Kalman filter bank Download PDF

Info

Publication number
CN102360499B
CN102360499B CN201110180895.8A CN201110180895A CN102360499B CN 102360499 B CN102360499 B CN 102360499B CN 201110180895 A CN201110180895 A CN 201110180895A CN 102360499 B CN102360499 B CN 102360499B
Authority
CN
China
Prior art keywords
lane line
kalman filter
state
lane
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110180895.8A
Other languages
Chinese (zh)
Other versions
CN102360499A (en
Inventor
解梅
马争
马超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Houpu Clean Energy Group Co ltd
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201110180895.8A priority Critical patent/CN102360499B/en
Publication of CN102360499A publication Critical patent/CN102360499A/en
Application granted granted Critical
Publication of CN102360499B publication Critical patent/CN102360499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Traffic Control Systems (AREA)

Abstract

一种基于卡尔曼滤波器组的多车道线追踪方法,属于数字图像处理技术领域。通过建立建立车道线追踪的卡尔曼滤波器模型,对采集的车辆前方道路图像在进行车道线检测的基础上,利用卡尔曼滤波器模型输出车道线的最优估计值;当连续25幅道路图像检测出同一条车道线时,认为卡尔曼滤波器的最优估计有效,并将卡尔曼滤波器输出的最优估计值作为检测结果。本发明使得车道偏离预警系统中车道线的检测结果更加稳定,从而极大降低因车身抖动、光照变化、路面破损等原因引起的车道线检测不准或者漏检;根据设定的滤波器的个数,可以同时追踪相应的车道线数,相对单一对车道线感兴趣区域的追踪,极大的提高了车道线检测的精度以及抗干扰能力。

Figure 201110180895

The invention discloses a multi-lane line tracking method based on a Kalman filter bank, which belongs to the technical field of digital image processing. By establishing a Kalman filter model for lane line tracking, the Kalman filter model is used to output the optimal estimated value of the lane line on the basis of lane line detection on the collected road images in front of the vehicle; when 25 consecutive road images When the same lane line is detected, the optimal estimate of the Kalman filter is considered valid, and the optimal estimate output by the Kalman filter is taken as the detection result. The invention makes the detection result of the lane line in the lane departure warning system more stable, thereby greatly reducing the inaccurate or missed detection of the lane line caused by the shaking of the vehicle body, the change of illumination, the damage of the road surface, etc.; The corresponding number of lane lines can be tracked at the same time, which greatly improves the accuracy of lane line detection and anti-interference ability compared with the single tracking of the area of interest of the lane line.

Figure 201110180895

Description

一种基于卡尔曼滤波器组的多车道线追踪方法A multi-lane tracking method based on Kalman filter bank

技术领域 technical field

本发明属于数字图像处理技术领域,主要涉及针对道路视频图像中已检测出的多条车道线同时进行追踪的方法。  The invention belongs to the technical field of digital image processing, and mainly relates to a method for simultaneously tracking multiple lane lines detected in road video images. the

背景技术 Background technique

车道偏离预警系统(Lane Departure Warning System,LDWS),是一种通过报警的方式辅助驾驶员减少汽车因车道偏离而发生交通事故的系统。社会经济的不断进步,以及现代计算机技术的飞速发展,融合了多传感器技术以及通信控制理论等新技术,使得LDWS的普及应用成为可能,从而最大限度的提高汽车驾驶的安全性,将社会经济损失减小到最低限度。  Lane Departure Warning System (Lane Departure Warning System, LDWS) is a system that assists the driver to reduce traffic accidents caused by lane departure by means of an alarm. The continuous progress of social economy and the rapid development of modern computer technology, the integration of new technologies such as multi-sensor technology and communication control theory, make the popularization and application of LDWS possible, thereby maximizing the safety of driving and reducing social and economic losses. reduced to a minimum. the

目前LDWS的实现方式都是基于计算机视觉的方法实现,首先在采集的道路视频图像中识别车道线,再根据车辆位置与车道线的关系判断是否发出偏离预警。因为车道线是对车辆是否发生偏离进行判断的参照,所以LDWS实现的首要条件就是要通过数字图像处理的方法准确的检测出车道线。然而车辆在行驶过程中由于车身抖动、光线变化、路面污浊以及车道线破损等等情况都会造成采集到的道路视频图像中同一条车道线目标检测结果不稳定,从而导致某一帧或某几帧图像完全目标偏差或丢失,就会影响LDWS预警不准确。  At present, the implementation of LDWS is based on the method of computer vision. First, the lane line is recognized in the collected road video images, and then it is judged whether to issue a departure warning according to the relationship between the vehicle position and the lane line. Because the lane line is a reference for judging whether the vehicle has deviated, the first condition for the realization of LDWS is to accurately detect the lane line through digital image processing. However, during the driving process of the vehicle, due to vehicle body shaking, light changes, road pollution, and lane line damage, etc., the detection results of the same lane line in the collected road video images will be unstable, resulting in a certain frame or several frames. If the image completely deviates from or loses the target, it will affect the inaccuracy of LDWS early warning. the

因此,在采用数字图像处理的方法检测出车道线以后,必须采用目标追踪的方法,将已经检测出的车道线作为样本,进行样本训练,预测最优估计值,完成车道线的追踪。最后输出的最优估计值取代观测值进行预警,就会使LDWS工作状态更加更加平稳,极大的降低了因车道线检测误差对LDWS性能的影响。因此本发明提出了采用卡尔曼滤波器组同时对已检测出的多条车道线进行追踪,可以大大提高车道线检测精度。  Therefore, after the lane lines are detected by digital image processing, the target tracking method must be used to use the detected lane lines as samples for sample training to predict the optimal estimated value and complete the lane line tracking. The final output of the optimal estimated value replaces the observed value for early warning, which will make the working state of LDWS more stable and greatly reduce the impact of lane line detection errors on LDWS performance. Therefore, the present invention proposes to use a Kalman filter group to track multiple detected lane lines at the same time, which can greatly improve the detection accuracy of lane lines. the

目前对车道线进行目标追踪的实现方法有以下几种:  At present, there are several ways to realize the target tracking of lane lines:

1、将完全包含已检测出的车道线在内的四边形区域的坐标作为样本信息输入卡尔曼滤波器,从而预测下一幅序列图像中包含车道线的区域,将其定义为感兴趣区域(Region of Interest,ROI),以加快车道线检测速度以及准确度,利用了单个卡尔曼滤波器对包含车道线的感兴趣区域进行追踪。虽然本方法加快了检测速度,但是当在预测结果ROI内检测不出车道线,系统就不能正常工作。本方法详见文献:郑榜贵,田炳香,段建民.基于Kalman预测 及逆投影的车道识别技术.计算机工程与设计.2009,30(6).  1. Input the coordinates of the quadrilateral area completely including the detected lane line into the Kalman filter as sample information, so as to predict the area containing the lane line in the next sequence image, and define it as the region of interest (Region of Interest, ROI), in order to speed up the speed and accuracy of lane line detection, a single Kalman filter is used to track the region of interest containing lane lines. Although this method speeds up the detection speed, when the lane line cannot be detected in the prediction result ROI, the system cannot work normally. This method is detailed in the literature: Zheng Banggui, Tian Bingxiang, Duan Jianmin. Lane Recognition Technology Based on Kalman Prediction and Back Projection. Computer Engineering and Design. 2009,30(6). 

2、对感兴趣区域小窗口的预测。根据已经检测出来的车道线,定义一个小区域只包含了一条车道线的一部分,将此小区域坐标作为样本信息输入卡尔曼滤波器从而预测下一个包含本条车道线的小区域,本方法是对1方法的改进,将感兴趣区域从包含所有车道线缩小到只包含一条车道线的某一部分,提高了车道线检测精度,但是仍然不能完全避免LDWS不能正常检测出车道线的问题,本方法详见文献:余厚云,张为公.基于动态感兴趣区域的车道线识别与跟踪.工业仪表与自动化装置.2009年第5期.  2. Prediction of the small window of the region of interest. According to the lane lines that have been detected, define a small area that only contains a part of a lane line, and input the coordinates of this small area as sample information into the Kalman filter to predict the next small area that contains this lane line. This method is for 1 The improvement of the method narrows the area of interest from including all lanes to only a certain part of a lane, which improves the detection accuracy of lanes, but still cannot completely avoid the problem that LDWS cannot detect lanes normally. This method is detailed See literature: Yu Houyun, Zhang Weigong. Lane Line Recognition and Tracking Based on Dynamic Region of Interest. Industrial Instrumentation and Automation Devices. Issue 5, 2009.

3、采用其他滤波器算法来对车道线进行追踪,如采用扩展卡尔曼滤波器技术和图像处理技术,建立车道跟踪的动态视觉窗口,再提取出车道边界的方法,详见文献:陈莹,韩崇昭.基于扩展卡尔曼滤波的车道融合跟踪.公路交通科技.Vol.12,No.12,Nov.2004.也有采用一种基于对比度和大津律法相结合的车道标线有效ROI的筛选处理算法,并对有效ROI进行了自适应阈值图像分割,通过对ROI的有效筛选,可以降低车道标线不连续处或破损等影响,详见文献:管欣,贾鑫,高振海.车道检测中感兴趣区域选择及自适应阈值分割.公路交通科技.Vol.26,No.6,Jun.2009.  3. Use other filter algorithms to track lane lines, such as using extended Kalman filter technology and image processing technology to establish a dynamic visual window for lane tracking, and then extract the lane boundaries. For details, see the literature: Chen Ying, Han Chongzhao. Lane Fusion Tracking Based on Extended Kalman Filter. Highway Traffic Science and Technology. Vol.12, No.12, Nov.2004. There is also an effective ROI screening algorithm for lane markings based on the combination of contrast and Otsu Law , and carried out adaptive threshold image segmentation on the effective ROI. Through the effective screening of the ROI, the influence of the discontinuity or damage of the lane markings can be reduced. For details, see the literature: Guan Xin, Jia Xin, Gao Zhenhai. Interested in lane detection Region Selection and Adaptive Threshold Segmentation. Highway Traffic Science and Technology. Vol.26, No.6, Jun.2009.

上述各种追踪算法都是采用单一滤波器对车道线ROI进行追踪,接着在ROI内识别车道线从而间接完成车道线的追踪。随着经济社会的不断发展,高等级路面车道越来越宽,同时图像采集设备的成像质量也越来越高,必然会导致一幅图像出现多条车道线,此时采用上述追踪算法难以准确追踪检测到的每一条车道线,在此背景下,本发明采用卡尔曼滤波器组直接对所检测到的多条车道线目标进行追踪,而不再需要对车道线ROI区域进行追踪。  The above-mentioned tracking algorithms use a single filter to track the lane line ROI, and then identify the lane line in the ROI to indirectly complete the lane line tracking. With the continuous development of the economy and society, the lanes of high-grade roads are getting wider and wider, and the imaging quality of image acquisition equipment is getting higher and higher, which will inevitably lead to multiple lane lines in one image. At this time, it is difficult to use the above tracking algorithm accurately. Each detected lane line is tracked. In this context, the present invention uses a Kalman filter bank to directly track multiple detected lane line objects without tracking the lane line ROI area. the

发明内容 Contents of the invention

本发明提出一种基于卡尔曼滤波器组的多车道线追踪方法,该方法不需要预先设定车道线感兴趣区域,可以直接对已检测出的多车道线进行追踪。本方法可以极大的提高车道线检测的准确度,同时不影响LDWS对于实时性的要求。  The present invention proposes a multi-lane line tracking method based on a Kalman filter group. The method does not need to pre-set the area of interest of the lane line, and can directly track the detected multi-lane lines. This method can greatly improve the accuracy of lane line detection without affecting the real-time requirements of LDWS. the

为了方便地描述本发明内容,首先对一些术语进行定义。  In order to describe the content of the present invention conveniently, some terms are defined first. the

定义1:卡尔曼滤波。卡尔曼滤波(Kalman Filter,KF)是估计线性动态系统状态的递归数据处理算法,通过对样本训练的动态更新,不断预测描述下一状态和测量数据。卡尔曼滤波器原理及实现过程详见文献:何子述.现代数字信号处理及其应用.清华大学出版社.第 七章:卡尔曼滤波.  Definition 1: Kalman filtering. Kalman Filter (KF) is a recursive data processing algorithm for estimating the state of a linear dynamic system. Through the dynamic update of sample training, it continuously predicts and describes the next state and measurement data. The principle and implementation process of the Kalman filter are detailed in the literature: He Zishu. Modern digital signal processing and its application. Tsinghua University Press. Chapter 7: Kalman filter. 

定义2:霍夫变换。即Hough变换,利用直线平面空间和霍夫平面点、线间的对偶性,即图像直线空间里共线的点对应霍夫平面里相交的直线;反过来,霍夫平面相交于同一点的所有直线在图像空间里都有共线的点与之对应。利用霍夫变换可以将直线特征搜索问题转化为霍夫平面最大值搜索问题,是直线特征提取领域中使用最为广泛的算法之一。原理及实现过程详见文献:冈萨雷斯.数字图像处理.电子工业出版社.第10章:图像分割.  Definition 2: Hough transform. That is, the Hough transform uses the duality between the straight line plane space and the Hough plane points and lines, that is, the collinear points in the image straight line space correspond to the intersecting lines in the Hough plane; conversely, all the Hough planes intersect at the same point Lines have collinear points corresponding to them in the image space. The Hough transform can transform the linear feature search problem into the Hough plane maximum search problem, which is one of the most widely used algorithms in the field of linear feature extraction. For the principle and implementation process, please refer to the literature: Gonzales. Digital Image Processing. Electronic Industry Press. Chapter 10: Image Segmentation. 

一种基于卡尔曼滤波器组的多车道线追踪方法,包括以下步骤:  A multi-lane line tracking method based on Kalman filter bank, comprising the following steps:

步骤1:在车辆行驶过程中,采用车载视频采集设备采集车辆前方道路图像;并将采集到的道路图像数据输入计算机,进行车道线检测。  Step 1: During the driving process of the vehicle, the vehicle-mounted video acquisition equipment is used to collect the road image in front of the vehicle; and the collected road image data is input into the computer for lane line detection. the

使用Hough变换检测出车道线,用侧向距离ρ和方位角θ表示检测出的车道线,即(ρi,θi)(其中i=1,2,3…代表车道线的个数),表示道路图像上检测出的车道线。使用Hough变换进行车道线检测的详细算法参见文献:刘叹.基于单目视觉的车辆行驶辅助技术研究.电子科技大学硕士学位论文.2009.09.17.  Use the Hough transform to detect the lane lines, and use the lateral distance ρ and the azimuth angle θ to represent the detected lane lines, that is, (ρ i , θ i ) (where i=1, 2, 3... represent the number of lane lines), Indicates the lane lines detected on the road image. For the detailed algorithm of lane line detection using Hough transform, please refer to the literature: Liu Tan. Research on Vehicle Driving Assistance Technology Based on Monocular Vision. University of Electronic Science and Technology of China Master's Degree Thesis. 2009.09.17.

步骤2:建立车道线追踪的卡尔曼滤波器模型。  Step 2: Establish a Kalman filter model for lane tracking. the

步骤2-1:定义车道线状态;  Step 2-1: Define the state of the lane line;

由于车辆在连续两帧视频图像采集过程中的运动可视为匀速运动,对于每一帧道路图像中检测到的车道线的状态用状态向量X(k)表示:  Since the motion of the vehicle during the acquisition of two consecutive frames of video images can be regarded as a uniform motion, the state of the lane line detected in each frame of road image is represented by a state vector X(k):

X(k)=[ρ(k),θ(k),u(k),ω(k)]T X(k)=[ρ(k), θ(k), u(k), ω(k)] T

其中

Figure GDA0000381718580000031
表示车辆在状态k,即t时刻的径向速度,表示车辆在状态k,即t时刻的角速度。  in
Figure GDA0000381718580000031
Indicates the radial velocity of the vehicle at state k, that is, at time t, Indicates the angular velocity of the vehicle at state k, that is, at time t.

步骤2-2:定义车道线追踪过程中卡尔曼滤波器的状态方程;  Step 2-2: Define the state equation of the Kalman filter in the lane tracking process;

因为系统由状态X(k)到下一状态X(k+1)满足下式:  Because the system satisfies the following formula from state X(k) to the next state X(k+1):

ρρ (( kk ++ 11 )) == ρρ (( kk )) ++ uu (( kk )) ++ ww 11 (( kk ++ 11 )) θθ (( kk ++ 11 )) == θθ (( kk )) ++ ωω (( kk )) ++ ww 22 (( kk ++ 11 )) uu (( kk ++ 11 )) == uu (( kk )) ++ ww 33 (( kk ++ 11 )) ωω (( kk ++ 11 )) == ωω (( kk )) ++ ww 44 (( kk ++ 11 ))

设定状态k的系统噪声为:W(k)=[w1(k),w2(k),w3(k),w4(k)]T,因此卡尔曼滤波器的状态方程表示为:  The system noise of the set state k is: W(k)=[w 1 (k), w 2 (k), w 3 (k), w 4 (k)] T , so the state equation of the Kalman filter expresses for:

X(k)=AX(k-1)+W(k)  X(k)=AX(k-1)+W(k)

其中 A = 1 0 1 0 0 1 0 1 0 0 1 0 0 0 0 1 in A = 1 0 1 0 0 1 0 1 0 0 1 0 0 0 0 1

步骤2-3:定义车道线追踪过程的观测方程;  Step 2-3: Define the observation equation of the lane line tracking process;

由于观测值是实际状态值与噪声影响的结果,即观测值可表示如下:  Since the observed value is the result of the actual state value and the influence of noise, the observed value can be expressed as follows:

ZZ (( kk )) == zz 11 (( kk )) zz 22 (( kk )) == ρρ (( kk )) ++ vv 11 (( kk )) θθ (( kk )) ++ vv 22 (( kk ))

因此得到观测方程为:  So the observation equation is obtained as:

Z(k)=HX(k)+V(k)  Z(k)=HX(k)+V(k)

其中测量矩阵 H = 1 0 0 0 0 1 0 0 , V(k)为观测噪声、且V(k)=[v1(k),v2(k)]T where the measurement matrix h = 1 0 0 0 0 1 0 0 , V(k) is the observation noise, and V(k)=[v 1 (k), v 2 (k)] T

步骤2-4:定义卡尔曼滤波器迭代更新方程:  Step 2-4: Define the Kalman filter iterative update equation:

X(k|k)=X(k|k-1)+Kg(k)(Z(k)-HX(k|k-1))  X(k|k)=X(k|k-1)+Kg(k)(Z(k)-HX(k|k-1)) 

其中:  in:

Kg(k)=P(k|k-1)HT/(HP(k|k-1)HT+R)  Kg(k)=P(k|k-1)H T /(HP(k|k-1)H T +R)

P(k|k)=(I-Kg(k)H)P(k|k-1)  P(k|k)=(I-Kg(k)H)P(k|k-1)

X(k|k)为卡尔曼滤波器输出的k状态的最优化估计值,X(k|k-1)为利用k-1状态预测出的 k状态的结果,Kg(k)是状态k下卡尔曼滤波器增益,Z(k)是状态k的观测值,H是测量矩阵。  X(k|k) is the optimal estimated value of the k state output by the Kalman filter, X(k|k-1) is the result of the k state predicted by the k-1 state, and Kg(k) is the state k The lower Kalman filter gain, Z(k) is the observed value of state k, and H is the measurement matrix. the

步骤3:系统初始化  Step 3: System initialization

步骤3-1:设定状态向量初值;  Step 3-1: Set the initial value of the state vector;

由卡尔曼滤波器基本原理可知,只要初始状态满足E[X(0)]=E[X(0|0)],所得到的估计值就是无偏的,因此设定系统初始状态为零向量,即  According to the basic principle of Kalman filter, as long as the initial state satisfies E[X(0)]=E[X(0|0)], the estimated value obtained is unbiased, so the initial state of the system is set as the zero vector ,Right now

X(0)=[0 0 0 0]T X(0)=[0 0 0 0] T

步骤3-2:设定系统噪声初始值;  Step 3-2: Set the initial value of system noise;

系统噪声W(k)为零均值随机过程向量,并且不同时刻状态下系统噪声是统计独立的,其相关矩阵满足下式:  The system noise W(k) is a zero-mean random process vector, and the system noise is statistically independent at different time states, and its correlation matrix satisfies the following formula:

EE. [[ WW (( nno )) WW Hh (( kk )) ]] == QQ (( nno )) δδ (( nno -- kk )) == QQ (( nno )) ,, kk == nno 00 ,, kk ≠≠ nno

假定同时刻不同状态噪声间也是统计独立的,因此矩阵Q(k)是对角矩阵。因为系统噪声由于车辆机动性能引起,在追踪过程中影响不大,为了计算方便,根据经验数据假设w1(k),w2(k),w3(k),w4(k)独立同分布,并且满足

Figure GDA0000381718580000053
因此设定系统噪声初始值为:  It is assumed that the noises of different states at the same time are also statistically independent, so the matrix Q(k) is a diagonal matrix. Because the system noise is caused by the maneuverability of the vehicle, it has little influence in the tracking process. For the convenience of calculation, it is assumed that w 1 (k), w 2 (k), w 3 (k), and w 4 (k) are independent and distribution, and satisfy
Figure GDA0000381718580000053
Therefore, the initial value of the system noise is set as:

QQ (( kk )) == EE. [[ WW (( kk )) WW Hh (( kk )) ]] == 0.050.05 00 00 00 00 0.050.05 00 00 00 00 0.050.05 00 00 00 00 0.050.05

步骤3-3:设定观测噪声初始值;  Step 3-3: Set the initial value of observation noise;

根据经验数据可知观测噪声比系统噪声影响大,并且v1(k),v2(k)满足独立同分布,设定 

Figure GDA0000381718580000055
所以设定观测噪声初始值为:  According to the empirical data, it can be seen that the observation noise is more influential than the system noise, and v 1 (k), v 2 (k) satisfy independent and identical distribution, set
Figure GDA0000381718580000055
Therefore, the initial value of the observation noise is set as:

RR (( kk )) == EE. [[ VV (( kk )) VV TT (( kk )) ]] == 11 00 00 11

步骤3-4:设定观测噪声自相关值;  Step 3-4: Set the observed noise autocorrelation value;

为了追踪迅速收敛,观测噪声自相关值取为100,设定初始值如下:  In order to track rapid convergence, the observation noise autocorrelation value is set to 100, and the initial value is set as follows:

PP (( 00 )) == 100100 ×× 11 00 00 00 00 11 00 00 00 00 11 00 00 00 00 11

步骤4:采用20组卡尔曼滤波器,全部采用步骤3中设定的初始值,根据步骤2-4定义的卡尔曼滤波器迭代更新方程完成一次卡尔曼滤波器的迭代运算,输出一组车道线的最优估计值(ρi,θi)i=1,2,3,…,20  Step 4: Use 20 groups of Kalman filters, all using the initial values set in step 3, complete an iterative operation of the Kalman filter according to the Kalman filter iterative update equation defined in steps 2-4, and output a set of lanes The optimal estimated value of the line (ρ i , θ i )i=1, 2, 3, ..., 20

步骤5:对单个滤波器进行使能控制。  Step 5: Perform enable control on a single filter. the

步骤5-1:将道路图像中检测到的一条车道线定义为(ρ,θ),分别按下式求出(ρ,θ)到(ρi,θi)i=1,2,3,…,20的距离Di Step 5-1: Define a lane line detected in the road image as (ρ, θ), and obtain (ρ, θ) to (ρ i , θ i ) i=1, 2, 3, ..., a distance D i of 20

Di=|ρ-ρi|+|θ-θi|*Wimage D i =|ρ-ρ i |+|θ-θ i |*W image

其中Wimage表示道路图像的像素宽度。  Where W image represents the pixel width of the road image.

步骤5-2:求出最小距离Dmin=min(Di),并且记上一次迭代的距离最小值为Dmin′。  Step 5-2: Calculate the minimum distance D min =min(D i ), and record the minimum distance value of the last iteration as D min ′.

步骤5-3:每组滤波器对应的使能计数器记为Ci,并且满足下式  Step 5-3: The enable counter corresponding to each group of filters is denoted as C i , and satisfies the following formula

Figure GDA0000381718580000063
Figure GDA0000381718580000063

即当最小距离小于或者等于上一次迭代的最小距离时,计数值加1,反之计数值减1。  That is, when the minimum distance is less than or equal to the minimum distance of the previous iteration, the count value is increased by 1, otherwise the count value is decreased by 1. the

步骤5-4:对车道线进行追踪,设定有效的样本输入数为25,即当连续25幅道路图像检 测出同一条车道线时,认为卡尔曼滤波器的最优估计有效,否则认为正确的样本数不足,而不进行追踪,因此将Ci通过门限[0,25],即按下式进行处理Ci:  Step 5-4: Track the lane line, set the effective sample input number to 25, that is, when the same lane line is detected in 25 consecutive road images, the optimal estimate of the Kalman filter is considered valid, otherwise it is considered correct The number of samples of is insufficient, so no tracking is performed, so C i passes through the threshold [0, 25], that is, C i is processed according to the following formula:

CC ii == 2525 CC ii &GreaterEqual;&Greater Equal; 2525 CC ii CC ii << 2525

步骤5-5:得到每个滤波器的使能Ei表示如下:  Step 5-5: Get the enable E i of each filter as follows:

EE. ii == 11 CC ii == 2525 00 CC ii << 2525 ,, ii == 1,2,31,2,3 ,, .. .. .. ,, 2020

步骤6:将卡尔曼滤波器输出的最优估计值作为检测结果。  Step 6: Take the optimal estimated value output by the Kalman filter as the detection result. the

将滤波器组的使能位Ei=1的最优估计值作为检测结果代替检测值,可以使得车道偏离预警系统中车道线的检测结果更加稳定,从而极大降低因车身抖动、光照变化、路面破损等原因引起的车道线检测不准或者漏检。  Using the optimal estimated value of the enable bit E i =1 of the filter bank as the detection result instead of the detection value can make the detection result of the lane line in the lane departure warning system more stable, thereby greatly reducing the impact caused by vehicle body shaking, illumination changes, Inaccurate or missed detection of lane lines caused by road damage and other reasons.

本发明的创新之处在于:  The innovation of the present invention is:

1、对车道线的追踪采用了滤波器组的概念,根据设定的滤波器的个数,可以同时追踪相应的车道线数,相对单一对车道线感兴趣区域的追踪,极大的提高了车道线检测的精度以及抗干扰能力。  1. The concept of filter group is adopted for the tracking of lane lines. According to the number of filters set, the corresponding number of lane lines can be tracked at the same time. Compared with the single tracking of the area of interest for lane lines, it greatly improves the The accuracy of lane line detection and anti-interference ability. the

2、加入了滤波器组中单个滤波器的使能位控制,没有检测出的车道线所对应的滤波器因此处于不工作状态,大大提升了追踪算法的运算速度。  2. The enable bit control of a single filter in the filter bank is added, and the filter corresponding to the undetected lane line is therefore in a non-working state, which greatly improves the calculation speed of the tracking algorithm. the

附图说明 Description of drawings

图1为本发明流程示意图。  Fig. 1 is a schematic flow chart of the present invention. the

图2为滤波器组输出值与检测值匹配次数计数(通过[0,25]阀门后的Ci)图,通过(a),(b),(c)的Ci值可知此时道路图像中检测出两条车道线。  Fig. 2 is a diagram of the number of matches between the output value of the filter bank and the detection value (C i after passing through the [0, 25] valve), and the road image at this time can be known by the value of C i in (a), (b) and (c) Two lane lines are detected in .

图3为测试视频内t=30s内ρ检测值、最优估计值、预测值曲线图。  Figure 3 is a curve diagram of ρ detection value, optimal estimated value, and predicted value within t=30s in the test video. the

具体实施方式 Detailed ways

本发明采用以上步骤,利用Matlab R2009(a)中的Video And Image Tool Box,实现了整个算法。在某高速段选取一段道路图像做测试,采用了卡尔曼滤波器组进行追踪,车道线检测正确率提高60%,每幅道路图像平均追踪时间只耗费0.08s,取得了非常理想的检测结果。  The present invention adopts above steps, utilizes the Video And Image Tool Box among the Matlab R2009 (a), has realized whole algorithm. A section of road image was selected for testing in a high-speed section, and the Kalman filter bank was used for tracking. The accuracy of lane line detection was increased by 60%, and the average tracking time of each road image was only 0.08s, which achieved very ideal detection results. the

需要说明的是:下列参数并不影响本专利的一般性。  It should be noted that the following parameters do not affect the generality of this patent. the

1、滤波器组中滤波器的个数,表明可同时追踪最多车道线的条数,本算法设定为20,但可根据实际情况进行增减。  1. The number of filters in the filter bank indicates the maximum number of lane lines that can be tracked at the same time. This algorithm is set to 20, but it can be increased or decreased according to the actual situation. the

2、卡尔曼滤波器使能判断,样本有效计数值表明输出最优估计值对样本连续有效性的基本要求,本算法取值为25,但可根据实际需要进行增减。  2. The Kalman filter enables judgment, and the effective count value of the sample indicates the basic requirement for the continuous validity of the sample to output the optimal estimated value. The value of this algorithm is 25, but it can be increased or decreased according to actual needs. the

Claims (1)

1. the Multi-lane Lines method for tracing based on group of Kalman filters, comprises the following steps:
Step 1: in Vehicle Driving Cycle process, adopt Vehicular video collecting device collection vehicle road ahead image; And by the road image data input computing machine collecting, carry out lane detection;
Use Hough change detection to go out lane line, by lateral distance ρ and azimuth angle theta, represent detected lane line, i.e. (ρ i, θ i), i=1,2,3 ..., represent detected lane line on road image;
Step 2: set up the kalman filter models that lane line is followed the trail of;
Step 2-1: definition lane line state;
Because the motion of vehicle in two continuous frames video image acquisition process can be considered uniform motion, for the state of the lane line detecting in each frame road image, use state vector X (k) to represent:
X(k)=[ρ(k),θ(k),u(k),ω(k)] T
Wherein represent that vehicle is at state k, i.e. t radial velocity constantly,
Figure FDA0000381718570000012
represent that vehicle is at state k, i.e. t angular velocity constantly;
Step 2-2: the state equation of Kalman filter in definition lane line tracing process;
Because system meets following formula by state X (k) to NextState X (k+1):
Figure FDA0000381718570000013
The system noise of set condition k is: W (k)=[w 1(k), w 2(k), w 3(k), w 4(k)] t, so the state equation of Kalman filter is expressed as:
X(k)=AX(k-1)+W(k)
Wherein
Figure FDA0000381718570000021
Step 2-3: the observation equation of definition lane line tracing process;
Because observed reading is the result of actual condition value and noise effect, observed reading can be expressed as follows:
Figure FDA0000381718570000022
Therefore obtaining observation equation is:
Z(k)=HX(k)+V(k)
Wherein measure matrix v (k) is observation noise and V (k)=[v 1(k), v 2(k)] t;
Step 2-4: definition Kalman filter iteration renewal equation:
X(k|k)=X(k|k-1)+Kg(k)(Z(k)-HX(k|k-1))
Wherein:
Kg(k)=P(k|k-1)H T/(HP(k|k-1)H T+R)
P(k|k)=(I-Kg(k)H)P(k|k-1)
X (k|k) is the optimum estimation value of the k state of Kalman filter output, X (k|k-1) is for utilizing the result of the k state that k-1 status predication goes out, Kg (k) is Kalman filter gain under state k, and Z (k) is the observed reading of state k, and H measures matrix;
Step 3: system initialization;
Step 3-1: set condition vector initial value;
From Kalman filter ultimate principle, as long as original state meets E[X (0)]=E[X (0|0)], resulting estimated value is without inclined to one side, so initialization system original state is null vector,
X(0)=[0?0?0?0] T
Step 3-2: initialization system noise initial value;
System noise W (k) is zero-mean stochastic process vector, and not in the same time under state system noise be to add up independently, its correlation matrix meets following formula:
Figure FDA0000381718570000031
Suppose it between different conditions noise, is also to add up independently in the same time, so matrix Q (k) is diagonal matrix; Because system noise is because vehicle mobility can cause, in tracing process, not quite, for convenience of calculation, rule of thumb data are supposed w in impact 1(k), w 2(k), w 3(k), w 4(k) independent same distribution, and meet
Figure FDA0000381718570000032
therefore initialization system noise initial value is:
Figure FDA0000381718570000033
Step 3-3: set observation noise initial value;
Rule of thumb the known observation noise of data is larger than system noise impact, and v 1(k), v 2(k) meet independent same distribution, set so set observation noise initial value, be:
Figure FDA0000381718570000035
Step 3-4: set observation noise autocorrelation value;
In order to follow the trail of rapid convergence, observation noise autocorrelation value is taken as 100, sets initial value as follows:
Figure FDA0000381718570000041
Step 4: adopt 20 groups of Kalman filter, all adopt the initial value of setting in step 3, according to the Kalman filter iteration renewal equation of step 2-4 definition, complete the interative computation of a Kalman filter, export the optimal estimation value (ρ of one group of lane line i, θ i), i=1,2,3 ..., 20;
Step 5: single filter is enabled to control;
Step 5-1: the lane line detecting in road image is defined as to (ρ, θ), obtains (ρ, θ) to (ρ by following formula respectively i, θ i), i=1,2,3 ..., 20 distance D i
D i=|ρ-ρ i|+|θ-θ i|*W image
W wherein imagethe pixel wide that represents road image;
Step 5-2: obtain minor increment D min=min (D i), and remember that the distance minimum value of last iteration is D min';
Step 5-3: every group of enable counter corresponding to wave filter is designated as C i, and meet following formula
Figure FDA0000381718570000042
When minor increment is less than or equal to the minor increment of last iteration, count value adds 1, otherwise count value subtracts 1;
Step 5-4: lane line is followed the trail of, setting effective sample input number is 25,, when continuous 25 width road images detect same lane line, thinks that the optimal estimation of Kalman filter is effective, otherwise the sample number praising is not enough, and does not follow the trail of; Therefore by C iby thresholding [0,25], by following formula, process C i:
Figure FDA0000381718570000043
Step 5-5: the E that enables that obtains each wave filter ibe expressed as follows:
Figure FDA0000381718570000051
Step 6: using the optimal estimation value of Kalman filter output as testing result.
CN201110180895.8A 2011-06-30 2011-06-30 Multi-lane line tracking method based on Kalman filter bank Active CN102360499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110180895.8A CN102360499B (en) 2011-06-30 2011-06-30 Multi-lane line tracking method based on Kalman filter bank

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110180895.8A CN102360499B (en) 2011-06-30 2011-06-30 Multi-lane line tracking method based on Kalman filter bank

Publications (2)

Publication Number Publication Date
CN102360499A CN102360499A (en) 2012-02-22
CN102360499B true CN102360499B (en) 2014-01-22

Family

ID=45585824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110180895.8A Active CN102360499B (en) 2011-06-30 2011-06-30 Multi-lane line tracking method based on Kalman filter bank

Country Status (1)

Country Link
CN (1) CN102360499B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5792678B2 (en) * 2012-06-01 2015-10-14 株式会社日本自動車部品総合研究所 Lane boundary detection device and program
CN104318258B (en) * 2014-09-29 2017-05-24 南京邮电大学 Time domain fuzzy and kalman filter-based lane detection method
CN104820823A (en) * 2015-04-22 2015-08-05 深圳市航盛电子股份有限公司 Vehicle-mounted pedestrian recognition method and system based on OpenCv Kalman filter
CN106529443B (en) * 2016-11-03 2019-09-06 温州大学 Improved Hough Change Detection Method for Lane Lines
CN107423667A (en) * 2017-04-12 2017-12-01 杭州奥腾电子股份有限公司 A kind of method of prediction barrier on car body
CN109002745A (en) * 2017-06-06 2018-12-14 武汉小狮科技有限公司 A kind of lane line real-time detection method based on deep learning and tracking technique
CN107463890B (en) * 2017-07-20 2019-11-29 浙江零跑科技有限公司 A kind of Foregut fermenters and tracking based on monocular forward sight camera
CN107808393B (en) * 2017-09-28 2021-07-23 中冶华天南京电气工程技术有限公司 Target tracking method with anti-interference performance in intelligent video monitoring field
CN107918763A (en) * 2017-11-03 2018-04-17 深圳星行科技有限公司 Method for detecting lane lines and system
CN108734105B (en) * 2018-04-20 2020-12-04 东软集团股份有限公司 Lane line detection method, lane line detection device, storage medium, and electronic apparatus
CN109241929A (en) * 2018-09-20 2019-01-18 北京海纳川汽车部件股份有限公司 Method for detecting lane lines, device and the automatic driving vehicle of automatic driving vehicle
CN109492588A (en) * 2018-11-12 2019-03-19 广西交通科学研究院有限公司 A kind of rapid vehicle detection and classification method based on artificial intelligence
CN109492598B (en) * 2018-11-19 2021-08-03 辽宁工业大学 A method for active recognition and early warning of expressway vehicles deviating from lane lines based on machine vision
CN109559334A (en) * 2018-11-23 2019-04-02 广州路派电子科技有限公司 Lane line method for tracing based on Kalman filter
CN110595490B (en) * 2019-09-24 2021-12-14 百度在线网络技术(北京)有限公司 Preprocessing method, device, equipment and medium for lane line perception data
CN114170275B (en) * 2021-11-30 2024-11-22 重庆长安汽车股份有限公司 A lane line processing method and system based on Kalman filtering

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020042668A1 (en) * 2000-10-02 2002-04-11 Nissan Motor Co., Ltd. Lane recognition apparatus for vehicle
CN1945596A (en) * 2006-11-02 2007-04-11 东南大学 Vehicle lane Robust identifying method for lane deviation warning

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020042668A1 (en) * 2000-10-02 2002-04-11 Nissan Motor Co., Ltd. Lane recognition apparatus for vehicle
CN1945596A (en) * 2006-11-02 2007-04-11 东南大学 Vehicle lane Robust identifying method for lane deviation warning

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Lane Detection and Tracking by Video Sensors;Jens Goldbeck, et al.;《IEEE/IEEJ/JSAI International Conference on Intelligent Transportation Systems, 1999》;19991231;74-79 *
Road-Boundary Detection and Tracking Using Ladar Sensing;W. S. Wijesoma, et al.;《IEEE TRANSACTIONS ON ROBOTICS AND AUTOMATION》;20040630;第20卷(第3期);456-464 *
基于DWT和Kalman滤波的多运动目标跟踪;路红,等;《数据采集与处理》;20080930;第23卷(第5期);563-568 *
汽车智能辅助驾驶系统中的单目视觉导航技术;周欣,等;《机器人》;20030731;第25卷(第4期);289-295 *

Also Published As

Publication number Publication date
CN102360499A (en) 2012-02-22

Similar Documents

Publication Publication Date Title
CN102360499B (en) Multi-lane line tracking method based on Kalman filter bank
CN104008645B (en) A lane prediction and early warning method suitable for urban roads
CN102270301B (en) Method for detecting unstructured road boundary by combining support vector machine (SVM) and laser radar
CN104933856B (en) Road conditions real-time evaluation system and method
CN107705563B (en) Continuous vehicle speed detection method based on lidar
CN109460709A (en) The method of RTG dysopia analyte detection based on the fusion of RGB and D information
CN104282020A (en) Vehicle speed detection method based on target motion track
CN109101939B (en) Method, system, terminal and readable storage medium for determining vehicle motion state
CN107463890A (en) A kind of Foregut fermenters and tracking based on monocular forward sight camera
CN110688954A (en) A Vehicle Lane Change Detection Method Based on Vector Operation
CN105719283A (en) Road surface crack image detection method based on Hessian matrix multi-scale filtering
CN104537649B (en) A kind of Vehicular turn judgment method and system compared based on image blur
CN112810619A (en) Radar-based method for identifying front target vehicle of assistant driving system
CN107644528A (en) A kind of vehicle queue length detection method based on vehicle tracking
CN106529443A (en) Method for improving detection of lane based on Hough transform
CN114926729B (en) A high-risk road section identification system and method based on driving video
CN108108667A (en) A kind of front vehicles fast ranging method based on narrow baseline binocular vision
Pyo et al. Front collision warning based on vehicle detection using CNN
CN109878530A (en) Method and system for identifying vehicle sideways driving conditions
CN202134079U (en) An unmanned vehicle lane marking line recognition and alarm device
CN111986226A (en) Target track abnormity detection method
Kim et al. Vision-based vehicle detection and inter-vehicle distance estimation for driver alarm system
Cordes et al. Roadsaw: A large-scale dataset for camera-based road surface and wetness estimation
CN103192830A (en) Self-adaptive vision lane departure pre-warning device
Mostafa et al. Automatic Vehicle Classification and Speed Tracking

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210520

Address after: No.3, 11th floor, building 6, no.599, shijicheng South Road, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610041

Patentee after: Houpu clean energy Co.,Ltd.

Address before: 611731, No. 2006, West Avenue, Chengdu hi tech Zone (West District, Sichuan)

Patentee before: University of Electronic Science and Technology of China

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: No.3, 11th floor, building 6, no.599, shijicheng South Road, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610041

Patentee after: Houpu clean energy (Group) Co.,Ltd.

Address before: No.3, 11th floor, building 6, no.599, shijicheng South Road, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610041

Patentee before: Houpu clean energy Co.,Ltd.