CN101294801A - Vehicle distance measurement method based on binocular vision - Google Patents

Vehicle distance measurement method based on binocular vision Download PDF

Info

Publication number
CN101294801A
CN101294801A CNA2007100251669A CN200710025166A CN101294801A CN 101294801 A CN101294801 A CN 101294801A CN A2007100251669 A CNA2007100251669 A CN A2007100251669A CN 200710025166 A CN200710025166 A CN 200710025166A CN 101294801 A CN101294801 A CN 101294801A
Authority
CN
China
Prior art keywords
vehicle
camera
area
image
edge
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
CNA2007100251669A
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.)
Southeast University
Original Assignee
Southeast University
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 Southeast University filed Critical Southeast University
Priority to CNA2007100251669A priority Critical patent/CN101294801A/en
Publication of CN101294801A publication Critical patent/CN101294801A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

本发明提供的基于双目视觉的车距测量方法,采用立体视觉的自适应前方车辆车距测量系统获取测量所需的参数,所述立体视觉的自适应前方车辆车距测量系统包括用于拍摄前方道路上信息的相机单元,所述相机单元包括第一相机C1和第二相机C2;选取所述相机单元中任一相机的坐标系作为整个测量过程的世界坐标系,该相机的光心作为所述世界坐标系的原点,记为0,标定所述相机单元中相机之间位置关系,获取本车所在车道区域大小和车道线信息,将获取的所述本车所在车道区域大小和车道线信息记为S1;从而提高了测量的准确度,确保了行车的安全性。

The vehicle distance measurement method based on binocular vision provided by the present invention adopts the self-adaptive front vehicle distance measurement system of stereo vision to obtain the parameters required for measurement, and the stereo vision self-adaptive front vehicle distance measurement system includes A camera unit for information on the road ahead, the camera unit includes a first camera C1 and a second camera C2; the coordinate system of any camera in the camera unit is selected as the world coordinate system of the entire measurement process, and the optical center of the camera is used as The origin of the world coordinate system is recorded as 0, the positional relationship between the cameras in the camera unit is calibrated, the size of the lane area where the vehicle is located and the lane line information are acquired, and the acquired lane area size and lane line information of the vehicle is The information is recorded as S1; thereby improving the accuracy of measurement and ensuring the safety of driving.

Description

基于双目视觉的车距测量方法 Vehicle distance measurement method based on binocular vision

技术领域 technical field

本发明涉及一种前方车辆与后方车辆之间的车距测量方法。The invention relates to a vehicle distance measurement method between a front vehicle and a rear vehicle.

背景技术 Background technique

作为智能交通系统(ITS)的重要组成部分,车辆的安全系统一直都是重要的研究领域,而前方车辆距离测量技术则是车辆安全系统中最为关键的技术之一。前方车辆车距测量技术不仅是当前车辆安全系统领域中研究的前沿和热点,也是计算机视觉技术和电子技术相结合的高技术。前方车辆距离测量的精度在很大程度上决定了车辆安全系统性能。As an important part of the Intelligent Transportation System (ITS), the safety system of the vehicle has always been an important research field, and the distance measurement technology of the vehicle ahead is one of the most critical technologies in the safety system of the vehicle. The vehicle-to-vehicle distance measurement technology in front is not only the frontier and hot spot in the field of current vehicle safety system research, but also a high-tech combination of computer vision technology and electronic technology. The accuracy of distance measurement to vehicles ahead largely determines the performance of vehicle safety systems.

在目前的车辆测距系统中,基于视觉的测距方法被公认是最有前途的一种方法,目前现有技术中大部分视觉测距系统采用的都是基于单目视觉原理的前方车辆车距测量的方法,这种方法通过一定的固定方式将摄像头安置在车辆上,事先对安装后摄像头的高度和俯仰角度进行测量,并通过一系列的公式计算来实现对前方车辆距离的测量。采用这类方法虽然能够使得系统的设计简单、成本低且车距计算复杂度降低,但也存在着一些问题。首先,由于这种方法的测量结果强烈依赖于事先测量的摄像头安装高度和俯仰角度,因此随着车辆行驶,摄像头位置会由于抖动作用,不可避免地相对原先安装位置发生变化,从而改变了摄像头参数,尤其是俯仰角度,这会使测量结果发生偏差。其次这种单目测量车距方法对于处于地面附近的被测量点的测量较为准确,如果前方车辆上的被测量点距离地面有一定的高度,则此时测量结果存在较大误差,尤其是两车距离较近的时候,误差更为明显,这将严重影响车辆的安全性。In the current vehicle distance measurement system, the vision-based distance measurement method is recognized as the most promising method. Most of the current visual distance measurement systems in the existing technology use the front vehicle based on the principle of monocular vision. The method of distance measurement, this method installs the camera on the vehicle in a certain fixed way, measures the height and pitch angle of the installed camera in advance, and realizes the measurement of the distance to the vehicle ahead through a series of formula calculations. Although adopting this kind of method can make the design of the system simple, the cost is low and the calculation complexity of the vehicle distance is reduced, but there are still some problems. First of all, since the measurement results of this method are strongly dependent on the camera installation height and pitch angle measured in advance, as the vehicle travels, the camera position will inevitably change relative to the original installation position due to the shaking effect, thus changing the camera parameters. , especially the pitch angle, which will bias the measurement results. Secondly, this method of monocular vehicle distance measurement is more accurate for the measurement of the measured point near the ground. If the measured point on the vehicle in front is at a certain height from the ground, there will be a large error in the measurement result at this time. When the vehicle distance is relatively short, the error is more obvious, which will seriously affect the safety of the vehicle.

另一方面,双目立体视觉作为一种先进的视觉测量方法,已经得到广泛的应用,立体视觉可以直接恢复被测量点的三维坐标,从而可以精确得到空间距离信息。因此采用立体视觉测量前方车辆距离具有更好的准确性和可靠性。On the other hand, as an advanced visual measurement method, binocular stereo vision has been widely used. Stereo vision can directly restore the three-dimensional coordinates of the measured point, so that the spatial distance information can be obtained accurately. Therefore, the use of stereo vision to measure the distance of the vehicle ahead has better accuracy and reliability.

发明内容Contents of the invention

本发明的目的在于提供一种基于双目视觉的车距测量方法,解决了现有技术中测量误差大的问题,本发明能够自动根据车辆轮廓信息和道路信息,准确测量本车和前方车辆之间的距离,并自动补偿由于车辆抖动引起的摄像机参数变化,提高系统测量的精确性和稳定性。The purpose of the present invention is to provide a vehicle distance measurement method based on binocular vision, which solves the problem of large measurement errors in the prior art. The present invention can automatically measure the distance between the vehicle and the vehicle in front according to the vehicle outline information and road information It can automatically compensate the camera parameter changes caused by vehicle shaking, and improve the accuracy and stability of the system measurement.

为达到上述技术目的,本发明采用的技术方案是:For achieving above-mentioned technical purpose, the technical scheme that the present invention adopts is:

采用立体视觉的自适应前方车辆车距测量系统获取测量所需的参数,所述立体视觉的自适应前方车辆车距测量系统包括用于拍摄前方道路上信息的相机单元,所述相机单元包括第一相机C1和第二相机C2;所述第一相机C1和第二相机C2安装在车辆挡风玻璃后面,选取所述相机单元中任一相机的坐标系作为整个测量过程的世界坐标系,该相机的光心作为所述世界坐标系的原点,记为O,标定所述相机单元中相机之间位置关系,获取本车所在车道区域大小和车道线信息,将获取的所述本车所在车道区域大小和车道线信息构成的矩形区域的面积记为S1;The parameters required for the measurement are obtained by using the adaptive front vehicle distance measurement system with stereo vision, the adaptive front vehicle distance measurement system with stereo vision includes a camera unit for photographing information on the road ahead, and the camera unit includes the first A camera C1 and a second camera C2; the first camera C1 and the second camera C2 are installed behind the windshield of the vehicle, and the coordinate system of any camera in the camera unit is selected as the world coordinate system of the entire measurement process, the The optical center of the camera is used as the origin of the world coordinate system, denoted as O, the positional relationship between the cameras in the camera unit is calibrated, the size of the lane area and the lane line information of the vehicle are obtained, and the acquired lane of the vehicle is obtained The area of the rectangular area formed by the area size and lane line information is recorded as S1;

步骤1:探测和验证前方车辆的车辆外形轮廓的部分矩形区域,将获得的前方车辆的车辆外形轮廓的部分矩形区域的面积记为S2;Step 1: Detect and verify the partial rectangular area of the vehicle outline of the vehicle in front, and denote the area of the partial rectangular area of the vehicle outline of the obtained vehicle in front as S2;

步骤2:将获取的所述本车所在车道区域大小和车道线信息构成的矩形区域面积S1与获得的所述前方车辆的车辆外形轮廓的部分矩形区域面积S2进行比较,如果S1/S2<=阈值T,执行步骤3,如果S1/S2>阈值T,执行步骤4,阈值T=2;Step 2: Compare the acquired rectangular area area S1 formed by the size of the lane area where the vehicle is located and lane line information with the obtained partial rectangular area area S2 of the vehicle outline of the vehicle in front, if S1/S2<= Threshold T, execute step 3, if S1/S2>threshold T, execute step 4, threshold T=2;

步骤3:计算所述前方车辆的车辆外形轮廓的部分矩形区域的矩形的形心,记为P1,执行步骤5;Step 3: Calculate the centroid of the rectangle of the partial rectangular area of the vehicle outline of the vehicle in front, denoted as P1, and perform step 5;

