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

Vehicle distance measuring 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
coordinate
camera
front vehicles
vehicle
designated
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

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

Abstract

The invention provides a method of measuring the vehicle distance based on binocular vision. Required parameters are obtained by adopting a self-adapting front vehicle distance measurement system of stereoscopic vision, which comprises a camera unit used for shooting traffic information ahead. The camera unit comprises a first camera C1 and a second camera C2; the coordinate system of either camera in the camera unit is taken as the world coordinate system of the whole measurement process, the photo-center of the camera is taken as the origin of the world coordinate system and is noted as 0, the positional relation between the two cameras in the camera unit is calibrated, and the size of the driveway area and the traffic lane line information of the vehicle are obtained and noted as S1, thus improving the measurement accuracy and ensuring the driving safety.

Description

Vehicle distance measurement method based on binocular vision
Technical field
The present invention relates to the vehicle distance measurement method between a kind of front vehicles and the front vehicle.
Background technology
As the important component part of intelligent transportation system (ITS), the security system of vehicle always is important field of research, and the front vehicles distance measurement technique then is one of technology the most key in the Vehicle security system.Front vehicles distance survey technology is not only forward position and the focus of studying in the current Vehicle security system field, also is the hi-tech that computer vision technique and electronic technology combine.The precision of front vehicles range observation has determined the Vehicle security system performance to a great extent.
In present vehicle range measurement system, distance-finding method based on vision is the most promising a kind of method by generally acknowledging, the method of the front vehicles distance survey that all is based on the monocular vision principle that most of vision range measurement system adopts in the present prior art, this method is placed in camera on the vehicle by certain fixed form, in advance height and luffing angle that the back camera is installed are measured, and calculated the measurement that realizes the front vehicles distance by a series of formula.Low and the spacing computation complexity reduction of simplicity of design, cost of system also exist some problems though adopt these class methods to make.At first, because the measurement result of this method depends on the camera setting height(from bottom) and the luffing angle of prior measurement strongly, therefore along with vehicle ', camera position can be because the shake effect, original relatively inevitably installation site changes, thereby changed the camera parameter, luffing angle especially, this can make measurement result generation deviation.Secondly it is comparatively accurate for the measurement that is near the measured point the ground that this monocular is measured spacing method, if the measured point on the front vehicles has certain height apart from ground, then this moment, measurement result existed than mistake, when especially two spacings are nearer, error is more obvious, and this will have a strong impact on the security of vehicle.
On the other hand, binocular stereo vision is widely used as a kind of advanced person's vision measuring method, and stereoscopic vision can directly be recovered the three-dimensional coordinate of measured point, thereby can accurately obtain space length information.Therefore adopt stereoscopic vision to measure the front vehicles distance and have better accuracy and reliability.
Summary of the invention
The object of the present invention is to provide a kind of vehicle distance measurement method based on binocular vision, solved the big problem of measuring error in the prior art, the present invention can be automatically according to vehicle ' s contour information and road information, accurately measure the distance between this car and the front vehicles, and compensation improves the accuracy and the stability of systematic survey because the camera parameters that the vehicle shake causes changes automatically.
For reaching above-mentioned technical purpose, the technical solution used in the present invention is:
Adopt the self-adaptation front vehicles distance survey system of stereoscopic vision to obtain the required parameter of measurement, the self-adaptation front vehicles distance survey system of described stereoscopic vision comprises the camera unit that is used to take information on the road ahead, and described camera unit comprises the first camera C1 and the second camera C2; The described first camera C1 and the second camera C2 are installed in the vehicle windscreen back, choose the world coordinate system of the coordinate system of arbitrary camera in the described camera unit as whole measuring process, the photocentre of this camera is as the initial point of described world coordinate system, be designated as O, demarcate in the described camera unit position relation between the camera, obtain this car place track area size and lane line information, the area of the rectangular area that described car place track area size obtaining and lane line information are constituted is designated as S1;
Step 1: survey and the segment rectangle zone of the contour of the vehicle profile of checking front vehicles, the area in the segment rectangle zone of the contour of the vehicle profile of the front vehicles that obtains is designated as S2;
Step 2: the segment rectangle region area S2 of the contour of the vehicle profile of the rectangular area area S1 that described car place track area size will obtaining and lane line information constitute and the described front vehicles of acquisition compares, if S1/S2<=threshold value T, execution in step 3, if S1/S2>threshold value T, execution in step 4, threshold value T=2;
Step 3: calculate the centre of form of rectangle in segment rectangle zone of the contour of the vehicle profile of described front vehicles, be designated as P1, execution in step 5;
Step 4: extract the point at arbitrary angle of the rectangular area of described front vehicles car plate profile, be designated as P2;
Step 5: the three-dimensional coordinate P that recovers described P1 or P2;
Step 6: calculate the distance between the OP, the distance before and after obtaining between two cars.
In a preferred embodiment of the invention, in the process of calculating front-and-rear vehicle distance, can dynamically adjust the outer parameter of the camera in the described camera unit simultaneously, method is as follows:
Step 11: calculate the three-dimensional coordinate of putting on two lane lines in track, described front vehicles place, be designated as Pi;
Step 12: according to the three-dimensional coordinate Pi match space plane V that puts on described two lane lines; The method of match space plane is as follows: establish three-dimensional point P iCoordinate is (X i, Y i, Z i), plane equation is AX+BY+CZ+1=0, and then the purpose of match is obtained the plane equation parameter A exactly, and B and C are with three-dimensional point P iAmong the coordinate substitution AX+BY+CZ+1=0, be constructed as follows system of equations:
x 1 y 1 z 1 1 x 2 y 2 z 2 1 · · · · · · · · · · · · x n y n z n 1 A B C 1 = 0
Find the solution system of equations as implied above, can obtain the plane equation of space plane V;
Step 13: the three-dimensional coordinate Pi that puts on described two lane lines to described space plane V projection, is obtained the planar coordinate Qi of three-dimensional coordinate Pi on space plane V;
Step 14: described planar coordinate Qi is carried out fitting a straight line, obtain two straight line vector a and b; The method of fitting a straight line is as follows: the coordinate of establishing two-dimensional points Qi is (x i, y i), total m point, the place straight line is y=a 0+ a 1X then utilizes the least square method formula can obtain the parameter a of straight-line equation 0And a 1:
m Σ x i Σ x i Σ x i 2 a 0 a 1 = Σ y i Σ x i y i ;
Step 15: judge whether described straight line vector a is parallel with b,, then demarcate in the described camera unit position relation between the camera again, obtain new camera calibration parameter if not parallel;
In a preferred embodiment of the invention, the segment rectangle region method step of the contour of the vehicle profile of the front vehicles of acquisition is as follows:
1) on the standard road surface, can think in the zone, track of above-mentioned acquisition, the grey scale change of road in image is mild between we and the front vehicles, but in road surface and vehicle intersection, owing to there is shade, therefore form the edge of gradation of image from bright to dark, think that this edge is exactly the lower limb of vehicle.In this car road ahead, according to the profile of horizon scan line front vehicles, obtain the image of the profile of described front vehicles, calculate every capable average gray RowAvr (r) in the described image, be shown below:
RowAvr ( r ) = 1 Right ( r ) - Left ( r ) Σ c = Left ( r ) Right ( r ) I ( r , c ) , In the following formula, zone r capable rightmost coordinate in track in Right (r) presentation video; Zone r capable Far Left coordinate in track in Left (r) presentation video; (r c) is (r, gray scale c) in the image to I; The capable average gray of r in RowAvr (r) the expression zone, track changes the lower limb of maximum r as front vehicles with RowAvr (r) and RowAvr (r-1), is designated as LowerPos;
2) in the zone, track, carry out the edge image that Suo Beier (SOBEL) edge extracting algorithm obtains front vehicles in the zone, track, [LowerPos-Tr at edge image, LowerPos] row in, judge leftmost edge point position and rightmost edge point position, and, be designated as LeftPos and RightPos respectively with its left hand edge and right hand edge of thinking front vehicles; Wherein Tr gets 2 ~ 6, and LeftPos and RightPos represent the Far Left and the rightmost of vehicle region respectively;
3) length breadth ratio of supposing the vehicle rectangle is Ta, then according to step 2) as can be known the broadside in the segment rectangle zone of contour of the vehicle profile be RightPos-LeftPos, the long limit that then obtains the rectangular area is (RightPos-LeftPos) * Ta, and the Ta value is generally at 0.5-1.0;
In a preferred embodiment of the invention, in the described step 3, comprise the steps:
Step 31: extract segment rectangle region S 2 interior all marginal point Pi of the contour of the vehicle profile of described front vehicles, and put into the edge sequence;
Step 32: the mean value of the coordinate of described edge sequence Pi as centre of form coordinate, is designated as P1, with P1 as measurement point.
In a preferred embodiment of the invention, in the described step 4, comprise the steps:
Step 41: in the rectangular area of described front vehicles car plate, utilize the Suo Beier boundary operator to extract edge image;
Step 42: the described edge image that extracts is carried out binary conversion treatment according to image segmentation algorithm;
Step 43: the described edge image that will extract carries out Gray Projection, obtains the right limit value d of higher limit a, the lower limit b of car plate, left limit value c;
Step 44: obtain representing the upper left of license plate area rectangle according to higher limit a, the lower limit b of the described car plate that obtains, left limit value c and right limit value d, the lower-left, the upper right and bottom right coordinate of four angle points in image be (c, a), (c, b), (d, a) with (d, b);
Step 45: the point of location on arbitrary angle in described license plate area, be designated as P2, with P2 as measurement point.
In a preferred embodiment of the invention, when step 1 is carried out, follow the tracks of front vehicles in conjunction with Kalman filtering algorithm.
In a preferred embodiment of the invention, described Camera extrinsic number comprises rotation matrix R and translation matrix T.
In a preferred embodiment of the invention, in the step 15, whether parallel employing is listed as civilian Burger-Ma Kuaerte algorithm (Levenberg-Marquardt) with vectorial b to vectorial a;
In a preferred embodiment of the invention, the described edge image that will extract described in the described step 43 carries out Gray Projection, comprise the described edge image that extracts is carried out horizontal Gray Projection and vertical Gray Projection simultaneously, and horizontal Gray Projection figure sought two maximal values from top to bottom, as the higher limit and the lower limit of described front truck car plate; Vertical Gray Projection figure is sought two maximal values from top to bottom, as the left limit value and the right limit value of described front truck vehicle license plate.
In a preferred embodiment of the invention, described projecting method is: the described edge image that will obtain is for being designated as I, I (x, y) the presentation video mid point (x, the gray-scale value of y) locating, horizontal Gray Projection promptly, fixedly the y coordinate carries out gray scale and adds up, formula is as follows:
H j = Σ i = 0 width I ( x i , y j ) , Wherein width presentation video width, fixedly y jCoordinate;
In like manner, vertically Gray Projection promptly, fixedly the x coordinate carries out gray scale and adds up, formula is as follows:
V j = Σ i = 0 height I ( x j , y i ) , Wherein height presentation video height, fixedly x jCoordinate; For license plate area, horizontal Gray Projection H jMiddle two maximum value, the higher limit of corresponding car plate and lower limit, vertically the Gray Projection V of existing jMiddle two maximum value, the left limit value of corresponding car plate and the right limit value of existing.
Description of drawings
The present invention will be further described below in conjunction with the drawings and specific embodiments.
Fig. 1 is the constructional device synoptic diagram that two cameras of the present invention are installed;
Fig. 2 is the process flow diagram of the vehicle distance measurement method based on binocular vision provided by the invention;
Fig. 3 is the process flow diagram that the outer parameter of the camera in the camera unit is carried out dynamic adjusting method provided by the invention;
Fig. 4 is the segment rectangle region method process flow diagram of contour of the vehicle profile of the front vehicles of acquisition provided by the invention;
Fig. 5 is the method flow diagram of the centre of form of rectangle in segment rectangle zone of the contour of the vehicle profile of the described front vehicles of calculating provided by the invention;
Fig. 6 is the process flow diagram of point methods at arbitrary angle of the rectangular area of the described front vehicles car plate of extraction provided by the invention profile.
Embodiment
As shown in Figure 1, two cameras are installed in the vehicle windscreen back, adjust the disposing way of two cameras, make two cameras that the public visual field be arranged, and the public visual field can comprise the most information on the road ahead.
The high precision that stereoscopic vision is measured depends on two prerequisites, the one, and the front truck measurement point is correct, and the 2nd, the camera calibration parameter is correct.
Because vehicle is as a kind of artificial rigid body, its afterbody image has following feature:
(1) vehicle edge is compared than the natural scene in the road, and it is obvious to have an edge, continuously, and the characteristics of direction near vertical or level;
(2) the contour of the vehicle profile is observed from behind, is roughly to meet rectangle;
(3) there are bigger difference in vehicle back texture and road texture;
(4) there is shade in the vehicle bottom, has tangible gray feature, is generally place the darkest in the road.
So can be according to the feature of vehicle afterbody image, determine the measurement point of front truck according to different situations, as shown in Figure 2, a kind of vehicle distance measurement method based on binocular vision, adopt the self-adaptation front vehicles distance survey system of stereoscopic vision to obtain the required parameter of measurement, the self-adaptation front vehicles distance survey system of described stereoscopic vision comprises the camera unit that is used to take information on the road ahead, and described camera unit comprises the first camera C1 and the second camera C2; The described first camera C1 and the second camera C2 are installed in the vehicle windscreen back, choose the world coordinate system of the coordinate system of arbitrary camera in the described camera unit as whole measuring process, the photocentre of this camera is as the initial point of described world coordinate system, be designated as 0, demarcate in the described camera unit position relation between the camera, (the present invention demarcates the high precision camera calibration algorithm based on plane template (" A Flexible New Technique for Camera Calibration " that the position relation between the camera utilizes Zhang Zhengyou to propose, PatternAnalysis and Machine Intelligence, IEEE Transactions on, 2000,11 (22): 1330-1334)), obtain this car place track area size and lane line information, (zone, track and lane line acquisition algorithm (Zhu Wennan that the present invention utilizes following this piece article to propose; Chen Qiang; Wang Hong " lane detection in some complex conditions ", Intelligent Robots and Systems, 2006IEEE/RSJ International Conference on, 2006,117-122), the area of the rectangular area that described car place track area size obtaining and lane line information are constituted is designated as S1;
Step 1: survey and the segment rectangle zone of the contour of the vehicle profile of checking front vehicles, the segment rectangle region area of the contour of the vehicle profile of the front vehicles that obtains is designated as S2;
The segment rectangle region method step of the contour of the vehicle profile of the front vehicles that obtains is as follows:
1) on the standard road surface, can think in the zone, track of above-mentioned acquisition, the grey scale change of road in image is mild between we and the front vehicles, but in road surface and vehicle intersection, owing to there is shade, therefore form the edge of gradation of image from bright to dark, think that this edge is exactly the lower limb of vehicle.In this car road ahead, according to the profile of horizon scan line front vehicles, obtain the image of the profile of described front vehicles, calculate every capable average gray RowAvr (r) in the described image, be shown below:
RowAvr ( r ) = 1 Right ( r ) - Left ( r ) Σ c = Left ( r ) Right ( r ) I ( r , c ) , In the following formula, zone r capable rightmost coordinate in track in Right (r) presentation video; Zone r capable Far Left coordinate in track in Left (r) presentation video; (r c) is (r, gray scale c) in the image to I; The capable average gray of r in RowAvr (r) the expression zone, track changes the lower limb of maximum r as front vehicles with RowAvr (r) and RowAvr (r-1), is designated as LowerPos;
2) in the zone, track, carry out the edge image that Suo Beier (SOBEL) edge extracting algorithm obtains front vehicles in the zone, track, [LowerPos-Tr at edge image, LowerPos] row in, judge leftmost edge point position and rightmost edge point position, and, be designated as LeftPos and RightPos respectively with its left hand edge and right hand edge of thinking front vehicles; Wherein Tr gets 2 ~ 6, and LeftPos and RightPos represent the Far Left and the rightmost of vehicle region respectively;
3) length breadth ratio of supposing the vehicle rectangle is Ta, then according to step 2) as can be known the broadside in the segment rectangle zone of contour of the vehicle profile be RightPos-LeftPos, the long limit that then obtains the rectangular area is (RightPos-LeftPos) * Ta, and the Ta value is generally at 0.5-1.0; Greater than 1 situation, the vehicle rectangular area that obtain this moment just truly comprises the part of the rectangle of vehicle for length breadth ratios such as lorries, does not still influence follow-up result.
Step 2: the segment rectangle region area S2 of the contour of the vehicle profile of the rectangular area area S1 that described car place track area size will obtaining and lane line information constitute and the described front vehicles of acquisition compares, if S1/S2<=threshold value T, execution in step 3, if S1/S2>threshold value T, execution in step 4, threshold value T=2;
Step 3: calculate the centre of form of rectangle in segment rectangle zone of the contour of the vehicle profile of described front vehicles, be designated as P1, execution in step 5;
Calculate the centre of form of rectangle in segment rectangle zone of the contour of the vehicle profile of described front vehicles, method is as follows:
Step 31: extract segment rectangle region S 2 interior all marginal point Pi of the contour of the vehicle profile of described front vehicles, and put into the edge sequence;
Step 32: the mean value of the coordinate of described edge sequence Pi as centre of form coordinate, is designated as P1, with P1 as measurement point.
Step 4: extract the point at arbitrary angle of the rectangular area of described front vehicles car plate profile, be designated as P2;
The method of point at arbitrary angle of extracting the rectangular area of described front vehicles car plate profile is:
Step 41: in the rectangular area of described front vehicles car plate, utilize the Suo Beier boundary operator to extract edge image;
Step 42: the described edge image that extracts is carried out binary conversion treatment according to image segmentation algorithm; (image segmentation algorithm is referring to Kong Ming, Sun Xiping, Wang Yongji, " a kind of improved thresholding method based on inter-class variance ", Central China University of Science and Technology's journal, 2007,7];
Step 43: the described edge image that will extract carries out Gray Projection, obtains the right limit value d of higher limit a, the lower limit b of car plate, left limit value c;
Step 44: obtain representing the upper left of license plate area rectangle according to higher limit a, the lower limit b of the described car plate that obtains, left limit value c and right limit value d, the lower-left, the upper right and bottom right coordinate of four angle points in image be (c, a), (c, b), (d, a) with (d, b);
Step 45: the point of location on arbitrary angle is designated as P2 in described license plate area, with P2 as measurement point.Because license plate area is thought the rectangular area, any angle point (intersection point) of therefore getting the rectangular area can.But must be noted that corner location must be unified for the image of taking for left and right sides camera,, then also must select upper left angle point at right figure license plate area if promptly select upper left angle point at left figure license plate area.
Step 5: the three-dimensional coordinate P that recovers described P1 or P2;
Step 6: calculate the distance between the OP, the distance before and after obtaining between two cars.
In the process of calculating front-and-rear vehicle distance, can dynamically adjust the outer parameter of the camera in the described camera unit simultaneously, method is as follows:
Step 11: calculate the three-dimensional coordinate of putting on two lane lines in track, described front vehicles place, be designated as Pi; According to (Zhu Wennan; Chen Qiang; Wang Hong " lane detection in some complexconditions ", Intelligent Robots and Systems, 2006 IEEE/RSJ InternationalConference on, 2006,117-122) algorithm obtains the front vehicles place and gets the near linear equation that the track gets two lane lines, be labeled as L1 and L2 respectively, (Stereo Matching Algorithm and three-dimensional reconstruction algorithm see Ma Songde for details to utilize the Stereo Matching Algorithm of straight line and the three-dimensional reconstruction algorithm of point, Zhang Zhengyou. computer vision---the theory of computation and algorithm basis [C]. Beijing: Science Press, 1997), obtain the three-dimensional coordinate that two lane line L1 and L2 go up point, the unified Pi that is designated as; For the binocular camera of having demarcated, if obtained the corresponding point in the image of the left and right sides, can utilize the three-dimensional reconstruction algorithm to recover the three-dimensional coordinate of corresponding point, specific algorithm is referring to Ma Songde, Zhang Zhengyou. computer vision---the theory of computation and algorithm basis [C]. Beijing: Science Press, 1997
Step 12: according to the three-dimensional coordinate Pi match space plane V that puts on described two lane lines; The method of match space plane is as follows: establish three-dimensional point P iCoordinate is (X i, Y i, Z i), plane equation is AX+BY+CZ+1=0, and then the purpose of match is obtained the plane equation parameter A exactly, and B and C are with three-dimensional point P iAmong the coordinate substitution AX+BY+CZ+1=0, be constructed as follows system of equations:
x 1 y 1 z 1 1 x 2 y 2 z 2 1 · · · · · · · · · · · · x n y n z n 1 A B C 1 = 0
Adopt singular value decomposition method to find the solution system of equations as implied above, can obtain the plane equation of space plane V;
Step 13: the three-dimensional coordinate Pi that puts on described two lane lines to described space plane V projection, is obtained the planar coordinate Qi of three-dimensional coordinate Pi on space plane V;
Step 14: described planar coordinate Qi is carried out fitting a straight line, obtain two straight line vector a and b; The method of fitting a straight line is as follows: the coordinate of establishing two-dimensional points Qi is (x i, y i), total m point, the place straight line is y=a 0+ a 1X then utilizes the least square method formula can obtain the parameter a of straight-line equation 0And a 1:
m Σ x i Σ x i Σ x i 2 a 0 a 1 = Σ y i Σ x i y i ;
Step 15: judge whether described straight line vector a is parallel with b,, then demarcate in the described camera unit position relation between the camera again, obtain new camera calibration parameter if not parallel; If the outer parameter of not parallel expression camera this moment changes, again take the target image this moment, the high precision camera calibration algorithm based on plane template (" A Flexible New Technique for CameraCalibration " that utilizes Zhang Zhengyou to propose, Pattern Analysis and Machine Intelligence, IEEE Transactions on, 2000,11 (22): 1330-1334) again camera is demarcated.
When step 1 is carried out, follow the tracks of front vehicles in conjunction with Kalman filtering algorithm.Kalman filtering algorithm is existing method, and list of references is: Zhao Li, Chen Quanlin, " based on the realization of the vehicle detection and the tracker of Kalman wave filter ", electronic measurement technique, 2007,30 (2): 165-168.
The Camera extrinsic number comprises rotation matrix R and translation matrix T.
Whether parallel employing is listed as civilian Burger-Ma Kuaerte algorithm (Levenberg-Marquardt) with vectorial b to vectorial a;
The described edge image that will extract described in the step 43 carries out Gray Projection, comprise the described edge image that extracts is carried out horizontal Gray Projection and vertical Gray Projection simultaneously, and horizontal Gray Projection figure sought two maximal values from top to bottom, as the higher limit and the lower limit of described front truck car plate; Vertical Gray Projection figure is sought two maximal values from top to bottom, as the left limit value and the right limit value of described front truck vehicle license plate.
Described projecting method is: the described edge image that will obtain is for being designated as I, I (x, y) the presentation video mid point (x, the gray-scale value of y) locating, horizontal Gray Projection promptly, fixedly the y coordinate carries out gray scale and adds up, formula is as follows:
H j = Σ i = 0 width I ( x i , y j ) , Wherein width presentation video width, fixedly y jCoordinate;
In like manner, vertically Gray Projection promptly, fixedly the x coordinate carries out gray scale and adds up, formula is as follows:
V j = Σ i = 0 height I ( x j , y i ) , Wherein height presentation video height, fixedly x jCoordinate; For license plate area, horizontal Gray Projection H jMiddle two maximum value, the higher limit of corresponding car plate and lower limit, vertically the Gray Projection V of existing jMiddle two maximum value, the left limit value of corresponding car plate and the right limit value of existing.

Claims (10)

1, a kind of vehicle distance measurement method based on binocular vision, it is characterized in that: adopt the self-adaptation front vehicles distance survey system of stereoscopic vision to obtain the required parameter of measurement, the self-adaptation front vehicles distance survey system of described stereoscopic vision comprises the camera unit that is used to take information on the road ahead, and described camera unit comprises the first camera C1 and the second camera C2; The described first camera C1 and the second camera C2 are installed in the vehicle windscreen back, choose the world coordinate system of the coordinate system of arbitrary camera in the described camera unit as whole measuring process, the photocentre of this camera is as the initial point of described world coordinate system, be designated as 0, demarcate in the described camera unit position relation between the camera, obtain this car place track area size and lane line information, the area of the rectangular area that described car place track area size obtaining and lane line information are constituted is designated as S1;
Step 1: survey and the segment rectangle zone of the contour of the vehicle profile of checking front vehicles, the area in the segment rectangle zone of the contour of the vehicle profile of the front vehicles that obtains is designated as S2;
Step 2: the segment rectangle region area S2 of the contour of the vehicle profile of the area S1 of the rectangular area that described car place track area size will obtaining and lane line information constitute and the described front vehicles of acquisition compares, if S1/S2<=threshold value T, execution in step 3, if S1/S2>threshold value T, execution in step 4, threshold value T=2;
Step 3: calculate the centre of form of rectangle in segment rectangle zone of the contour of the vehicle profile of described front vehicles, be designated as P1, execution in step 5;
Step 4: extract the point at arbitrary angle of the rectangular area of described front vehicles car plate profile, be designated as P2;
Step 5: the three-dimensional coordinate P that recovers described P1 or P2;
Step 6: calculate the distance between the OP, the distance before and after obtaining between two cars.
2, the vehicle distance measurement method based on binocular vision as claimed in claim 1 is characterized in that, in the process of calculating front-and-rear vehicle distance, can dynamically adjust the outer parameter of the camera in the described camera unit simultaneously, and method is as follows:
Step 11: calculate the three-dimensional coordinate of putting on two lane lines in track, described front vehicles place, be designated as Pi;
Step 12: according to the three-dimensional coordinate Pi match space plane V that puts on described two lane lines; The method of match space plane is as follows: establish three-dimensional point P iCoordinate is (X i, Y i, Z i), plane equation is AX+BY+CZ+1=0, and then the purpose of match is obtained the plane equation parameter A exactly, and B and C are with three-dimensional point P iAmong the coordinate substitution AX+BY+CZ+1=0, be constructed as follows system of equations:
x 1 y 1 z 1 1 x 2 y 2 z 2 1 . . . . . . . . . . . . x n y n z n 1 A B C 1 = 0
Find the solution system of equations as implied above, can obtain the plane equation of space plane V;
Step 13: the three-dimensional coordinate Pi that puts on described two lane lines to described space plane V projection, is obtained the planar coordinate Qi of three-dimensional coordinate Pi on space plane V;
Step 14: described planar coordinate Qi is carried out fitting a straight line, obtain two straight line vector a and b; The method of fitting a straight line is as follows: the coordinate of establishing two-dimensional points Qi is (x i, y i), total m point, the place straight line is y=a 0+ a 1X then utilizes the least square method formula can obtain the parameter a of straight-line equation 0And a 1:
m Σx i Σx i Σx i 2 a 0 a 1 = Σy i Σx i y i ;
Step 15: if described straight line vector a and b are not parallel, then demarcate in the described camera unit position relation between the camera again, obtain new camera calibration parameter.
3, the vehicle distance measurement method based on binocular vision as claimed in claim 1 is characterized in that, in the described step 1, the segment rectangle region method step of the contour of the vehicle profile of the front vehicles of acquisition is as follows:
1) in this car road ahead, according to the profile of horizon scan line front vehicles, obtain the image of the profile of described front vehicles, calculate every capable average gray RowAvr (r) in the described image, be shown below:
RowAvr ( r ) = 1 Right ( r ) - Left ( r ) Σ c = Left ( r ) Right ( r ) I ( r , c ) , In the following formula, zone r capable rightmost coordinate in track in Right (r) presentation video; Zone r capable Far Left coordinate in track in Left (r) presentation video; (r c) is (r, gray scale c) in the image to I; The capable average gray of r in RowAvr (r) the expression zone, track changes the lower limb of maximum r as front vehicles with RowAvr (r) and RowAvr (r-1), is designated as LowerPos;
2) in the zone, track, carry out the edge image that Suo Beier (SOBEL) edge extracting algorithm obtains front vehicles in the zone, track, [LowerPos-Tr at edge image, LowerPos] row in, judge leftmost edge point position and rightmost edge point position, and, be designated as LeftPos and RightPos respectively with its left hand edge and right hand edge of thinking front vehicles; Wherein Tr gets 2 ~ 6, and LeftPos and RightPos represent the Far Left and the rightmost of vehicle region respectively;
3) length breadth ratio of supposing the vehicle rectangle is Ta, then according to step 2) as can be known the broadside in the segment rectangle zone of contour of the vehicle profile be RightPos-LeftPos, the long limit that then obtains the rectangular area is (RightPos-LeftPos) * Ta, and the Ta value is generally at 0.5-1.0.
4, the vehicle distance measurement method based on binocular vision as claimed in claim 1 is characterized in that, in the described step 3, comprises the steps:
Step 31: extract segment rectangle region S 2 interior all marginal point Pi of the contour of the vehicle profile of described front vehicles, and put into the edge sequence;
Step 32: the mean value of the coordinate of described edge sequence Pi as centre of form coordinate, is designated as P1, with P1 as measurement point.
5, the vehicle distance measurement method based on binocular vision as claimed in claim 1 is characterized in that, in the described step 4, comprises the steps:
Step 41: in the rectangular area of described front vehicles car plate, utilize the Suo Beier boundary operator to extract edge image;
Step 42: the described edge image that extracts is carried out binary conversion treatment according to image segmentation algorithm;
Step 43: the described edge image that will extract carries out Gray Projection, obtains the right limit value d of higher limit a, the lower limit b of car plate, left limit value c;
Step 44: according to higher limit a, the lower limit b of the described car plate that obtains, left limit value c and right limit value d, obtain representing the upper left of license plate area rectangle, the lower-left, the upper right and bottom right coordinate of four angle points in image be (c, a), (c, b), (d, a) with (d, b);
Step 45: the point of location on arbitrary angle in described license plate area, be designated as P2, with P2 as measurement point.
6, the vehicle distance measurement method based on binocular vision as claimed in claim 1 is characterized in that, when step 1 is carried out, follows the tracks of front vehicles in conjunction with Kalman filtering algorithm.
7, the vehicle distance measurement method based on binocular vision as claimed in claim 2 is characterized in that, described Camera extrinsic number comprises rotation matrix R and translation matrix T.
8, the vehicle distance measurement method based on binocular vision as claimed in claim 2 is characterized in that, in the step 15, whether parallel employing is listed as civilian Burger-Ma Kuaerte algorithm (Levenberg-Marquardt) with vectorial b to vectorial a.
9, the vehicle distance measurement method based on binocular vision as claimed in claim 5, it is characterized in that, the described edge image that will extract described in the described step 43 carries out Gray Projection, comprise the described edge image that extracts is carried out horizontal Gray Projection and vertical Gray Projection simultaneously, and horizontal Gray Projection figure sought two maximal values from top to bottom, as the higher limit and the lower limit of described front truck car plate; Vertical Gray Projection figure is sought two maximal values from top to bottom, as the left limit value and the right limit value of described front truck vehicle license plate.
10, the vehicle distance measurement method based on binocular vision as claimed in claim 9, it is characterized in that, described projecting method is: the described edge image that will obtain is for being designated as I, I (x, y) (horizontal Gray Projection promptly for x, the gray-scale value of y) locating for the presentation video mid point, fixedly the y coordinate carries out gray scale and adds up, and formula is as follows:
H j = Σ i = 0 width I ( x i , y j ) , Wherein width presentation video width, fixedly y jCoordinate;
In like manner, vertically Gray Projection promptly, fixedly the x coordinate carries out gray scale and adds up, formula is as follows:
V j = Σ i = 0 height I ( x j , y i ) , Wherein height presentation video height, fixedly x jCoordinate; For license plate area, horizontal Gray Projection H jMiddle two maximum value, the higher limit of corresponding car plate and lower limit, vertically the Gray Projection V of existing jMiddle two maximum value, the left limit value of corresponding car plate and the right limit value of existing.
CNA2007100251669A 2007-07-13 2007-07-13 Vehicle distance measuring 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 measuring 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 measuring 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 measuring method based on binocular vision

