CN102661733B - Front vehicle ranging method based on monocular vision - Google Patents

Front vehicle ranging method based on monocular vision Download PDF

Info

Publication number
CN102661733B
CN102661733B CN201210167496.2A CN201210167496A CN102661733B CN 102661733 B CN102661733 B CN 102661733B CN 201210167496 A CN201210167496 A CN 201210167496A CN 102661733 B CN102661733 B CN 102661733B
Authority
CN
China
Prior art keywords
camera
theta
distance
vehicle
ordinate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210167496.2A
Other languages
Chinese (zh)
Other versions
CN102661733A (en
Inventor
肖志涛
耿磊
张芳
吴骏
方胜宇
王悦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin Polytechnic University
Original Assignee
Tianjin Polytechnic 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 Tianjin Polytechnic University filed Critical Tianjin Polytechnic University
Priority to CN201210167496.2A priority Critical patent/CN102661733B/en
Publication of CN102661733A publication Critical patent/CN102661733A/en
Application granted granted Critical
Publication of CN102661733B publication Critical patent/CN102661733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention belongs to the technical field of intelligent transportation and relates to a front vehicle ranging method based on monocular vision. The method includes: adjusting the posture of a vehicular camera, considering the pitch angle variation range due to bumping to adjust the pitch angle of the camera, and using the obtained actual measurement data to segmentally fit the functional relation between an ordinate and an actual longitudinal distance at different pitch angles and the functional relation between the ordinate and an actual transverse distance represented by per horizontal pixel at different pitch angles; and when a vehicle runs, calibrating real-time pitch angle of the camera according to left and right lane lines detected in real time and a three-line calibration method, and then using the linear interpolation method to calculate to obtain the distance between the vehicle and a target vehicle. The front vehicle ranging method based on monocular vision has a real-time dynamic compensation effect on ranging error caused by vehicle bumping and can be used for accurately calculating the distance between the vehicle and the front vehicle.

Description

A kind of front vehicles distance-finding method based on monocular vision
Technical field
The present invention relates to a kind of method that can accurately calculate the distance of this car and front vehicles under high speed or expressway condition, the method has real-time dynamic compensation effect to the vehicle range error causing of jolting, belong to image and process and field of machine vision, can be applicable to the intelligent vehicle safety DAS (Driver Assistant System) in intelligent transportation field.
Background technology
Along with the development of world economy, Global Auto quantity is increased sharply, and the incidence of traffic accident also significantly increases thereupon, and people's lives and properties and the national economy of traffic hazard to every country has all caused huge loss.The main cause that highway, through street accident rate rise is mileage in highway open to traffic rapid growth, and vehicle flowrate increases causes spacing excessively near, and driver tired driving easily causes rear-end collision.Therefore,, for reducing the generation of this type of traffic hazard, as one of gordian technique of intelligent automobile safety assisting system, front vehicles detects and distance measurement technique has caused the concern of many national automobile industries, research institutions and government.
Comply with the difference of adopted distance measuring sensor, vehicle ranging technology mainly can be divided into ultrasonic ranging, laser ranging, infrared distance measuring and machine vision range finding at present.Ultrasonic ranging, laser ranging and infrared distance measuring, by target object, the principle of the reflections such as ultrasound wave, laser, infrared ray is realized to measurement, these three kinds of technological system equipment complex and expensive, easily be interfered, and effective detection range is less, be mainly applicable to the occasion that car speed is lower.Machine vision range finding is analyzed by the image to camera collection, and the position of positioned vehicle in image calculates actual range through range finding model, and its equipment is simple, has a extensive future.
Machine vision metrology is mainly divided into: monocular vision is measured, binocular vision is measured, structure light vision is measured.Binocular vision difficult point is the coupling of unique point, has affected precision and the efficiency measured, and the emphasis of its theoretical research concentrates on matching of feature; Structured light is due to the restriction of light source, and the occasion of application is more fixing; And single camera vision system simple structure, with low cost, computing machine only need to be processed single image, do not need to carry out complicated images match, range measurement system with respect to other based on vision, has reduced system works amount at one time, has saved the time of a large amount of computer processing datas, the real-time of vision system improves greatly, can meet better actual needs.
Monocular vision range finding is mainly divided into the measuring method based on known motion and known object according to the principle of measuring.Measuring method based on known motion refers to utilizes the mobile message of video camera and picture that video camera obtains to record depth distance, the shortcoming of this measurement is the coupling that will carry out to a width or a few width picture unique point, matching error has obvious impact to measurement result, processing time while is long, for multiple image, must need more computing time.And measuring method based on known object refers to that the Target Photo that utilizes video camera to obtain under the condition of known object information obtains depth information.These class methods are more applicable for Navigation and localization, and its shortcoming is to utilize single unique point to measure, and easily, because of the inaccuracy of feature point extraction, produce error.
Monocular ranging technology has obtained at home to be paid attention to and deep research widely, wherein the colleges and universities such as Tsing-Hua University, Jilin University all successively start to carry out the work of this respect, as: the Guo Lei research of Tsing-Hua University utilizes road Parallel Constraint in the time calculating the video camera angle of pitch, adopt geometric relationship to push over method measuring distance (Guo Lei, Xu Youchun, Li Keqiang, Lian little Min. the real time distance method research [J] based on monocular vision. Journal of Image and Graphics .2006,11 (1): 74-81).The Wang Rongben of Jilin University professor's intelligent vehicle seminar, utilize the range finding of single-frame images range finding model realization monocular (Gu Baiyuan. the safe distance between vehicles early warning system research [D] based on monocular vision. the .2006:101-105 of Jilin University).
Projection model or geometric model were derived in current monocular range finding research mostly before this, then calculated thus distance.Therefore they exist the problem of some general character: on the one hand, substantially in all research, be all the optical model of pinhole imaging system or perspective projection, and wherein the geometric relationship of coordinate transform is all take desirable light path as prerequisite, and do not consider the light path errors such as the lens distortion existing in actual imaging, cannot meet the needs in practical application.On the other hand, mostly research method has all adopted numerous hypothesis with simplification problem, and as invariable in camera horizontal positioned, camera heights, vehicle is without jolting etc.And in actual use, jolting of occurring in Vehicle Driving Cycle process can change the angle of pitch that camera is taken, experiment showed, that vehicle range finding result is comparatively responsive to the angle of pitch, the change of the angle of pitch will cause distance accuracy to reduce to a certain extent.
Summary of the invention
The object of the invention is to overcome the above-mentioned deficiency of prior art, providing a kind of can carry out real-time dynamic compensation to the vehicle range error causing of jolting, and can accurately and fast calculate the method for this car and the distance of front vehicles.For this reason, the present invention adopts following technical scheme.
A front vehicles distance-finding method based on monocular vision, comprises the following steps:
(1) camera inner parameter is demarcated;
(2) camera is arranged on automobile, with the attitude parameter of three line calibration method static demarcating cameras, if camera attitude parameter does not meet selected mount scheme, after adjusting camera attitude, again use three line calibration method static demarcating camera parameters, until the attitude parameter of its camera meets the requirement of mount scheme;
(3) establishing the scope that causes the angle of pitch in vehicle traveling process because jolting is (θ l, θ h), adjusting the camera angle of pitch is θ l, on the longitudinal direction in camera front, apart from vehicle body certain distance, monumented point is set, at this some place, label is set, record the ordinate of this monumented point correspondence at image, and laterally measure again certain distance at this monumented point place, record the horizontal ordinate of its correspondence image;
(4), in the process of camera front longitudinal different distance place repeating step step (3), utilize the data sectional obtaining to simulate the angle of pitch for θ ltime, the funtcional relationship of ordinate and actual fore-and-aft distance is designated as VD θ L(y), ordinate and every pixel represent that the funtcional relationship of the actual lateral separation of level is designated as HD θ L(y), wherein y represents ordinate;
(5) adjusting respectively the camera angle of pitch is θ hbe about θ m=(θ l+ θ h)/2, the process of repeating step (3) and (4), then utilizes the data that obtain, and it is θ that piecewise fitting goes out the angle of pitch hbe about θ m=(θ l+ θ h)/2 o'clock, the funtcional relationship VD of ordinate and actual fore-and-aft distance θ Hand VD (y) θ M(y), the every pixel of ordinate and level represents the funtcional relationship HD of actual lateral separation θ Hand HD (y) θ M(y);
(6) establish the left and right lane line equation detecting in real time and be respectively y=k 1x+b 1and y=k 2x+b 2, the Bisector of angle equation of two straight lines is
Figure BSA00000723522600021
wherein construct three straight lines in fact parallel to each other: left and right lane line and track center line, the funtcional relationship of utilizing step (4) and (5) to obtain, in conjunction with three line calibration methods, calibrates the real-time luffing angle θ of camera real-time;
(7) according to θ real-timewith θ l, θ mand θ hrelation, utilize linear interpolation method, calculate the distance of vehicle target and this car.As preferred implementation, in step (2), the requirement that the attitude parameter of camera meets mount scheme is: make level inclination
Figure BSA00000723522600023
with direction deflection angle Ψ all within 0.002 radian;
In step (7), utilize linear interpolation method, the range formula that calculates vehicle target and this spacing is:
Dis = VD 2 + HD 2
VD = VD &theta;L ( y ) , &theta; realtime &le; &theta; L &theta; M - &theta; realtime &theta; M - &theta; L VD &theta;L ( y ) + &theta; realtime - &theta; L &theta; M - &theta; L VD &theta;M ( y ) , &theta; L < &theta; realtime &le; &theta; M &theta; H - &theta; realtime &theta; H - &theta; M VD &theta;M ( y ) + &theta; realtime - &theta; M &theta; H - &theta; M VD &theta;H ( y ) , &theta; M < &theta; realtime &le; &theta; H VD &theta;H ( y ) , &theta; realtime > &theta; H
HD = [ abs ( x - P X 2 ) ] &CenterDot; HD &theta;L ( y ) , &theta; realtime &le; &theta; L [ abs ( x - P X 2 ) ] &CenterDot; [ &theta; M - &theta; realtime &theta; M - &theta; L HD &theta;L ( y ) + &theta; realtime - &theta; L &theta; M - &theta; L HD &theta;M ( y ) ] , &theta; L < &theta; realtime &le; &theta; M [ abs ( x - P X 2 ) ] &CenterDot; [ &theta; H - &theta; realtime &theta; H - &theta; M HD &theta;M ( y ) + &theta; realtime - &theta; M &theta; H - &theta; M HD &theta;H ( y ) ] , &theta; M < &theta; realtime &le; &theta; H [ abs ( x - P X 2 ) ] &CenterDot; HD &theta;H ( y ) , &theta; realtime > &theta; H
In formula, VD represents the fore-and-aft distance of vehicle target and this car, and HD represents the lateral separation of vehicle target and this car, and Dis represents the distance of vehicle target and this car, P xthe horizontal resolution that represents collected by camera image, x and y represent respectively the transverse and longitudinal coordinate of target.
Substantive distinguishing features of the present invention is, adopt the monocular vision ranging technology based on known object, the light path errors such as the lens distortion existing in consideration actual imaging, first camera is carried out to calibration of camera, and verify the accuracy of three line calibration methods by geometric calculation and total station survey method, then utilize three line calibration method static demarcating camera attitude parameters, the angle of pitch different according to camera, adopt the method for piecewise fitting function, the funtcional relationship of matching ordinate and actual fore-and-aft distance, matching ordinate and every pixel represent the funtcional relationship of actual lateral separation.Finally, utilize the result of lane detection, again utilize the actual angle of pitch of the real-time computing camera of three line calibration methods, calculate the distance of vehicle target and this car by linear interpolation, vehicle is jolted to the angle of pitch that causes changes and the range error that causes has real-time dynamic compensation effect.The present invention has following technique effect:
1. method is simple, easy to implement.The present invention utilizes data regression modeling principle, and experiment measuring obtains necessary data, just can complete front target distance measurement, and does not need high-precision instrument and equipment, method simple practical.
2. accuracy is high.In data acquisition of the present invention, consider the light path errors such as the lens distortion that exists in actual imaging, adopted the method for piecewise fitting function, guaranteed range finding accuracy.And sampling frequency can adjust data acquisition according to actual needs time and adjust fitting precision.
3. pair vehicle jolts and causes that the angle of pitch changes the range error of bringing, and calculates target and this spacing by the real-time calibration angle of pitch and linear interpolation, makes the present invention have real-time dynamic compensation effect.
Accompanying drawing explanation
Fig. 1: distance-finding method process flow diagram of the present invention.
Fig. 2: the checking schematic diagram of three line calibration methods.
Fig. 3: camera mount scheme schematic diagram.Fig. 3-1 is vertical view, and Fig. 3-2 are side view, and Fig. 3-3 are front view.
Fig. 4: vertical and horizontal range finding fitting function figure.Fig. 4-1 is three kinds of fore-and-aft distances under the different angles of pitch and the fitting function figure of ordinate, and Fig. 4-2 are the fitting function figure that the horizontal every pixel under three kinds of different angles of pitch represents actual range and ordinate.
Fig. 5: angle of pitch real-time calibration method schematic diagram.Fig. 5-1 is the distribution plan of the interior left and right lane line of image and track center line, and Fig. 5-2 are the distribution plan of actual road surface left and right lane line and track center line.
Fig. 6: the result of finding range under different distance figure.Fig. 6-1 is the range finding figure of distance between 20 to 30 meters, Fig. 6-2 are the range finding figure of distance between 30 to 40 meters, Fig. 6-3 are the range finding figure of distance between 40 to 50 meters, Fig. 6-4 are the range finding figure of distance between 50 to 60 meters, Fig. 6-5 are the range finding figure of distance between 60 to 70 meters, Fig. 6-6 are the range finding figure of distance between 80 to 90 meters, and Fig. 6-7 are the range finding figure of distance between 110 to 120 meters, and Fig. 6-8 are the range finding figure of distance between 120 to 130 meters.
Embodiment
Process flow diagram of the present invention as shown in Figure 1, first camera is carried out to calibration of camera, and verify the accuracy of three line calibration methods by geometric calculation and total station survey method, then utilize three line calibration method static demarcating camera attitude parameters, the angle of pitch different according to camera, adopt the method for piecewise fitting function, the funtcional relationship of matching ordinate and actual fore-and-aft distance, matching ordinate and every pixel represent the funtcional relationship of actual lateral separation.Finally, utilize the result of lane detection, again utilize the actual angle of pitch of the real-time computing camera of three line calibration methods, calculate the distance of vehicle target and this car by linear interpolation.Below in conjunction with accompanying drawing, the specific implementation process of technical solution of the present invention is illustrated.
1. camera calibration of camera
Adopt Zhang Zhengyou method to demarcate camera inner parameter, obtain principal point for camera coordinate (i 0, j 0), focal length (take pixel as the unit) f of horizontal direction and vertical direction iand f j.
2. three line calibration method computing method
If three straight line l parallel to each other on ground 1, l 2, l 3, they are all parallel to vehicle axis Xv, are respectively a with the distance of Xv 1, a 2, a 3.Their common intersecting point coordinates are (i h, j h), and U h1=U h2=U h3=U h=(i h-i 0) d x, V h1=V h2=V h3=V h=(j h-j 0) d y.D x, d ybe respectively photo coordinate system and deposit horizontal, the longitudinal scale-up factor of coordinate system conversion to frame.At l1, l2, any point of getting respectively non-intersection point on l3, coordinate is (i n, j n), n=1,2,3.Three line calibration method computing method are as follows:
ψ=arctg{[(r 1-r 3)(a 1-a 2)-(r 1-r 2)(a 1-a 3)]/[(r 1-r 3)(r 1a 1-r 2a 2)-(r 1-r 2)(r 1a 1-r 3a 3)]}
θ=arctg(U h?sinψ/f id x+V h?cosψ/f jd y),
Figure BSA00000723522600041
h=(a 2-a 1)AC/(BC-AD),d=(B/A)(a 2-a 1)AC/(BC-AD)+a 1
In formula
A=r 1?sinψcosθ-cosθcosψ
C=r 2?sinψcosθ-cosθcosψ
Figure BSA00000723522600043
r n=-(f i/f j)(i h-i n)/(j h-j b),n=1,2,3
Wherein arctg represents arctan function.In result of calculation, Ψ is camera direction drift angle, for camera level inclination, θ is the camera angle of pitch, and h is camera heights, and d is the distance of camera to Xv.
3. the accuracy of checking three line calibration methods
3.1 as shown in Figure 2, and camera is fixed on tripod, and by tripod base furnishing level, a mark post is placed perpendicular to ground in front, determines A, B, C 3 points on label.Camera photocentre is aimed at respectively to front A, B, C 3 points, record three groups of angles of pitch and camera heights value, θ 1 and h1, θ 2 and h2, θ 3 and h3 with three line calibration methods.
3.2 use meter rulers are measured overhead height D1, D2 and D3 of A, B, C at 3, measure camera photocentre arrives camera horizontal range D to floor level h and A, B, 3 of C, the angle of pitch while can computing camera photocentre aiming at A, B, C at 3 by geometric calculation, obtain θ 1 '=arctg[(h-D1)/D], θ 2 '=arctg[(h-D2)/D], θ 3 '=arctg[(h-D3) and/D].
3.3 remove camera, and by the position that total powerstation is placed in camera is identical just now, the angle of pitch β 1 when recording respectively total powerstation telescope right-angled intersection point and aiming at front A, B, C at 3, β 2, β 3.
3.4 compare θ 1 and θ 1 ', θ 2 and θ 2 ', θ 3 and θ 3 ', h1, h2, h3 and h, (θ 1-θ 2), (θ 1 '-θ 2 ') and (β 1-β 2), (θ 1-θ 3), (θ 1 '-θ 3 ') and (β 1-β 3), the accuracy of checking three line calibration methods.Can satisfy the demand through experimental verification three line calibration method stated accuracies.
4. the funtcional relationship of piecewise fitting ordinate and actual fore-and-aft distance, the every pixel of piecewise fitting ordinate and level represents the funtcional relationship of actual lateral separation.
4.1 camera mount scheme schematic diagram as shown in Figure 3, Fig. 3-1 is vertical view, Fig. 3-2 are side view, Fig. 3-3 are front view, camera is arranged on after automotive interior front windshield, and direction is directed straight ahead, and level is put, camera optical axis overlaps with vehicle axis Xv in the projection on ground, makes the distance d=(d of camera to Xv 2-d 1)/2=0, level inclination
Figure BSA00000723522600051
direction deflection angle Ψ=0.Three straight lines that are parallel to each other are found or draw in camera front, and all parallel with Xv, and measure the distance of Xv and three straight lines, with three line calibration method calibration for cameras attitude parameters, adjust camera attitude, until make level inclination
Figure BSA00000723522600052
with all within 0.002 radian (within 0.12 degree) of direction deflection angle Ψ.
4.2 aim at respectively, 75 meters, front and 40 meters of when camera photocentre, and the angle of pitch under both of these case is about the scope (θ that causes the angle of pitch to change because jolting in vehicle traveling process l, θ h), aim at respectively, 50 meters, front when camera photocentre, the angle of pitch is now about θ m=(θ l+ θ h)/2.
4.3 adjust the camera angles of pitch makes photocentre aim at, 75 meters, front, and meets 4.1 mount scheme requirement, demarcates now pitching angle theta with three line calibration methods l, start along Xv from minimum sighting distance, every 5 meters, label is set one time, and record the ordinate of this correspondence image.Laterally measure certain distance with meter ruler again on edge, label place, and record the horizontal ordinate of its correspondence image.The data sectional that utilization obtains simulates the angle of pitch for θ ltime, the funtcional relationship of ordinate and actual fore-and-aft distance is designated as VD θ L(y), the every pixel of ordinate and level represents that the funtcional relationship of actual lateral separation is designated as HD θ L(y), wherein y represents ordinate.
4.4 adjust the camera angle of pitch makes photocentre aim at, 50 meters, front and 40 meters of, repeats embodiment 4.3 processes, and it is θ that piecewise fitting goes out the angle of pitch mand θ htime, the funtcional relationship VD of ordinate and actual fore-and-aft distance θ Mand VD (y) θ H(y), the every pixel of ordinate and level represents the funtcional relationship HD of actual lateral separation θ Mand HD (y) θ H(y).Fore-and-aft distance under three kinds of different angles of pitch and the fitting function of ordinate are as shown in Fig. 4-1, and the fitting function that the horizontal every pixel under three kinds of different angles of pitch represents actual range and ordinate is as shown in Fig. 4-2.
5. the real-time calibration camera angle of pitch
As shown in Figure 5, the distribution of left and right lane line and track center line in the presentation video of Fig. 5-1, Fig. 5-2 represent the distribution of actual road surface left and right lane line and track center line.If the left and right lane line equation in image detecting is in real time respectively: l left: y=k 1x+b 1and l right: y=k 2x+b 2, the Bisector of angle equation of two straight lines is
Figure BSA00000723522600053
wherein
Figure BSA00000723522600054
so just construct three straight lines parallel to each other, left and right lane line and the track center line on actual road surface.If the horizontal linear intersection point of left and right lane line and track center line and image y=0 is respectively P l, P rand P m, the horizontal ordinate of 3 is respectively
Figure BSA00000723522600055
Figure BSA00000723522600056
with the horizontal ordinate at camera position place is
Figure BSA00000723522600058
wherein P xrepresent the horizontal resolution of collected by camera image.
As shown in Figure 4, HD θ L(y), HD θ Mand HD (y) θ H(y) in the time of y=0, error is very little.So by X l, X r, X mand X ain conjunction with HD θ M(y) can calculate actual road surface straight line l left, l right, l middledistance a with vehicle axis Xv left, a rightand a middle, by itself and P l, P rand P mcoordinate bring in the formula of embodiment step 2, can calibrate real-time camera pitching angle theta real-time.
6. linear interpolation is calculated the distance of vehicle target and this car
According to θ real-timewith θ l, θ mand θ hrelation, utilize linear interpolation method, calculate the distance of target vehicle and this car, computing method are as follows:
Dis = VD 2 + HD 2
VD = VD &theta;L ( y ) , &theta; realtime &le; &theta; L &theta; M - &theta; realtime &theta; M - &theta; L VD &theta;L ( y ) + &theta; realtime - &theta; L &theta; M - &theta; L VD &theta;M ( y ) , &theta; L < &theta; realtime &le; &theta; M &theta; H - &theta; realtime &theta; H - &theta; M VD &theta;M ( y ) + &theta; realtime - &theta; M &theta; H - &theta; M VD &theta;H ( y ) , &theta; M < &theta; realtime &le; &theta; H VD &theta;H ( y ) , &theta; realtime > &theta; H
HD = [ abs ( x - P X 2 ) ] &CenterDot; HD &theta;L ( y ) , &theta; realtime &le; &theta; L [ abs ( x - P X 2 ) ] &CenterDot; [ &theta; M - &theta; realtime &theta; M - &theta; L HD &theta;L ( y ) + &theta; realtime - &theta; L &theta; M - &theta; L HD &theta;M ( y ) ] , &theta; L < &theta; realtime &le; &theta; M [ abs ( x - P X 2 ) ] &CenterDot; [ &theta; H - &theta; realtime &theta; H - &theta; M HD &theta;M ( y ) + &theta; realtime - &theta; M &theta; H - &theta; M HD &theta;H ( y ) ] , &theta; M < &theta; realtime &le; &theta; H [ abs ( x - P X 2 ) ] &CenterDot; HD &theta;H ( y ) , &theta; realtime > &theta; H
In formula, VD represents the fore-and-aft distance of vehicle target and this car, and HD represents the lateral separation of vehicle target and this car, and Dis represents the distance of vehicle target and this car, P xthe horizontal resolution that represents collected by camera image, x and y represent respectively the transverse and longitudinal coordinate of target.
Distance-finding method used in the present invention, carries out emulation to the video image that uses industrial camera collection, under different distance, finds range result as shown in Figure 6.In sum, first method of the present invention has verified the accuracy of three line calibration methods, then use three line calibration method calibration for cameras attitude parameters, by actual measurement, obtain the corresponding relation between distance sample point and picture plane, then use the method fitting function relation of piecewise fitting, set up range finding model corresponding to these mapping relations, and be equipped with the real-time dynamic compensation changing for the angle of pitch, thereby realize accurate detection and calculated the distance-finding method of distance between current driving vehicle and front vehicles.

Claims (2)

1. the front vehicles distance-finding method based on monocular vision, comprises the following steps:
(1) camera inner parameter is demarcated;
(2) camera is arranged on automobile, with the attitude parameter of three line calibration method static demarcating cameras, if camera attitude parameter does not meet selected mount scheme, after adjusting camera attitude, again use three line calibration method static demarcating camera parameters, until the attitude parameter of its camera meets the requirement of mount scheme;
(3) establishing the scope that causes the angle of pitch in vehicle traveling process because jolting is (θ l, θ h), adjusting the camera angle of pitch is θ l, on the longitudinal direction in camera front, apart from vehicle body certain distance, monumented point is set, at this some place, label is set, record the ordinate of this monumented point correspondence at image, and laterally measure again certain distance at this monumented point place, record the horizontal ordinate of its correspondence image;
(4), in the process of camera front longitudinal different distance place repeating step step (3), utilize the data sectional obtaining to simulate the angle of pitch for θ ltime, the funtcional relationship of ordinate and actual fore-and-aft distance is designated as VD θ L(y), ordinate and every pixel represent that the funtcional relationship of the actual lateral separation of level is designated as HD θ L(y), wherein y represents ordinate;
(5) adjusting respectively the camera angle of pitch is θ hbe about θ m=(θ l+ θ h)/2, the process of repeating step (3) and (4), then utilizes the data that obtain, and it is θ that piecewise fitting goes out the angle of pitch hbe about θ m=(θ l+ θ h)/2 o'clock, the funtcional relationship VD of ordinate and actual fore-and-aft distance θ Hand VD (y) θ M(y), the every pixel of ordinate and level represents the funtcional relationship HD of actual lateral separation θ Hand HD (y) θ M(y);
(6) establish the left and right lane line equation detecting in real time and be respectively y=k 1x+b 1and y=k 2x+b 2, the Bisector of angle equation of two straight lines is wherein
Figure FSB0000120095920000012
construct three straight lines in fact parallel to each other: left and right lane line and track center line, the funtcional relationship of utilizing step (4) and (5) to obtain, in conjunction with three line calibration methods, calibrates the real-time luffing angle θ of camera real-time;
(7) according to θ real-timewith θ l, θ mand θ hrelation, utilize linear interpolation method, calculate the distance of vehicle target and this car,
Computing formula is as follows:
Figure FSB0000120095920000013
Figure FSB0000120095920000014
Figure FSB0000120095920000015
In formula, VD represents the fore-and-aft distance of vehicle target and this car, and HD represents the lateral separation of vehicle target and this car, and Dis represents the distance of vehicle target and this car, P xthe horizontal resolution that represents collected by camera image, x and y represent respectively the transverse and longitudinal coordinate of target.
2. a kind of front vehicles distance-finding method based on monocular vision according to claim 1, is characterized in that, in step (2), the requirement that the attitude parameter of camera meets mount scheme is: make level inclination with direction deflection angle Ψ all within 0.002 radian.
CN201210167496.2A 2012-05-28 2012-05-28 Front vehicle ranging method based on monocular vision Active CN102661733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210167496.2A CN102661733B (en) 2012-05-28 2012-05-28 Front vehicle ranging method based on monocular vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210167496.2A CN102661733B (en) 2012-05-28 2012-05-28 Front vehicle ranging method based on monocular vision

Publications (2)

Publication Number Publication Date
CN102661733A CN102661733A (en) 2012-09-12
CN102661733B true CN102661733B (en) 2014-06-04

Family

ID=46771268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210167496.2A Active CN102661733B (en) 2012-05-28 2012-05-28 Front vehicle ranging method based on monocular vision

Country Status (1)

Country Link
CN (1) CN102661733B (en)

Families Citing this family (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106546257B (en) * 2013-04-16 2019-09-13 合肥杰发科技有限公司 Vehicle distance measurement method and device, vehicle relative velocity measurement method and device
CN103499337B (en) * 2013-09-26 2015-07-15 北京航空航天大学 Vehicle-mounted monocular camera distance and height measuring device based on vertical target
CN103630122B (en) * 2013-10-15 2015-07-15 北京航天科工世纪卫星科技有限公司 Monocular vision lane line detection method and distance measurement method thereof
CN103983239B (en) * 2014-05-21 2016-02-10 南京航空航天大学 Based on the distance-finding method of the wide line in track
CN104792302A (en) * 2015-04-29 2015-07-22 深圳市保千里电子有限公司 Modeling method for measuring car distance
CN104899554A (en) * 2015-05-07 2015-09-09 东北大学 Vehicle ranging method based on monocular vision
CN106157311A (en) * 2016-07-04 2016-11-23 南京安驾信息科技有限公司 Scaling method and the device of system is identified for vehicle ADAS
CN106503636B (en) * 2016-10-12 2019-08-20 同济大学 A kind of road sighting distance detection method and device of view-based access control model image
CN109141347A (en) 2017-06-28 2019-01-04 京东方科技集团股份有限公司 Vehicle-mounted vidicon distance measuring method and device, storage medium and electronic equipment
CN109544633B (en) * 2017-09-22 2021-08-27 华为技术有限公司 Target ranging method, device and equipment
CN107796373B (en) * 2017-10-09 2020-07-28 长安大学 Distance measurement method based on monocular vision of front vehicle driven by lane plane geometric model
CN109959919B (en) * 2017-12-22 2021-03-26 比亚迪股份有限公司 Automobile and monocular camera ranging method and device
CN108445496B (en) * 2018-01-02 2020-12-08 北京汽车集团有限公司 Ranging calibration device and method, ranging equipment and ranging method
CN110197104B (en) * 2018-02-27 2022-03-29 杭州海康威视数字技术股份有限公司 Distance measurement method and device based on vehicle
CN108596058A (en) * 2018-04-11 2018-09-28 西安电子科技大学 Running disorder object distance measuring method based on computer vision
CN110555886B (en) * 2018-05-31 2021-09-17 杭州海康威视数字技术股份有限公司 Vehicle-mounted camera external parameter calibration method and device, electronic equipment and storage medium
CN110567469B (en) 2018-06-05 2021-07-20 北京市商汤科技开发有限公司 Visual positioning method and device, electronic equipment and system
CN110595441B (en) * 2018-06-13 2021-10-12 杭州海康微影传感科技有限公司 Aiming device
CN109087361B (en) * 2018-07-19 2021-01-26 北京航空航天大学 Monocular camera-based method for calibrating transverse distance of forward object
CN109343041B (en) * 2018-09-11 2023-02-14 昆山星际舟智能科技有限公司 Monocular distance measuring method for advanced intelligent auxiliary driving
CN109166155B (en) * 2018-09-26 2021-12-17 北京图森智途科技有限公司 Method and device for calculating distance measurement error of vehicle-mounted binocular camera
CN110966982A (en) * 2018-09-28 2020-04-07 成都家有为力机器人技术有限公司 Monocular camera ranging system and method for cleaning robot
CN109764858B (en) * 2018-12-24 2021-08-06 中公高科养护科技股份有限公司 Photogrammetry method and system based on monocular camera
CN110196062B (en) * 2019-06-27 2022-03-25 成都圭目机器人有限公司 Navigation method for tracking lane line by single camera
CN110412603B (en) * 2019-07-22 2023-07-04 昆山伟宇慧创智能科技有限公司 Calibration parameter self-adaptive updating method for lane departure calculation
CN111383268A (en) * 2020-03-10 2020-07-07 上海眼控科技股份有限公司 Vehicle distance state acquisition method and device, computer equipment and storage medium
CN111830519B (en) * 2020-06-03 2023-07-07 江西江铃集团新能源汽车有限公司 Multi-sensor fusion ranging method
CN112365741B (en) * 2020-10-23 2021-09-28 淮阴工学院 Safety early warning method and system based on multilane vehicle distance detection
CN113252049B (en) * 2021-05-12 2022-06-10 中移智行网络科技有限公司 Vehicle distance determining method and device
CN113341986A (en) * 2021-06-17 2021-09-03 北京博创联动科技有限公司 Ridge identification and avoidance method and device and agricultural automatic driving equipment
CN114440821B (en) * 2022-02-08 2023-12-12 三一智矿科技有限公司 Ranging method and device based on monocular camera, medium and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1537749A (en) * 2003-10-22 2004-10-20 西安交通大学 Three-line calibration method for external parmeters of camera carried by car
CN102288121A (en) * 2011-05-12 2011-12-21 电子科技大学 Method for measuring and pre-warning lane departure distance based on monocular vision

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004062275A1 (en) * 2004-12-23 2006-07-13 Aglaia Gmbh Method and device for determining a calibration parameter of a stereo camera

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1537749A (en) * 2003-10-22 2004-10-20 西安交通大学 Three-line calibration method for external parmeters of camera carried by car
CN102288121A (en) * 2011-05-12 2011-12-21 电子科技大学 Method for measuring and pre-warning lane departure distance based on monocular vision

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
单目摄像机-激光测距传感器位姿测量系统;晁志超 等;《光学学报》;20110331;第31卷(第3期);全文 *
基于单目图像和方向的测距系统及性能分析;王荻 等;《光子学报》;20110731;第40卷(第7期);全文 *
基于单目视觉的实时测距方法研究;郭磊 等;《中国图象图形学报》;20060131;第11卷(第1期);全文 *
晁志超 等.单目摄像机-激光测距传感器位姿测量系统.《光学学报》.2011,第31卷(第3期),全文.
王荻 等.基于单目图像和方向的测距系统及性能分析.《光子学报》.2011,第40卷(第7期),全文.
郭磊 等.基于单目视觉的实时测距方法研究.《中国图象图形学报》.2006,第11卷(第1期),全文.

Also Published As

Publication number Publication date
CN102661733A (en) 2012-09-12

Similar Documents

Publication Publication Date Title
CN102661733B (en) Front vehicle ranging method based on monocular vision
CN101776438B (en) Measuring device and method of road mark
US11900619B2 (en) Intelligent vehicle trajectory measurement method based on binocular stereo vision system
CN106767853B (en) Unmanned vehicle high-precision positioning method based on multi-information fusion
US10565867B2 (en) Detection and documentation of tailgating and speeding violations
CN103115581B (en) Multifunction railway measuring system and method
US7746221B2 (en) Method for preventing lane departure for use with vehicle
CN104111058B (en) Vehicle distance measurement method and device, vehicle relative velocity measuring method and device
CN103499337B (en) Vehicle-mounted monocular camera distance and height measuring device based on vertical target
CN104504364B (en) Stop line Real time identification and distance-finding method based on space time correlation
CN103927754A (en) Calibration method of on-board camera
CN104021676A (en) Vehicle positioning and speed measuring method based on dynamic video feature of vehicle
JP2006047291A (en) Device for marking digital lane
CN103196418A (en) Measuring method of vehicle distance at curves
CN104428686A (en) Method for determining a position of a vehicle, and a vehicle
CN102012236A (en) Method for calibrating moon rover binocular vision obstacle avoidance system
CN110864696A (en) Three-dimensional high-precision map drawing method based on vehicle-mounted laser inertial navigation data
CN105136153A (en) Collection device and collection method of exact position of lane line
CN106197382B (en) A kind of vehicle-mounted single camera target dynamic distance measuring method
CN102252691B (en) Measuring method of automobile tyre correction coefficient
CN210038170U (en) Tightly-coupled automatic driving sensing system
CN114999228A (en) Anti-collision method for automatic driving vehicle in severe weather
CN205049153U (en) Sustainable navigation data collection system of vehicle under environment of photoelectric type GPS blind area
CN110286366A (en) Vehicle motion state information extraction method based on vision and radar cooperative perception
CN114397120A (en) High-precision vehicle steering tracking test method and system

Legal Events

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