步骤4:提取所述前方车辆车牌轮廓的矩形区域的任一角的点,记为P2;Step 4: Extract the point of any corner of the rectangular area of the license plate outline of the vehicle in front, denoted as P2;

步骤5:恢复所述的P1或P2的三维坐标P;Step 5: recovering the three-dimensional coordinates P of P1 or P2;

步骤6:计算OP之间的距离,得到前后两车之间的距离。Step 6: Calculate the distance between OPs to get the distance between the front and rear cars.

在本发明的一个优选实施例中,在计算前后车距的过程中,能同时对所述相机单元中的相机的外参数进行动态调整,方法如下:In a preferred embodiment of the present invention, in the process of calculating the distance between front and rear vehicles, the external parameters of the camera in the camera unit can be dynamically adjusted at the same time, the method is as follows:

步骤11:计算所述前方车辆所在车道的两条车道线上点的三维坐标,记为Pi;Step 11: Calculate the three-dimensional coordinates of points on the two lane lines of the lane where the vehicle in front is located, denoted as Pi;

步骤12:根据所述两条车道线上点的三维坐标Pi拟合空间平面V;拟合空间平面的方法如下:设三维点Pi坐标为(Xi,Yi,Zi),平面方程为AX+BY+CZ+1=0,则拟合的目的就是获取平面方程参数A,B和C,将三维点Pi坐标代入AX+BY+CZ+1=0中,构成如下方程组:Step 12: fitting the spatial plane V according to the three-dimensional coordinates Pi of points on the two lanes; the method for fitting the spatial plane is as follows: set the coordinates of the three-dimensional point P i as (X i , Y i , Z i ), and the plane equation AX+BY+CZ+1=0, then the purpose of fitting is to obtain the plane equation parameters A, B and C, and substitute the coordinates of the three-dimensional point Pi into AX+BY+CZ+1=0 to form the following equations:

xx 11 ythe y 11 zz 11 11 xx 22 ythe y 22 zz 22 11 &CenterDot;&CenterDot; &CenterDot;&Center Dot; &CenterDot;&Center Dot; &CenterDot;&Center Dot; &CenterDot;&Center Dot; &CenterDot;&Center Dot; &CenterDot;&Center Dot; &CenterDot;&CenterDot; &CenterDot;&CenterDot; &CenterDot;&CenterDot; &CenterDot;&CenterDot; &CenterDot;&Center Dot; xx nno ythe y nno zz nno 11 AA BB CC 11 == 00

求解如上所示的方程组,即可获得空间平面V的平面方程;By solving the equations shown above, the plane equation of the space plane V can be obtained;

步骤13:将所述两条车道线上点的三维坐标Pi向所述空间平面V投影,获得三维坐标Pi在空间平面V上的平面二维坐标Qi;Step 13: Project the three-dimensional coordinates Pi of the points on the two lanes to the space plane V to obtain the plane two-dimensional coordinates Qi of the three-dimensional coordinates Pi on the space plane V;

步骤14:对所述平面二维坐标Qi进行直线拟合,得到两条直线向量a和b;直线拟合的方法如下:设二维点Qi的坐标为(xi,yi),共有m个点,所在直线为y=a0+a1x,则利用最小二乘法公式即可获取直线方程的参数a0和a1Step 14: Carry out straight line fitting to the two-dimensional coordinates Qi of the plane to obtain two straight line vectors a and b; the method of straight line fitting is as follows: set the coordinates of the two-dimensional point Qi as ( xi , y i ), and there are m points, the straight line is y=a 0 +a 1 x, then the parameters a 0 and a 1 of the straight line equation can be obtained by using the formula of the least square method:

mm &Sigma;&Sigma; xx ii &Sigma;&Sigma; xx ii &Sigma;&Sigma; xx ii 22 aa 00 aa 11 == &Sigma;&Sigma; ythe y ii &Sigma;&Sigma; xx ii ythe y ii ;;

步骤15:判断所述直线向量a和b是否平行,如果不平行,则重新标定所述相机单元中相机之间位置关系,得到新的相机标定参数;Step 15: judging whether the straight line vectors a and b are parallel, if not, recalibrating the positional relationship between the cameras in the camera unit to obtain new camera calibration parameters;

在本发明的一个优选实施例中,获得的前方车辆的车辆外形轮廓的部分矩形区域方法步骤如下:In a preferred embodiment of the present invention, the method steps of the obtained partial rectangular area of the vehicle outline of the vehicle in front are as follows:

1)在标准路面上,可以认为在上述获得的车道区域内,本方和前方车辆之间道路在图像中的灰度变化是平缓的,但是在路面和车辆相交处,由于存在阴影,因此形成图像灰度从亮到暗的边缘,认为该边缘就是车辆的下边缘。在本车前方道路中,按照水平线扫描前方车辆的轮廓,获得所述前方车辆的轮廓的图像,计算所述图像中每行灰度平均值RowAvr(r),如下式所示:1) On the standard road surface, it can be considered that in the lane area obtained above, the gray level change of the road between the own party and the vehicle in front is gentle in the image, but at the intersection of the road surface and the vehicle, due to the existence of shadows, it forms The edge of the image gray scale from bright to dark is considered to be the lower edge of the vehicle. On the road ahead of the vehicle, scan the profile of the vehicle in front according to the horizontal line to obtain an image of the profile of the vehicle in front, and calculate the average gray value RowAvr(r) of each line in the image, as shown in the following formula:

RowAvr ( r ) = 1 Right ( r ) - Left ( r ) &Sigma; c = Left ( r ) Right ( r ) I ( r , c ) , 上式中,Right(r)表示图像中车道区域第r行的最右边坐标;Left(r)表示图像中车道区域第r行的最左边坐标;I(r,c)是图像中(r,c)的灰度;RowAvr(r)表示车道区域内第r行的灰度平均值,将RowAvr(r)和RowAvr(r-1)变化最大的r作为前方车辆的下边缘,记为LowerPos; RowAvr ( r ) = 1 Right ( r ) - Left ( r ) &Sigma; c = Left ( r ) Right ( r ) I ( r , c ) , In the above formula, Right(r) represents the rightmost coordinate of the rth row of the lane area in the image; Left(r) represents the leftmost coordinate of the rth row of the lane area in the image; I(r, c) is the image (r, c) grayscale; RowAvr(r) represents the grayscale average value of the rth row in the lane area, and the r with the largest change in RowAvr(r) and RowAvr(r-1) is used as the lower edge of the vehicle in front, which is recorded as LowerPos;

2)在车道区域内进行索贝尔(SOBEL)边缘提取算法获取车道区域内前方车辆的边缘图像,在边缘图像的[LowerPos-Tr,LowerPos]行内,判断最左边的边缘点位置和最右边的边缘点位置,并将其认为是前方车辆的左边缘和右边缘,分别记为LeftPos和RightPos;其中Tr取2~6,LeftPos和RightPos分别表示车辆区域的最左边和最右边;2) Perform Sobel (SOBEL) edge extraction algorithm in the lane area to obtain the edge image of the vehicle in front of the lane area, and judge the position of the leftmost edge point and the rightmost edge in the [LowerPos-Tr, LowerPos] line of the edge image Point position, and consider it as the left edge and right edge of the vehicle in front, which are respectively recorded as LeftPos and RightPos; where Tr is 2~6, LeftPos and RightPos represent the leftmost and rightmost of the vehicle area respectively;

3)假设车辆矩形的长宽比为Ta,则根据步骤2)可知车辆外形轮廓的部分矩形区域的宽边为RightPos-LeftPos,则获得矩形区域的长边为(RightPos-LeftPos)*Ta,Ta取值一般在0.5-1.0;3) Assuming that the aspect ratio of the vehicle rectangle is Ta, then according to step 2), it can be known that the wide side of the partial rectangular area of the vehicle outline is RightPos-LeftPos, then the long side of the obtained rectangular area is (RightPos-LeftPos)*Ta, Ta The value is generally 0.5-1.0;

在本发明的一个优选实施例中,所述步骤3中,包括如下步骤:In a preferred embodiment of the present invention, said step 3 includes the following steps:

步骤31:提取所述前方车辆的车辆外形轮廓的部分矩形区域S2内所有边缘点Pi,并放入边缘序列中;Step 31: Extract all edge points Pi in the partial rectangular area S2 of the vehicle outline of the vehicle in front, and put them into the edge sequence;

步骤32:将所述边缘序列Pi的坐标的平均值作为形心坐标,记为P1,将P1作为测量点。Step 32: Use the average value of the coordinates of the edge sequence Pi as the centroid coordinates, denoted as P1, and use P1 as the measurement point.

在本发明的一个优选实施例中,所述步骤4中,包括如下步骤:In a preferred embodiment of the present invention, said step 4 includes the following steps:

步骤41:在所述前方车辆车牌的矩形区域中利用索贝尔边缘算子提取边缘图像;Step 41: using a Sobel edge operator to extract an edge image in the rectangular area of the license plate of the vehicle in front;

步骤42:根据图像分割算法对提取到的所述边缘图像进行二值化处理;Step 42: Binarize the extracted edge image according to the image segmentation algorithm;

步骤43:将提取到的所述边缘图像进行灰度投影,得到车牌的上限值a、下限值b、左限值c右限值d;Step 43: Perform grayscale projection on the extracted edge image to obtain the upper limit a, lower limit b, left limit c and right limit d of the license plate;

步骤44:根据得到的所述车牌的上限值a、下限值b、左限值c和右限值d得到表示车牌区域矩形的左上,左下,右上和右下四个角点在图像中的坐标为(c,a),(c,b),(d,a)和(d,b);Step 44: According to the obtained upper limit a, lower limit b, left limit c and right limit d of the license plate, obtain the upper left, lower left, upper right and lower right corners of the rectangle in the image. The coordinates of are (c, a), (c, b), (d, a) and (d, b);