Country Status (1)

Country Link
CN (1) CN101294801A (en)

Cited By (29)

* 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
CN108108680A (en) * 2017-12-13 2018-06-01 长安大学 A kind of front vehicle identification and distance measuring method based on binocular vision
CN108108667A (en) * 2017-12-01 2018-06-01 大连理工大学 A kind of front vehicles fast ranging method based on narrow baseline 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 华南理工大学 Monocular distance measurement method under 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

Cited By (44)

* 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
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
CN105783936B (en) * 2016-03-08 2019-09-24 武汉中海庭数据技术有限公司 For the road markings drawing and vehicle positioning method and system in automatic Pilot
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
CN107643049B (en) * 2017-09-26 2023-06-20 沈阳理工大学 System and method for detecting vehicle position on wagon balance based on monocular structured light
CN107728175A (en) * 2017-09-26 2018-02-23 南京航空航天大学 The automatic driving vehicle navigation and positioning accuracy antidote merged based on GNSS and VO
CN107643049A (en) * 2017-09-26 2018-01-30 沈阳理工大学 Vehicle position detection system and method on weighbridge based on monocular structure 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
CN108645375A (en) * 2018-06-05 2018-10-12 浙江零跑科技有限公司 One kind being used for vehicle-mounted biocular systems rapid vehicle distance measurement optimization method
CN108645375B (en) * 2018-06-05 2020-11-17 浙江零跑科技有限公司 Rapid vehicle distance measurement optimization method for vehicle-mounted binocular system
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 华南理工大学 Monocular distance measurement method under 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 吉林大学 Vehicle outer contour size detection method 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