步骤45:在所述车牌区域中定位任一角上的点,记为P2,将P2作为测量点。Step 45: Locate a point on any corner in the license plate area, denoted as P2, and take P2 as a measurement point.

在本发明的一个优选实施例中,在步骤1进行的同时,结合卡尔曼滤波算法跟踪前方车辆。In a preferred embodiment of the present invention, while step 1 is being performed, the vehicle in front is tracked in combination with a Kalman filter algorithm.

在本发明的一个优选实施例中,所述相机外参数包括旋转矩阵R和平移矩阵T。In a preferred embodiment of the present invention, the extrinsic parameters of the camera include a rotation matrix R and a translation matrix T.

在本发明的一个优选实施例中,步骤15中,对向量a和向量b是否平行采用列文伯格-马夸尔特算法(Levenberg-Marquardt);In a preferred embodiment of the present invention, in step 15, adopt Levenberg-Marquardt algorithm (Levenberg-Marquardt) whether parallel to vector a and vector b;

在本发明的一个优选实施例中,所述步骤43中所述的将提取到的所述边缘图像进行灰度投影,包括对提取到的所述边缘图像同时进行水平灰度投影和竖直灰度投影,并对水平灰度投影图从下到上寻找两个最大值,作为所述前车车牌的上限值和下限值;对竖直灰度投影图从下到上寻找两个最大值,作为所述前车车辆车牌的左限值和右限值。In a preferred embodiment of the present invention, performing grayscale projection on the extracted edge image in step 43 includes simultaneously performing horizontal grayscale projection and vertical grayscale projection on the extracted edge image. degree projection, and look for two maximum values from bottom to top for the horizontal grayscale projection map, as the upper limit and lower limit value of the front car license plate; look for two maximum values for the vertical grayscale projection map from bottom to top value, as the left limit value and right limit value of the license plate of the preceding vehicle.

在本发明的一个优选实施例中,所述投影方法为:将获得的所述边缘图像为记为I,I(x,y)表示图像中点(x,y)处的灰度值,水平灰度投影即,固定y坐标进行灰度累加,公式如下:In a preferred embodiment of the present invention, the projection method is: denote the obtained edge image as I, I(x, y) represents the gray value at the point (x, y) in the image, and the horizontal Grayscale projection is to fix the y coordinate for grayscale accumulation, the formula is as follows:

H j = &Sigma; i = 0 width I ( x i , y j ) , 其中width表示图像宽度,固定yj坐标; h j = &Sigma; i = 0 width I ( x i , the y j ) , Where width represents the width of the image, and the y j coordinates are fixed;

同理,竖直灰度投影即,固定x坐标进行灰度累加,公式如下:In the same way, the vertical grayscale projection is to fix the x coordinate for grayscale accumulation. The formula is as follows:

V j = &Sigma; i = 0 height I ( x j , y i ) , 其中height表示图像高度,固定xj坐标;对于车牌区域而言,水平灰度投影Hj中存在两个极大值,对应车牌的上限值和下限,竖直灰度投影Vj中存在两个极大值,对应车牌的左限值和右限值。 V j = &Sigma; i = 0 height I ( x j , the y i ) , where height represents the height of the image, and x j coordinates are fixed; for the license plate area, there are two maximum values in the horizontal grayscale projection Hj , corresponding to the upper limit and lower limit of the license plate, and there are two maximum values in the vertical grayscale projection Vj A maximum value, corresponding to the left limit value and right limit value of the license plate.

附图说明 Description of drawings

下面结合附图和具体实施方式对本发明做进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

图1是本发明两个摄像头安装的结构装置示意图;Fig. 1 is the structural device schematic diagram that two cameras of the present invention are installed;

图2是本发明提供的基于双目视觉的车距测量方法的流程图;Fig. 2 is the flowchart of the vehicle distance measurement method based on binocular vision provided by the present invention;

图3是本发明提供的对相机单元中的相机的外参数进行动态调整方法的流程图;3 is a flowchart of a method for dynamically adjusting external parameters of a camera in a camera unit provided by the present invention;

图4是本发明提供的获得的前方车辆的车辆外形轮廓的部分矩形区域方法流程图;Fig. 4 is a flow chart of the method for obtaining the partial rectangular area of the vehicle profile of the vehicle in front provided by the present invention;

图5是本发明提供的计算所述前方车辆的车辆外形轮廓的部分矩形区域的矩形的形心的方法流程图;Fig. 5 is a flow chart of a method for calculating the centroid of a rectangle of a partial rectangular area of the vehicle outline of the vehicle in front provided by the present invention;

图6是本发明提供的提取所述前方车辆车牌轮廓的矩形区域的任一角的点方法的流程图。Fig. 6 is a flow chart of the method for extracting points at any corner of the rectangular area of the license plate outline of the preceding vehicle provided by the present invention.

具体实施方式 Detailed ways

如图1所示,将两个摄像头安装在车辆挡风玻璃后面,调整两个摄像头的摆放方式,使得两个摄像头有着公共视野,且公共视野能够包含前方道路上的大部分信息。As shown in Figure 1, two cameras are installed behind the windshield of the vehicle, and the placement of the two cameras is adjusted so that the two cameras have a common view, and the common view can contain most of the information on the road ahead.

立体视觉测量的高精确性取决于两个前提,一是前车测量点正确,二是摄像机标定参数正确。The high accuracy of stereo vision measurement depends on two prerequisites, one is that the measurement points of the front vehicle are correct, and the other is that the camera calibration parameters are correct.

由于车辆作为一种人造刚体,其尾部图像有以下特征:Since the vehicle is a man-made rigid body, its tail image has the following characteristics:

(1)车辆边缘较道路中的自然景物相比,具有边缘明显,连续,且方向近似竖直或水平的特点;(1) Compared with the natural scenery on the road, the edge of the vehicle has the characteristics of obvious and continuous edges, and the direction is approximately vertical or horizontal;

(2)车辆外形轮廓从背后观察,大体为符合矩形;(2) The outline of the vehicle, when viewed from the rear, generally conforms to a rectangle;

(3)车辆背部纹理和道路纹理存在较大的差异;(3) There is a large difference between the texture of the back of the vehicle and the texture of the road;

(4)车辆底部存在阴影,具有明显的灰度特征,一般为道路中最暗的地方。(4) There is a shadow at the bottom of the vehicle, which has obvious grayscale features, and is generally the darkest place on the road.

所以可以根据车辆尾部图像的特征,根据不同的情况来确定前车的测量点,如图2所示,一种基于双目视觉的车距测量方法,采用立体视觉的自适应前方车辆车距测量系统获取测量所需的参数,所述立体视觉的自适应前方车辆车距测量系统包括用于拍摄前方道路上信息的相机单元,所述相机单元包括第一相机C1和第二相机C2;所述第一相机C1和第二相机C2安装在车辆挡风玻璃后面,选取所述相机单元中任一相机的坐标系作为整个测量过程的世界坐标系,该相机的光心作为所述世界坐标系的原点,记为0,标定所述相机单元中相机之间位置关系,(本发明标定相机之间的位置关系利用张正友提出的基于平面模板的高精度相机标定算法(《A Flexible New Technique for Camera Calibration》,PatternAnalysis and Machine Intelligence,IEEE Transactions on,2000,11(22):1330-1334)),获取本车所在车道区域大小和车道线信息,(本发明利用下面这篇文章提出的车道区域和车道线获取算法(Zhu Wennan;Chen Qiang;Wang Hong《lane detection in some complex conditions》,Intelligent Robots and Systems,2006IEEE/RSJ International Conference on,2006,117-122),将获取的所述本车所在车道区域大小和车道线信息构成的矩形区域的面积记为S1;Therefore, according to the characteristics of the vehicle rear image, the measurement point of the vehicle in front can be determined according to different situations. As shown in Figure 2, a vehicle distance measurement method based on binocular vision, using stereo vision to measure the vehicle distance in front of the vehicle The system acquires the parameters required for measurement, and the self-adaptive vehicle distance measurement system in front of the stereo vision includes a camera unit for photographing information on the road ahead, and the camera unit includes a first camera C1 and a second camera C2; The first camera C1 and the second camera C2 are installed behind the windshield of the vehicle, and the coordinate system of any camera in the camera unit is selected as the world coordinate system of the entire measurement process, and the optical center of the camera is used as the world coordinate system. The origin, denoted as 0, calibrates the positional relationship between the cameras in the camera unit, (the positional relationship between the calibration cameras in the present invention utilizes the high-precision camera calibration algorithm based on the plane template proposed by Zhang Zhengyou ("A Flexible New Technique for Camera Calibration") ", Pattern Analysis and Machine Intelligence, IEEE Transactions on, 2000, 11 (22): 1330-1334)), obtain the lane area size and lane line information where the car is located, (the present invention utilizes the lane area and lane line proposed in the following article Line acquisition algorithm (Zhu Wennan; Chen Qiang; Wang Hong "lane detection in some complex conditions", Intelligent Robots and Systems, 2006IEEE/RSJ International Conference on, 2006, 117-122), the lane area where the vehicle is located will be acquired The area of the rectangular area formed by the size and lane line information is denoted as S1;

步骤1:探测和验证前方车辆的车辆外形轮廓的部分矩形区域,将获得的前方车辆的车辆外形轮廓的部分矩形区域面积记为S2;Step 1: Detect and verify the partial rectangular area of the vehicle outline of the vehicle in front, and denote the area of the partial rectangular area of the vehicle outline of the obtained vehicle in front as S2;

获得的前方车辆的车辆外形轮廓的部分矩形区域方法步骤如下:The steps of the method for obtaining the partial rectangular area of the vehicle outline of the vehicle in front are as follows:

1)在标准路面上,可以认为在上述获得的车道区域内,本方和前方车辆之间道路在图像中的灰度变化是平缓的,但是在路面和车辆相交处,由于存在阴影,因此形成图像灰度从亮到暗的边缘,认为该边缘就是车辆的下边缘。在本车前方道路中,按照水平线扫描前方车辆的轮廓,获得所述前方车辆的轮廓的图像,计算所述图像中每行灰度平均值RowAvr(r),如下式所示:1) On the standard road surface, it can be considered that in the lane area obtained above, the gray level change of the road between the own party and the vehicle in front is gentle in the image, but at the intersection of the road surface and the vehicle, due to the existence of shadows, it forms The edge of the image gray scale from bright to dark is considered to be the lower edge of the vehicle. On the road ahead of the vehicle, scan the profile of the vehicle in front according to the horizontal line to obtain an image of the profile of the vehicle in front, and calculate the average gray value RowAvr(r) of each line in the image, as shown in the following formula:

RowAvr ( r ) = 1 Right ( r ) - Left ( r ) &Sigma; c = Left ( r ) Right ( r ) I ( r , c ) , 上式中,Right(r)表示图像中车道区域第r行的最右边坐标;Left(r)表示图像中车道区域第r行的最左边坐标;I(r,c)是图像中(r,c)的灰度;RowAvr(r)表示车道区域内第r行的灰度平均值,将RowAvr(r)和RowAvr(r-1)变化最大的r作为前方车辆的下边缘,记为LowerPos; RowAvr ( r ) = 1 Right ( r ) - Left ( r ) &Sigma; c = Left ( r ) Right ( r ) I ( r , c ) , In the above formula, Right(r) represents the rightmost coordinate of the rth row of the lane area in the image; Left(r) represents the leftmost coordinate of the rth row of the lane area in the image; I(r, c) is the image (r, c) grayscale; RowAvr(r) represents the grayscale average value of the rth row in the lane area, and the r with the largest change in RowAvr(r) and RowAvr(r-1) is used as the lower edge of the vehicle in front, which is recorded as LowerPos;

2)在车道区域内进行索贝尔(SOBEL)边缘提取算法获取车道区域内前方车辆的边缘图像,在边缘图像的[LowerPos-Tr,LowerPos]行内,判断最左边的边缘点位置和最右边的边缘点位置,并将其认为是前方车辆的左边缘和右边缘,分别记为LeftPos和RightPos;其中Tr取2~6,LeftPos和RightPos分别表示车辆区域的最左边和最右边;2) Perform Sobel (SOBEL) edge extraction algorithm in the lane area to obtain the edge image of the vehicle in front of the lane area, and judge the position of the leftmost edge point and the rightmost edge in the [LowerPos-Tr, LowerPos] line of the edge image Point position, and consider it as the left edge and right edge of the vehicle in front, which are respectively recorded as LeftPos and RightPos; where Tr is 2~6, LeftPos and RightPos represent the leftmost and rightmost of the vehicle area respectively;

3)假设车辆矩形的长宽比为Ta,则根据步骤2)可知车辆外形轮廓的部分矩形区域的宽边为RightPos-LeftPos,则获得矩形区域的长边为(RightPos-LeftPos)*Ta,Ta取值一般在0.5-1.0;对于货车等长宽比大于1的情况,此时获得的车辆矩形区域只是真实包含车辆的矩形的一部分,但是并不影响后续的处理结果。3) Assuming that the aspect ratio of the vehicle rectangle is Ta, then according to step 2), it can be known that the wide side of the partial rectangular area of the vehicle outline is RightPos-LeftPos, then the long side of the obtained rectangular area is (RightPos-LeftPos)*Ta, Ta The value is generally 0.5-1.0; for the case where the aspect ratio of the truck is greater than 1, the vehicle rectangular area obtained at this time is only a part of the rectangle that actually contains the vehicle, but it does not affect the subsequent processing results.

步骤2:将获取的所述本车所在车道区域大小和车道线信息构成的矩形区域面积S1与获得的所述前方车辆的车辆外形轮廓的部分矩形区域面积S2进行比较,如果S1/S2<=阈值T,执行步骤3,如果S1/S2>阈值T,执行步骤4,阈值T=2;Step 2: Compare the acquired rectangular area area S1 formed by the size of the lane area where the vehicle is located and lane line information with the obtained partial rectangular area area S2 of the vehicle outline of the vehicle in front, if S1/S2<= Threshold T, execute step 3, if S1/S2>threshold T, execute step 4, threshold T=2;

步骤3:计算所述前方车辆的车辆外形轮廓的部分矩形区域的矩形的形心,记为P1,执行步骤5;Step 3: Calculate the centroid of the rectangle of the partial rectangular area of the vehicle outline of the vehicle in front, denoted as P1, and perform step 5;

计算所述前方车辆的车辆外形轮廓的部分矩形区域的矩形的形心,方法如下:Calculate the centroid of the rectangle of the partial rectangle area of the vehicle outline of the vehicle in front, the method is as follows:

步骤31:提取所述前方车辆的车辆外形轮廓的部分矩形区域S2内所有边缘点Pi,并放入边缘序列中;Step 31: Extract all edge points Pi in the partial rectangular area S2 of the vehicle outline of the vehicle in front, and put them into the edge sequence;

步骤32:将所述边缘序列Pi的坐标的平均值作为形心坐标,记为P1,将P1作为测量点。Step 32: Use the average value of the coordinates of the edge sequence Pi as the centroid coordinates, denoted as P1, and use P1 as the measurement point.

步骤4:提取所述前方车辆车牌轮廓的矩形区域的任一角的点,记为P2;Step 4: Extract the point of any corner of the rectangular area of the license plate outline of the vehicle in front, denoted as P2;

提取所述前方车辆车牌轮廓的矩形区域的任一角的点的方法为:The method for extracting the point of any corner of the rectangular area of the vehicle license plate outline in front is:

步骤41:在所述前方车辆车牌的矩形区域中利用索贝尔边缘算子提取边缘图像;Step 41: using a Sobel edge operator to extract an edge image in the rectangular area of the license plate of the vehicle in front;

步骤42:根据图像分割算法对提取到的所述边缘图像进行二值化处理;(图像分割算法参见:孔明,孙希平,王永骥,《一种改进的基于类间方差的阈值分割法》,华中科技大学学报,2007,7];Step 42: Binarize the extracted edge image according to the image segmentation algorithm; (for the image segmentation algorithm, see: Kong Ming, Sun Xiping, Wang Yongji, "An Improved Threshold Segmentation Method Based on Variance Between Classes", Huazhong Science and Technology University Journal, 2007, 7];

步骤43:将提取到的所述边缘图像进行灰度投影,得到车牌的上限值a、下限值b、左限值c右限值d;Step 43: Perform grayscale projection on the extracted edge image to obtain the upper limit a, lower limit b, left limit c and right limit d of the license plate;

步骤44:根据得到的所述车牌的上限值a、下限值b、左限值c和右限值d得到表示车牌区域矩形的左上,左下,右上和右下四个角点在图像中的坐标为(c,a),(c,b),(d,a)和(d,b);Step 44: According to the obtained upper limit a, lower limit b, left limit c and right limit d of the license plate, obtain the upper left, lower left, upper right and lower right corners of the rectangle in the image. The coordinates of are (c, a), (c, b), (d, a) and (d, b);

步骤45:在所述车牌区域中定位任一角上的点记为P2,将P2作为测量点。由于车牌区域认为是矩形区域,因此取矩形区域的任一个角点(交点)都可以。但是必须注意的是,对于左右相机拍摄的图像而言,角点位置必须统一,即如果在左图车牌区域选择左上角点,则在右图车牌区域也必须选择左上角点。Step 45: Locate a point on any corner in the license plate area and record it as P2, and use P2 as a measurement point. Since the license plate area is considered as a rectangular area, any corner point (intersection point) of the rectangular area can be taken. But it must be noted that for the images captured by the left and right cameras, the corner positions must be unified, that is, if the upper left corner is selected in the license plate area of the left image, the upper left corner must also be selected in the license plate area of the right image.

步骤5:恢复所述的P1或P2的三维坐标P;Step 5: recovering the three-dimensional coordinates P of P1 or P2;

步骤6:计算OP之间的距离,得到前后两车之间的距离。Step 6: Calculate the distance between OPs to get the distance between the front and rear cars.

在计算前后车距的过程中,能同时对所述相机单元中的相机的外参数进行动态调整,方法如下:In the process of calculating the distance between front and rear vehicles, the extrinsic parameters of the camera in the camera unit can be dynamically adjusted at the same time, the method is as follows:

步骤11:计算所述前方车辆所在车道的两条车道线上点的三维坐标,记为Pi;根据(Zhu Wennan;Chen Qiang;Wang Hong《lane detection in some complexconditions》,Intelligent Robots and Systems,2006 IEEE/RSJ InternationalConference on,2006,117-122)算法获得前方车辆所在得车道得两条车道线的近似直线方程,分别标记为L1和L2,利用直线的立体匹配算法以及点的三维重建算法(立体匹配算法和三维重建算法详见马颂德,张正友.计算机视觉——计算理论与算法基础[C].北京:科学出版社,1997),获取两条车道线L1和L2上点的三维坐标,统一记为Pi;对于已经标定过的双目相机,如果获取了左右图像中的对应点,可以利用三维重建算法恢复对应点的三维坐标,具体算法参见:马颂德,张正友.计算机视觉——计算理论与算法基础[C].北京:科学出版社,1997Step 11: Calculate the three-dimensional coordinates of points on the two lane lines of the lane where the vehicle in front is located, and record it as Pi; according to (Zhu Wennan; Chen Qiang; Wang Hong "lane detection in some complex conditions", Intelligent Robots and Systems, 2006 IEEE /RSJ InternationalConference on, 2006, 117-122) algorithm to obtain the approximate straight line equations of the two lane lines of the lane where the vehicle in front is located, which are marked as L1 and L2 respectively, using the stereo matching algorithm of straight lines and the 3D reconstruction algorithm of points (stereo matching For the algorithm and 3D reconstruction algorithm, please refer to Ma Songde, Zhang Zhengyou. Computer Vision - Computational Theory and Algorithm Basis [C]. Beijing: Science Press, 1997). Obtain the 3D coordinates of the points on the two lane lines L1 and L2, and record them as Pi; for a binocular camera that has been calibrated, if the corresponding points in the left and right images are obtained, the 3D coordinates of the corresponding points can be restored using a 3D reconstruction algorithm. For the specific algorithm, see: Ma Songde, Zhang Zhengyou. Computer Vision - Computational Theory and Algorithm Basis [C]. Beijing: Science Press, 1997

步骤12:根据所述两条车道线上点的三维坐标Pi拟合空间平面V;拟合空间平面的方法如下:设三维点Pi坐标为(Xi,Yi,Zi),平面方程为AX+BY+CZ+1=0,则拟合的目的就是获取平面方程参数A,B和C,将三维点Pi坐标代入AX+BY+CZ+1=0中,构成如下方程组:Step 12: fitting the spatial plane V according to the three-dimensional coordinates Pi of points on the two lanes; the method for fitting the spatial plane is as follows: set the coordinates of the three-dimensional point P i as (X i , Y i , Z i ), and the plane equation AX+BY+CZ+1=0, then the purpose of fitting is to obtain the plane equation parameters A, B and C, and substitute the coordinates of the three-dimensional point Pi into AX+BY+CZ+1=0 to form the following equations:

xx 11 ythe y 11 zz 11 11 xx 22 ythe y 22 zz 22 11 &CenterDot;&Center Dot; &CenterDot;&Center Dot; &CenterDot;&Center Dot; &CenterDot;&CenterDot; &CenterDot;&Center Dot; &CenterDot;&CenterDot; &CenterDot;&Center Dot; &CenterDot;&CenterDot; &CenterDot;&CenterDot; &CenterDot;&Center Dot; &CenterDot;&Center Dot; &CenterDot;&Center Dot; xx nno ythe y nno zz nno 11 AA BB CC 11 == 00

采用奇异值分解方法求解如上所示的方程组,即可获得空间平面V的平面方程;The plane equation of the space plane V can be obtained by solving the equation system shown above by using the singular value decomposition method;

步骤13:将所述两条车道线上点的三维坐标Pi向所述空间平面V投影,获得三维坐标Pi在空间平面V上的平面二维坐标Qi;Step 13: Project the three-dimensional coordinates Pi of the points on the two lanes to the space plane V to obtain the plane two-dimensional coordinates Qi of the three-dimensional coordinates Pi on the space plane V;

步骤14:对所述平面二维坐标Qi进行直线拟合,得到两条直线向量a和b;直线拟合的方法如下:设二维点Qi的坐标为(xi,yi),共有m个点,所在直线为y=a0+a1x,则利用最小二乘法公式即可获取直线方程的参数a0和a1Step 14: Carry out straight line fitting to the two-dimensional coordinates Qi of the plane to obtain two straight line vectors a and b; the method of straight line fitting is as follows: set the coordinates of the two-dimensional point Qi as ( xi , y i ), and there are m points, the straight line is y=a 0 +a 1 x, then the parameters a 0 and a 1 of the straight line equation can be obtained by using the formula of the least square method:

mm &Sigma;&Sigma; xx ii &Sigma;&Sigma; xx ii &Sigma;&Sigma; xx ii 22 aa 00 aa 11 == &Sigma;&Sigma; ythe y ii &Sigma;&Sigma; xx ii ythe y ii ;;

步骤15:判断所述直线向量a和b是否平行,如果不平行,则重新标定所述相机单元中相机之间位置关系,得到新的相机标定参数;如果不平行表示此时相机的外参数发生变化,此时重新对靶标图像进行拍摄,利用张正友提出的基于平面模板的高精度相机标定算法(《A Flexible New Technique for CameraCalibration》,Pattern Analysis and Machine Intelligence,IEEE Transactions on,2000,11(22):1330-1334)重新对相机进行标定。Step 15: Determine whether the straight line vectors a and b are parallel, if not parallel, then recalibrate the positional relationship between the cameras in the camera unit to obtain new camera calibration parameters; if not parallel, it means that the extrinsic parameters of the camera have occurred at this time At this time, the target image is taken again, and the high-precision camera calibration algorithm based on the plane template proposed by Zhang Zhengyou ("A Flexible New Technique for Camera Calibration", Pattern Analysis and Machine Intelligence, IEEE Transactions on, 2000, 11(22) : 1330-1334) to re-calibrate the camera.

在步骤1进行的同时,结合卡尔曼滤波算法跟踪前方车辆。卡尔曼滤波算法是现有方法,参考文献是:赵莉,陈泉林,《基于Kalman滤波器的车辆检测与跟踪系统的实现》,电子测量技术,2007,30(2):165-168。While step 1 is being carried out, the vehicle in front is tracked in combination with the Kalman filter algorithm. Kalman filter algorithm is an existing method, the references are: Zhao Li, Chen Quanlin, "Realization of Vehicle Detection and Tracking System Based on Kalman Filter", Electronic Measurement Technology, 2007, 30(2): 165-168.

相机外参数包括旋转矩阵R和平移矩阵T。The extrinsic parameters of the camera include the rotation matrix R and the translation matrix T.

对向量a和向量b是否平行采用列文伯格-马夸尔特算法(Levenberg-Marquardt);Use the Levenberg-Marquardt algorithm (Levenberg-Marquardt) for whether the vector a and the vector b are parallel;

步骤43中所述的将提取到的所述边缘图像进行灰度投影,包括对提取到的所述边缘图像同时进行水平灰度投影和竖直灰度投影,并对水平灰度投影图从下到上寻找两个最大值,作为所述前车车牌的上限值和下限值;对竖直灰度投影图从下到上寻找两个最大值,作为所述前车车辆车牌的左限值和右限值。The grayscale projection of the extracted edge image described in step 43 includes performing horizontal grayscale projection and vertical grayscale projection on the extracted edge image at the same time, and the horizontal grayscale projection image from below Find two maximum values from top to top, as the upper limit and lower limit of the front vehicle license plate; look for two maximum values from bottom to top for the vertical grayscale projection map, as the left limit of the front vehicle license plate value and right limit.

所述投影方法为:将获得的所述边缘图像为记为I,I(x,y)表示图像中点(x,y)处的灰度值,水平灰度投影即,固定y坐标进行灰度累加,公式如下:The projection method is: the obtained edge image is denoted as I, I (x, y) represents the gray value at the point (x, y) in the image, and the horizontal gray projection is to fix the y coordinate for gray degree accumulation, the formula is as follows:

H j = &Sigma; i = 0 width I ( x i , y j ) , 其中width表示图像宽度,固定yj坐标; h j = &Sigma; i = 0 width I ( x i , the y j ) , Where width represents the width of the image, and the y j coordinates are fixed;

同理,竖直灰度投影即,固定x坐标进行灰度累加,公式如下:In the same way, the vertical grayscale projection is to fix the x coordinate for grayscale accumulation. The formula is as follows:

V j = &Sigma; i = 0 height I ( x j , y i ) , 其中height表示图像高度,固定xj坐标;对于车牌区域而言,水平灰度投影Hj中存在两个极大值,对应车牌的上限值和下限,竖直灰度投影Vj中存在两个极大值,对应车牌的左限值和右限值。 V j = &Sigma; i = 0 height I ( x j , the y i ) , where height represents the height of the image, and x j coordinates are fixed; for the license plate area, there are two maximum values in the horizontal grayscale projection Hj , corresponding to the upper limit and lower limit of the license plate, and there are two maximum values in the vertical grayscale projection Vj A maximum value, corresponding to the left limit value and right limit value of the license plate.

Claims (10)