Similar Documents

Publication Publication Date Title
CN101294801A (en) Vehicle distance measuring method based on binocular vision
CN103559791B (en) A kind of vehicle checking method merging radar and ccd video camera signal
US20200041284A1 (en) Map road marking and road quality collecting apparatus and method based on adas system
CN106256606B (en) A kind of lane departure warning method based on vehicle-mounted binocular camera
CN102435174B (en) Method and device for detecting barrier based on hybrid binocular vision
CN101839721B (en) Visual navigation method in autonomous rendezvous and docking
CN101549683B (en) Vehicle intelligent method for automatically identifying road pit or obstruction
CN102288121B (en) Method for measuring and pre-warning lane departure distance based on monocular vision
CN102944224B (en) Work method for automatic environmental perception systemfor remotely piloted vehicle
CN107392103A (en) The detection method and device of road surface lane line, electronic equipment
CN109359409A (en) A kind of vehicle passability detection system of view-based access control model and laser radar sensor
CN102298779B (en) Image registering method for panoramic assisted parking system
CN109472831A (en) Obstacle recognition range-measurement system and method towards road roller work progress
CN103630122B (en) Monocular vision lane line detection method and distance measurement method thereof
CN104700414A (en) Rapid distance-measuring method for pedestrian on road ahead on the basis of on-board binocular camera
CN103196418A (en) Measuring method of vehicle distance at curves
CN105574552A (en) Vehicle ranging and collision early warning method based on monocular vision
CN105225482A (en) Based on vehicle detecting system and the method for binocular stereo vision
Debattisti et al. Automated extrinsic laser and camera inter-calibration using triangular targets
CN104573646A (en) Detection method and system, based on laser radar and binocular camera, for pedestrian in front of vehicle
CN105157609A (en) Two-sets-of-camera-based global morphology measurement method of large parts
CN103413313A (en) Binocular vision navigation system and method based on power robot
CN107463890A (en) A kind of Foregut fermenters and tracking based on monocular forward sight camera
CN110126824A (en) A kind of commercial vehicle AEBS system of integrated binocular camera and millimetre-wave radar
CN103487034A (en) Method for measuring distance and height by vehicle-mounted monocular camera based on vertical type target

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