1、一种基于双目视觉的车距测量方法,其特征在于:采用立体视觉的自适应前方车辆车距测量系统获取测量所需的参数,所述立体视觉的自适应前方车辆车距测量系统包括用于拍摄前方道路上信息的相机单元,所述相机单元包括第一相机C1和第二相机C2;所述第一相机C1和第二相机C2安装在车辆挡风玻璃后面,选取所述相机单元中任一相机的坐标系作为整个测量过程的世界坐标系,该相机的光心作为所述世界坐标系的原点,记为0,标定所述相机单元中相机之间位置关系,获取本车所在车道区域大小和车道线信息,将获取的所述本车所在车道区域大小和车道线信息构成的矩形区域的面积记为S1;1, a kind of distance measurement method based on binocular vision, it is characterized in that: adopt the self-adaptive front vehicle distance measurement system of stereo vision to obtain the parameter required for measurement, the self-adaptive front vehicle distance measurement system of described stereo vision Including a camera unit for photographing information on the road ahead, the camera unit includes a first camera C1 and a second camera C2; the first camera C1 and the second camera C2 are installed behind the windshield of the vehicle, and the camera is selected The coordinate system of any camera in the unit is used as the world coordinate system of the entire measurement process, and the optical center of the camera is used as the origin of the world coordinate system, which is recorded as 0. The positional relationship between the cameras in the camera unit is calibrated to obtain the vehicle The size of the lane area and the lane line information, the area of the rectangular area formed by the obtained lane area size and lane line information of the vehicle is recorded as S1; 步骤1:探测和验证前方车辆的车辆外形轮廓的部分矩形区域,将获得的前方车辆的车辆外形轮廓的部分矩形区域的面积记为S2;Step 1: Detect and verify the partial rectangular area of the vehicle outline of the vehicle in front, and denote the area of the partial rectangular area of the vehicle outline of the obtained vehicle in front as S2; 步骤2:将获取的所述本车所在车道区域大小和车道线信息构成的矩形区域的面积S1与获得的所述前方车辆的车辆外形轮廓的部分矩形区域面积S2进行比较,如果S1/S2<=阈值T,执行步骤3,如果S1/S2>阈值T,执行步骤4,阈值T=2;Step 2: Compare the obtained area S1 of the rectangular area formed by the size of the lane area where the vehicle is located and the lane line information with the obtained area S2 of the partial rectangular area of the vehicle outline of the vehicle in front, if S1/S2< =Threshold T, execute step 3, if S1/S2>threshold T, execute step 4, threshold T=2; 步骤3:计算所述前方车辆的车辆外形轮廓的部分矩形区域的矩形的形心,记为P1,执行步骤5;Step 3: Calculate the centroid of the rectangle of the partial rectangular area of the vehicle outline of the vehicle in front, denoted as P1, and perform step 5; 步骤4:提取所述前方车辆车牌轮廓的矩形区域的任一角的点,记为P2;Step 4: Extract the point of any corner of the rectangular area of the license plate outline of the vehicle in front, denoted as P2; 步骤5:恢复所述的P1或P2的三维坐标P;Step 5: recovering the three-dimensional coordinates P of P1 or P2; 步骤6:计算OP之间的距离,得到前后两车之间的距离。Step 6: Calculate the distance between OPs to get the distance between the front and rear cars. 2、如权利要求1所述的基于双目视觉的车距测量方法,其特征在于,在计算前后车距的过程中,能同时对所述相机单元中的相机的外参数进行动态调整,方法如下:2. The vehicle distance measurement method based on binocular vision as claimed in claim 1, characterized in that, in the process of calculating the front and rear vehicle distances, the external parameters of the camera in the camera unit can be dynamically adjusted simultaneously, the method as follows: 步骤11:计算所述前方车辆所在车道的两条车道线上点的三维坐标,记为Pi;Step 11: Calculate the three-dimensional coordinates of points on the two lane lines of the lane where the vehicle in front is located, denoted as Pi; 步骤12:根据所述两条车道线上点的三维坐标Pi拟合空间平面V;拟合空间平面的方法如下:设三维点Pi坐标为(Xi,Yi,Zi),平面方程为AX+BY+CZ+1=0,则拟合的目的就是获取平面方程参数A,B和C,将三维点Pi坐标代入AX+BY+CZ+1=0中,构成如下方程组:Step 12: fitting the spatial plane V according to the three-dimensional coordinates Pi of points on the two lanes; the method for fitting the spatial plane is as follows: set the coordinates of the three-dimensional point P i as (X i , Y i , Z i ), and the plane equation AX+BY+CZ+1=0, then the purpose of fitting is to obtain the plane equation parameters A, B and C, and substitute the coordinates of the three-dimensional point Pi into AX+BY+CZ+1=0 to form the following equations: xx 11 ythe y 11 zz 11 11 xx 22 ythe y 22 zz 22 11 .. .. .. .. .. .. .. .. .. .. .. .. xx nno ythe y nno zz nno 11 AA BB CC 11 == 00 求解如上所示的方程组,即可获得空间平面V的平面方程;By solving the equations shown above, the plane equation of the space plane V can be obtained; 步骤13:将所述两条车道线上点的三维坐标Pi向所述空间平面V投影,获得三维坐标Pi在空间平面V上的平面二维坐标Qi;Step 13: Project the three-dimensional coordinates Pi of the points on the two lanes to the space plane V to obtain the plane two-dimensional coordinates Qi of the three-dimensional coordinates Pi on the space plane V; 步骤14:对所述平面二维坐标Qi进行直线拟合,得到两条直线向量a和b;直线拟合的方法如下:设二维点Qi的坐标为(xi,yi),共有m个点,所在直线为y=a0+a1x,则利用最小二乘法公式即可获取直线方程的参数a0和a1Step 14: Carry out straight line fitting to the two-dimensional coordinates Qi of the plane to obtain two straight line vectors a and b; the method of straight line fitting is as follows: set the coordinates of the two-dimensional point Qi as ( xi , y i ), and there are m points, the straight line is y=a 0 +a 1 x, then the parameters a 0 and a 1 of the straight line equation can be obtained by using the formula of the least square method: mm &Sigma;x&Sigma;x ii &Sigma;x&Sigma;x ii &Sigma;x&Sigma;x ii 22 aa 00 aa 11 == &Sigma;y&Sigma;y ii &Sigma;x&Sigma;x ii ythe y ii ;; 步骤15:所述直线向量a和b如果不平行,则重新标定所述相机单元中相机之间位置关系,得到新的相机标定参数。Step 15: If the straight line vectors a and b are not parallel, recalibrate the positional relationship between the cameras in the camera unit to obtain new camera calibration parameters. 3、如权利要求1所述的基于双目视觉的车距测量方法,其特征在于,所述步骤1中,获得的前方车辆的车辆外形轮廓的部分矩形区域方法步骤如下:3. The vehicle distance measurement method based on binocular vision as claimed in claim 1, wherein in said step 1, the steps of the method for obtaining the partial rectangular area of the vehicle profile of the vehicle in front are as follows: 1)在本车前方道路中,按照水平线扫描前方车辆的轮廓,获得所述前方车辆的轮廓的图像,计算所述图像中每行灰度平均值RowAvr(r),如下式所示:1) On the road ahead of the vehicle, scan the outline of the vehicle in front according to the horizontal line to obtain an image of the outline of the vehicle in front, and calculate the average gray value RowAvr(r) of each line in the image, as shown in the following formula: RowAvr ( r ) = 1 Right ( r ) - Left ( r ) &Sigma; c = Left ( r ) Right ( r ) I ( r , c ) , 上式中,Right(r)表示图像中车道区域第r行的最右边坐标;Left(r)表示图像中车道区域第r行的最左边坐标;I(r,c)是图像中(r,c)的灰度;RowAvr(r)表示车道区域内第r行的灰度平均值,将RowAvr(r)和RowAvr(r-1)变化最大的r作为前方车辆的下边缘,记为LowerPos; RowAvr ( r ) = 1 Right ( r ) - Left ( r ) &Sigma; c = Left ( r ) Right ( r ) I ( r , c ) , In the above formula, Right(r) represents the rightmost coordinate of the rth row of the lane area in the image; Left(r) represents the leftmost coordinate of the rth row of the lane area in the image; I(r, c) is the image (r, c) grayscale; RowAvr(r) represents the grayscale average value of the rth row in the lane area, and the r with the largest change in RowAvr(r) and RowAvr(r-1) is used as the lower edge of the vehicle in front, which is recorded as LowerPos; 2)在车道区域内进行索贝尔(SOBEL)边缘提取算法获取车道区域内前方车辆的边缘图像,在边缘图像的[LowerPos-Tr,LowerPos]行内,判断最左边的边缘点位置和最右边的边缘点位置,并将其认为是前方车辆的左边缘和右边缘,分别记为LeftPos和RightPos;其中Tr取2~6,LeftPos和RightPos分别表示车辆区域的最左边和最右边;2) Perform Sobel (SOBEL) edge extraction algorithm in the lane area to obtain the edge image of the vehicle in front of the lane area, and judge the position of the leftmost edge point and the rightmost edge in the [LowerPos-Tr, LowerPos] line of the edge image Point position, and consider it as the left edge and right edge of the vehicle in front, which are respectively recorded as LeftPos and RightPos; where Tr is 2~6, LeftPos and RightPos represent the leftmost and rightmost of the vehicle area respectively; 3)假设车辆矩形的长宽比为Ta,则根据步骤2)可知车辆外形轮廓的部分矩形区域的宽边为RightPos-LeftPos,则获得矩形区域的长边为(RightPos-LeftPos)*Ta,Ta取值一般在0.5-1.0。3) Assuming that the aspect ratio of the vehicle rectangle is Ta, then according to step 2), it can be known that the wide side of the partial rectangular area of the vehicle outline is RightPos-LeftPos, then the long side of the obtained rectangular area is (RightPos-LeftPos)*Ta, Ta The value is generally 0.5-1.0. 4、如权利要求1所述的基于双目视觉的车距测量方法,其特征在于,所述步骤3中,包括如下步骤:4. The method for measuring distance between vehicles based on binocular vision as claimed in claim 1, wherein said step 3 comprises the following steps: 步骤31:提取所述前方车辆的车辆外形轮廓的部分矩形区域S2内所有边缘点Pi,并放入边缘序列中;Step 31: Extract all edge points Pi in the partial rectangular area S2 of the vehicle outline of the vehicle in front, and put them into the edge sequence; 步骤32:将所述边缘序列Pi的坐标的平均值作为形心坐标,记为P1,将P1作为测量点。Step 32: Use the average value of the coordinates of the edge sequence Pi as the centroid coordinates, denoted as P1, and use P1 as the measurement point. 5、如权利要求1所述的基于双目视觉的车距测量方法,其特征在于,所述步骤4中,包括如下步骤:5. The method for measuring vehicle distance based on binocular vision as claimed in claim 1, wherein said step 4 comprises the following steps: 步骤41:在所述前方车辆车牌的矩形区域中利用索贝尔边缘算子提取边缘图像;Step 41: using a Sobel edge operator to extract an edge image in the rectangular area of the license plate of the vehicle in front; 步骤42:根据图像分割算法对提取到的所述边缘图像进行二值化处理;Step 42: Binarize the extracted edge image according to the image segmentation algorithm; 步骤43:将提取到的所述边缘图像进行灰度投影,得到车牌的上限值a、下限值b、左限值c右限值d;Step 43: Perform grayscale projection on the extracted edge image to obtain the upper limit a, lower limit b, left limit c and right limit d of the license plate; 步骤44:根据得到的所述车牌的上限值a、下限值b、左限值c和右限值d,得到表示车牌区域矩形的左上,左下,右上和右下四个角点在图像中的坐标为(c,a),(c,b),(d,a)和(d,b);Step 44: According to the obtained upper limit value a, lower limit value b, left limit value c and right limit value d of the license plate, obtain the upper left, lower left, upper right and lower right four corner points of the rectangle representing the license plate area in the image The coordinates in are (c,a), (c,b), (d,a) and (d,b); 步骤45:在所述车牌区域中定位任一角上的点,记为P2,将P2作为测量点。Step 45: Locate a point on any corner in the license plate area, denoted as P2, and take P2 as a measurement point. 6、如权利要求1所述的基于双目视觉的车距测量方法,其特征在于,在步骤1进行的同时,结合卡尔曼滤波算法跟踪前方车辆。6. The vehicle distance measurement method based on binocular vision according to claim 1, characterized in that, while step 1 is being performed, the vehicle in front is tracked in combination with a Kalman filter algorithm. 7、如权利要求2所述的基于双目视觉的车距测量方法,其特征在于,所述相机外参数包括旋转矩阵R和平移矩阵T。7. The method for measuring vehicle distance based on binocular vision according to claim 2, characterized in that the extrinsic parameters of the camera include a rotation matrix R and a translation matrix T. 8、如权利要求2所述的基于双目视觉的车距测量方法,其特征在于,步骤15中,对向量a和向量b是否平行采用列文伯格-马夸尔特算法(Levenberg-Marquardt)。8. The vehicle distance measuring method based on binocular vision as claimed in claim 2, characterized in that, in step 15, whether the vector a and the vector b are parallel to adopt the Levenberg-Marquardt algorithm (Levenberg-Marquardt ). 9、如权利要求5所述的基于双目视觉的车距测量方法,其特征在于,所述步骤43中所述的将提取到的所述边缘图像进行灰度投影,包括对提取到的所述边缘图像同时进行水平灰度投影和竖直灰度投影,并对水平灰度投影图从下到上寻找两个最大值,作为所述前车车牌的上限值和下限值;对竖直灰度投影图从下到上寻找两个最大值,作为所述前车车辆车牌的左限值和右限值。9. The vehicle distance measurement method based on binocular vision according to claim 5, characterized in that, performing grayscale projection on the extracted edge image in the step 43 includes: Perform horizontal grayscale projection and vertical grayscale projection on the edge image at the same time, and search for two maximum values from bottom to top for the horizontal grayscale projection map, as the upper limit and lower limit of the front car license plate; The straight grayscale projection map looks for two maximum values from bottom to top, which are used as the left limit value and the right limit value of the license plate of the vehicle in front. 10、如权利要求9所述的基于双目视觉的车距测量方法,其特征在于,所述投影方法为:将获得的所述边缘图像为记为I,I(x,y)表示图像中点(x,y)处的灰度值,水平灰度投影即,固定y坐标进行灰度累加,公式如下:10. The method for measuring distance between vehicles based on binocular vision as claimed in claim 9, wherein the projection method is: the obtained edge image is denoted as I, and I(x, y) represents the distance in the image The gray value at the point (x, y), the horizontal gray projection, that is, the fixed y coordinate for gray accumulation, the formula is as follows: H j = &Sigma; i = 0 width I ( x i , y j ) , 其中width表示图像宽度,固定yj坐标; h j = &Sigma; i = 0 width I ( x i , the y j ) , Where width represents the width of the image, and the y j coordinates are fixed; 同理,竖直灰度投影即,固定x坐标进行灰度累加,公式如下:In the same way, the vertical grayscale projection is to fix the x coordinate for grayscale accumulation. The formula is as follows: V j = &Sigma; i = 0 height I ( x j , y i ) , 其中height表示图像高度,固定xj坐标;对于车牌区域而言,水平灰度投影Hj中存在两个极大值,对应车牌的上限值和下限,竖直灰度投影Vj中存在两个极大值,对应车牌的左限值和右限值。 V j = &Sigma; i = 0 height I ( x j , the y i ) , where height represents the height of the image, and x j coordinates are fixed; for the license plate area, there are two maximum values in the horizontal grayscale projection Hj , corresponding to the upper limit and lower limit of the license plate, and there are two maximum values in the vertical grayscale projection Vj A maximum value, corresponding to the left limit value and right limit value of the license plate.
CNA2007100251669A 2007-07-13 2007-07-13 Vehicle distance measurement method based on binocular vision Pending CN101294801A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007100251669A CN101294801A (en) 2007-07-13 2007-07-13 Vehicle distance measurement method based on binocular vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007100251669A CN101294801A (en) 2007-07-13 2007-07-13 Vehicle distance measurement method based on binocular vision

Publications (1)

Publication Number Publication Date
CN101294801A true CN101294801A (en) 2008-10-29

Family

ID=40065229

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007100251669A Pending CN101294801A (en) 2007-07-13 2007-07-13 Vehicle distance measurement method based on binocular vision

Country Status (1)

Country Link
CN (1) CN101294801A (en)

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010133099A1 (en) * 2009-05-20 2010-11-25 深圳泰山在线科技有限公司 Target detecting method and system and stereovision system
CN101915990A (en) * 2009-04-02 2010-12-15 通用汽车环球科技运作公司 Enhancing road vision on the full-windscreen head-up display
CN101498889B (en) * 2009-03-03 2011-09-21 无锡易斯科电子技术有限公司 Multi-eye stereo camera shooting method and device
CN102269569A (en) * 2010-06-03 2011-12-07 蒋安邦 Double-camera sensor for determining position of movable light source target in three-dimensional space
CN102529973A (en) * 2010-12-30 2012-07-04 通用汽车环球科技运作有限责任公司 Graphical vehicle command system for autonomous vehicles on full windshield head-up display
CN102679873A (en) * 2012-05-29 2012-09-19 吉林大学 Overall-vehicle-dimension full-view stereoscopic vision measurement system for commercial vehicles
CN102679874A (en) * 2012-05-30 2012-09-19 吉林大学 Large-size commercial vehicle full-view stereoscopic vision measurement system with variable baseline distance
CN102915532A (en) * 2011-06-30 2013-02-06 哈曼贝克自动系统股份有限公司 Method of determining extrinsic parameters of a vehicle vision system and vehicle vision system
CN103134429A (en) * 2013-03-19 2013-06-05 南京智真电子科技有限公司 Vehicles and trains straight driving track measuring method based on vision
CN103278134A (en) * 2013-04-29 2013-09-04 苏州百纳思光学科技有限公司 Car far-infrared night-vision range finding system
CN103640521A (en) * 2013-12-11 2014-03-19 上海电机学院 Distance measurement method for automobile distance maintaining warning instrument
CN104021388A (en) * 2014-05-14 2014-09-03 西安理工大学 Reversing obstacle automatic detection and early warning method based on binocular vision
CN104508726A (en) * 2012-07-27 2015-04-08 日产自动车株式会社 Three-dimensional object detection device, and three-dimensional object detection method
CN105091849A (en) * 2014-05-05 2015-11-25 南京理工大学 Optical axis nonlinear binocular range finding method
CN105783731A (en) * 2016-03-08 2016-07-20 上海易景信息科技有限公司 Method for measuring length of measured object by means of double cameras
CN105783936A (en) * 2016-03-08 2016-07-20 武汉光庭信息技术股份有限公司 Road sign drawing and vehicle positioning method and system for automatic drive
CN106250816A (en) * 2016-07-19 2016-12-21 武汉依迅电子信息技术有限公司 A kind of Lane detection method and system based on dual camera
CN106485187A (en) * 2015-08-26 2017-03-08 长城汽车股份有限公司 A kind of method and system judging front vehicles transport condition
CN106558080A (en) * 2016-11-14 2017-04-05 天津津航技术物理研究所 Join on-line proving system and method outside a kind of monocular camera
CN107643049A (en) * 2017-09-26 2018-01-30 沈阳理工大学 Vehicle position detection system and method on weighbridge based on monocular structure light
CN107728175A (en) * 2017-09-26 2018-02-23 南京航空航天大学 The automatic driving vehicle navigation and positioning accuracy antidote merged based on GNSS and VO
CN108108667A (en) * 2017-12-01 2018-06-01 大连理工大学 A kind of front vehicles fast ranging method based on narrow baseline binocular vision
CN108108680A (en) * 2017-12-13 2018-06-01 长安大学 A kind of front vehicle identification and distance measuring method based on binocular vision
CN108645375A (en) * 2018-06-05 2018-10-12 浙江零跑科技有限公司 One kind being used for vehicle-mounted biocular systems rapid vehicle distance measurement optimization method
CN109084724A (en) * 2018-07-06 2018-12-25 西安理工大学 A kind of deep learning barrier distance measuring method based on binocular vision
CN110097579A (en) * 2019-06-14 2019-08-06 中国科学院合肥物质科学研究院 Multiple dimensioned wireless vehicle tracking and device based on pavement texture contextual information
CN111046843A (en) * 2019-12-27 2020-04-21 华南理工大学 A monocular ranging method in intelligent driving environment
CN112985360A (en) * 2021-05-06 2021-06-18 中汽数据(天津)有限公司 Lane line-based binocular ranging correction method, device, equipment and storage medium
CN113011388A (en) * 2021-04-23 2021-06-22 吉林大学 Vehicle outer contour size detection method based on license plate and lane line
CN115265360A (en) * 2022-06-24 2022-11-01 天津华来科技股份有限公司 Automatic detection method and device for reagent bottle

Cited By (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101498889B (en) * 2009-03-03 2011-09-21 无锡易斯科电子技术有限公司 Multi-eye stereo camera shooting method and device
CN101915990A (en) * 2009-04-02 2010-12-15 通用汽车环球科技运作公司 Enhancing road vision on the full-windscreen head-up display
CN101915990B (en) * 2009-04-02 2013-06-26 通用汽车环球科技运作公司 Enhanced road vision on full windshield head-up display
WO2010133099A1 (en) * 2009-05-20 2010-11-25 深圳泰山在线科技有限公司 Target detecting method and system and stereovision system
CN102269569A (en) * 2010-06-03 2011-12-07 蒋安邦 Double-camera sensor for determining position of movable light source target in three-dimensional space
CN102529973A (en) * 2010-12-30 2012-07-04 通用汽车环球科技运作有限责任公司 Graphical vehicle command system for autonomous vehicles on full windshield head-up display
CN102529973B (en) * 2010-12-30 2014-12-17 通用汽车环球科技运作有限责任公司 A method and device to control operation of a vehicle based upon a user input from a user of the vehicle to a graphic projection display
CN102915532A (en) * 2011-06-30 2013-02-06 哈曼贝克自动系统股份有限公司 Method of determining extrinsic parameters of a vehicle vision system and vehicle vision system
CN102915532B (en) * 2011-06-30 2017-06-30 哈曼贝克自动系统股份有限公司 Determine the method and vehicle vision system of vehicle vision system external parameter
CN102679873A (en) * 2012-05-29 2012-09-19 吉林大学 Overall-vehicle-dimension full-view stereoscopic vision measurement system for commercial vehicles
CN102679874B (en) * 2012-05-30 2014-07-09 吉林大学 Large-size commercial vehicle full-view stereoscopic vision measurement system with variable baseline distance
CN102679874A (en) * 2012-05-30 2012-09-19 吉林大学 Large-size commercial vehicle full-view stereoscopic vision measurement system with variable baseline distance
CN104508726A (en) * 2012-07-27 2015-04-08 日产自动车株式会社 Three-dimensional object detection device, and three-dimensional object detection method
US9569675B2 (en) 2012-07-27 2017-02-14 Nissan Motor Co., Ltd. Three-dimensional object detection device, and three-dimensional object detection method
CN103134429B (en) * 2013-03-19 2015-12-23 南京智真电子科技有限公司 A kind of truck combination straight-line travelling trajectory measurement method of view-based access control model
CN103134429A (en) * 2013-03-19 2013-06-05 南京智真电子科技有限公司 Vehicles and trains straight driving track measuring method based on vision
CN103278134A (en) * 2013-04-29 2013-09-04 苏州百纳思光学科技有限公司 Car far-infrared night-vision range finding system
CN103640521A (en) * 2013-12-11 2014-03-19 上海电机学院 Distance measurement method for automobile distance maintaining warning instrument
CN103640521B (en) * 2013-12-11 2016-05-11 上海电机学院 A kind of automobile distance keeps the distance-finding method of warning device
CN105091849A (en) * 2014-05-05 2015-11-25 南京理工大学 Optical axis nonlinear binocular range finding method
CN104021388A (en) * 2014-05-14 2014-09-03 西安理工大学 Reversing obstacle automatic detection and early warning method based on binocular vision
CN104021388B (en) * 2014-05-14 2017-08-22 西安理工大学 Barrier during backing automatic detection and method for early warning based on binocular vision
CN106485187A (en) * 2015-08-26 2017-03-08 长城汽车股份有限公司 A kind of method and system judging front vehicles transport condition
CN106485187B (en) * 2015-08-26 2020-01-14 长城汽车股份有限公司 Method and system for judging driving state of front vehicle
CN105783936A (en) * 2016-03-08 2016-07-20 武汉光庭信息技术股份有限公司 Road sign drawing and vehicle positioning method and system for automatic drive
CN105783936B (en) * 2016-03-08 2019-09-24 武汉中海庭数据技术有限公司 For the road markings drawing and vehicle positioning method and system in automatic Pilot
CN105783731A (en) * 2016-03-08 2016-07-20 上海易景信息科技有限公司 Method for measuring length of measured object by means of double cameras
CN106250816A (en) * 2016-07-19 2016-12-21 武汉依迅电子信息技术有限公司 A kind of Lane detection method and system based on dual camera
CN106558080A (en) * 2016-11-14 2017-04-05 天津津航技术物理研究所 Join on-line proving system and method outside a kind of monocular camera
CN106558080B (en) * 2016-11-14 2020-04-24 天津津航技术物理研究所 Monocular camera external parameter online calibration method
CN107643049A (en) * 2017-09-26 2018-01-30 沈阳理工大学 Vehicle position detection system and method on weighbridge based on monocular structure light
CN107728175A (en) * 2017-09-26 2018-02-23 南京航空航天大学 The automatic driving vehicle navigation and positioning accuracy antidote merged based on GNSS and VO
CN107643049B (en) * 2017-09-26 2023-06-20 沈阳理工大学 System and method for detecting vehicle position on wagon balance based on monocular structured light
CN108108667A (en) * 2017-12-01 2018-06-01 大连理工大学 A kind of front vehicles fast ranging method based on narrow baseline binocular vision
CN108108680A (en) * 2017-12-13 2018-06-01 长安大学 A kind of front vehicle identification and distance measuring method based on binocular vision
CN108645375B (en) * 2018-06-05 2020-11-17 浙江零跑科技有限公司 Rapid vehicle distance measurement optimization method for vehicle-mounted binocular system
CN108645375A (en) * 2018-06-05 2018-10-12 浙江零跑科技有限公司 One kind being used for vehicle-mounted biocular systems rapid vehicle distance measurement optimization method
CN109084724A (en) * 2018-07-06 2018-12-25 西安理工大学 A kind of deep learning barrier distance measuring method based on binocular vision
CN110097579A (en) * 2019-06-14 2019-08-06 中国科学院合肥物质科学研究院 Multiple dimensioned wireless vehicle tracking and device based on pavement texture contextual information
CN111046843A (en) * 2019-12-27 2020-04-21 华南理工大学 A monocular ranging method in intelligent driving environment
CN111046843B (en) * 2019-12-27 2023-06-20 华南理工大学 Monocular ranging method in intelligent driving environment
CN113011388A (en) * 2021-04-23 2021-06-22 吉林大学 Vehicle outer contour size detection method based on license plate and lane line
CN113011388B (en) * 2021-04-23 2022-05-06 吉林大学 A detection method of vehicle outer contour size based on license plate and lane line
CN112985360A (en) * 2021-05-06 2021-06-18 中汽数据(天津)有限公司 Lane line-based binocular ranging correction method, device, equipment and storage medium
CN115265360A (en) * 2022-06-24 2022-11-01 天津华来科技股份有限公司 Automatic detection method and device for reagent bottle

Similar Documents

Publication Publication Date Title
CN101294801A (en) Vehicle distance measurement method based on binocular vision
CN108759667B (en) Distance measurement method of front vehicle based on monocular vision and image segmentation under vehicle camera
CN107738612B (en) Automatic parking parking space detection and recognition system based on panoramic vision assistance system
CN108444390B (en) Unmanned automobile obstacle identification method and device
CN107133985B (en) Automatic calibration method for vehicle-mounted camera based on lane line vanishing point
CN101776438B (en) Measuring device and method of road mark
CN102999759B (en) A kind of state of motion of vehicle method of estimation based on light stream
US9959595B2 (en) Dense structure from motion
CN103308056B (en) A kind of roadmarking detection method
US10102644B2 (en) Method and a device for estimating an orientation of a camera relative to a road surface
EP3678096B1 (en) Method for calculating a tow hitch position
CN103727927B (en) The high-speed moving object pose vision measuring method of structure based light
CN102589530B (en) Method for measuring position and gesture of non-cooperative target based on fusion of two dimension camera and three dimension camera
CN107463890B (en) A kind of Foregut fermenters and tracking based on monocular forward sight camera
Broggi et al. Self-calibration of a stereo vision system for automotive applications
CN104700414A (en) Rapid distance-measuring method for pedestrian on road ahead on the basis of on-board binocular camera
US20090169052A1 (en) Object Detector
CN107392103A (en) The detection method and device of road surface lane line, electronic equipment
Lin et al. Lane departure and front collision warning using a single camera
CN107796373B (en) Distance measurement method based on monocular vision of front vehicle driven by lane plane geometric model
CN108230393A (en) A kind of distance measuring method of intelligent vehicle forward vehicle
CN109827516B (en) Method for measuring distance through wheel
Liu et al. Development of a vision-based driver assistance system with lane departure warning and forward collision warning functions
JP5501084B2 (en) Planar area detection apparatus and stereo camera system
CN113313116B (en) Underwater artificial target accurate detection and positioning method based on vision

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20081029