CN104299240B - Camera calibration method and system for lane shift early warning - Google Patents

Camera calibration method and system for lane shift early warning Download PDF

Info

Publication number
CN104299240B
CN104299240B CN201410576789.5A CN201410576789A CN104299240B CN 104299240 B CN104299240 B CN 104299240B CN 201410576789 A CN201410576789 A CN 201410576789A CN 104299240 B CN104299240 B CN 104299240B
Authority
CN
China
Prior art keywords
scaling board
circle
uncalibrated image
camera
demarcating
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
CN201410576789.5A
Other languages
Chinese (zh)
Other versions
CN104299240A (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.)
Shanghai Velcro Automotive Electronics Co., Ltd
Original Assignee
Huizhou Desay SV Automotive Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN201410576789.5A priority Critical patent/CN104299240B/en
Publication of CN104299240A publication Critical patent/CN104299240A/en
Application granted granted Critical
Publication of CN104299240B publication Critical patent/CN104299240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Abstract

The invention discloses a kind of camera calibration method and system for lane shift early warning, the described method comprises the following steps:The scaling board for including demarcation pattern is positioned over to the first position of vehicle front so that the axis of the scaling board is conllinear with vehicle axis, carries out shooting to the scaling board by camera to be calibrated and obtains the first uncalibrated image;The scaling board is moved to the second place of vehicle front so that the axis of the scaling board is conllinear with vehicle axis, carries out shooting to the scaling board by camera to be calibrated and obtains the second uncalibrated image;The coordinate value of the demarcation pattern acceptance of the bid fixed point is calculated according to first uncalibrated image and the second uncalibrated image, the camera to be calibrated is demarcated according to the coordinate value of the calibration point.The present invention reduces the parameter of the operand of image procossing and manual measurement early stage, simplifies place and the step of demarcation, shortens the nominal time, so as to improve the precision of camera calibration and operating efficiency, is adapted to the large-scale pipeline production operation of depot.

Description

Camera calibration method and system for lane shift early warning
Technical field
The present invention relates to the technical field of lane shift early warning, more particularly to a kind of camera for lane shift early warning Scaling method and system.
Background technology
Lane shift early warning system(Lane Departure Warning System, LDW)It is that one kind is caught by camera The pavement behavior of vehicle front is obtained, the relation detected between the Lane Mark on road surface and vehicle traveling vector is to judge vehicle No to offset phenomenon, so as to remind driver to correct the active safe driving system of direction of traffic when an offset occurs, the system exists Need to demarcate the systematic parameter of camera and lane shift early warning system before use.By establishing the boundary that two-dimensionally emerges Relation between coordinate system and two-dimensional screen coordinates system, is mainly to solve for the perspective transformation matrix of Two coordinate system, so that it is determined that taking the photograph As head parameter;Lane shift early warning system parameter include detection picture scope, alarm line position, CAN protocol, warning sensitivity, Alarm sound size etc..
At present, the camera calibration method of existing lane shift early warning system mainly has two kinds:
A kind of such as Patent No. CN103220548A " test site and its building method of demarcation of being parked for panorama " is specially Profit, it is as follows to camera calibration method:Demarcation pattern and tag line are finished on the ground in regulation place first, or interim Plastic cloth or advertising cloth are laid on the ground in place, then captures a width by camera to include the demarcation picture of the demarcation pattern, Camera parameter is calculated finally by angle point is found on the demarcation picture as the coordinate of calibration point.However, the camera There is the ground limitation such as Land leveling, the space for demarcating place in scaling method, easily cause the error of stated accuracy, and calculates and take the photograph Picture head parametric technique is cumbersome, has influence on nominal time and efficiency.
It is another as Patent No. CN102681533A is " a kind of to be used to demarcating LDW system, upgrade and detection is set It is standby " patent, the equipment includes a core processing unit, a video input unit, a communication unit and an alarm unit;Institute Stating core processing unit includes a demarcating module, a upgraded module and a detection module, and the communication unit includes a CAN communication Unit and a usb communication unit, when being demarcated to LDW system, the video image of intake is passed through video input by camera Unit is sent to core processing unit, the demarcating module of the core processing unit according to the video image collected to camera outside Portion's parameter is demarcated, and calibration result is sent into LDW system by CAN communication unit.
However, there is following deficiency in the above-mentioned camera parameter calibration method to LDW system:
(1)The scaling method needs the parameter of hand dipping more, including the setting height(from bottom) of camera, the transverse direction of camera Error be present in the distance and camera of installation site, camera and wheel and the distance of headstock, the hand dipping of each parameter, The error of multiple parameters accumulation is just bigger, therefore precision is not high and time cost is high;
(2)The scaling method manually operated complicated is, it is necessary to which a scaling board is positioned over before headstock at 2 meters, by man-machine Interactive unit movement shows the cursor on LCD display interface, the central point of camera is moved to the reference center of scaling board The contour position of point, so as to can just calculate the angle of pitch, the anglec of rotation and the deviation angle of camera, not only efficiency is low, is unfavorable for car Pipelining during factory's large-scale production, goes back time cost and system cost is all higher.
(3)Scaling board there is no device ensure plate body completely keep with ground into 90 degree, due to manufacture technique and for a long time Using there is a certain degree of deformation, this can cause scaling board completely vertical with ground, so as to influence camera parameter Calibration accuracy;
(4)The axis of scaling board must be conllinear with vehicle body axis, and scaling board is simply substantially placed on car by this method Front, it is impossible to ensure the coplanar of two planes, can also influence the calibration accuracy of camera parameter.
The content of the invention
The present invention proposes a kind of camera calibration method and system for lane shift early warning, when it can shorten demarcation Between, improve the precision and operating efficiency of camera calibration.
For achieving the above object, the present invention provides a kind of camera calibration method for lane shift early warning, institute The method of stating comprises the following steps:
The scaling board for including demarcation pattern is positioned over to the first position of vehicle front so that the scaling board
Axis is conllinear with vehicle body axis, carries out shooting to the scaling board by camera to be calibrated and obtains first Uncalibrated image;
The scaling board is moved to the second place in front of headstock so that the axis of the scaling board and vehicle body axis Collinearly, shooting is carried out to the scaling board by camera to be calibrated and obtains the second uncalibrated image;
The coordinate of the demarcation pattern acceptance of the bid fixed point is calculated according to first uncalibrated image and the second uncalibrated image Value, is demarcated according to the coordinate value of the calibration point to the camera to be calibrated.
Further, it is described so that the demarcation in the above-mentioned camera calibration method for lane shift early warning The axis of the plate step conllinear with vehicle body axis specifically includes:
Adjust the scaling board so that the scaling board is provided with the one side of demarcation pattern perpendicular to ground and the scaling board Towards vehicle;
Adjust the horizontal level of the scaling board so that the axis of the scaling board is conllinear with vehicle axis.
Further, it is described so that the demarcation in the above-mentioned camera calibration method for lane shift early warning Plate specifically includes perpendicular to the step of ground:
One air-bubble level is installed in the side of the scaling board;
Rotate the scaling board so that the center position of bubble in the air-bubble level.
Further, it is described so that the demarcation in the above-mentioned camera calibration method for lane shift early warning Plate specifically includes perpendicular to the step of ground:
One sash weight of installation and iron ring, the sash weight are located at the surface of the iron ring in the middle part of the back side of the scaling board, And the vertical line of the sash weight passes through the iron ring;
Rotate the scaling board so that the vertical line of the sash weight is placed exactly in the center of circle of the iron ring.
Further, in the above-mentioned camera calibration method for lane shift early warning, the adjustment demarcation The horizontal level of plate so that the axis of the scaling board step conllinear with vehicle axis specifically includes:
Demarcation personnel on vehicle axis are simple eye to look squarely camera to be calibrated;
Adjust the horizontal level of the scaling board and demarcate the height of personnel's eyes so that the center of the scaling board is with being somebody's turn to do Camera and eyes are conllinear.
Further, in the above-mentioned camera calibration method for lane shift early warning, the first position and car The distance between headstock is less than the distance between the second place and vehicle headstock.
Further, in the above-mentioned camera calibration method for lane shift early warning, the demarcation pattern includes Located at scaling board center center demarcating circle and be symmetrically set in center demarcation
Circle upper and lower the first demarcating circle group, the second demarcating circle group, the first demarcating circle group, the second demarcating circle group by Set along scaling board length direction and some demarcating circles of equi-spaced apart form.
Further, it is described according to described first in the above-mentioned camera calibration method for lane shift early warning The demarcation pattern acceptance of the bid fixed point is calculated in uncalibrated image and the second uncalibrated image
Coordinate value the step of specifically include:
Identify the circle of the demarcation pattern respectively according to first uncalibrated image and the second uncalibrated image, calculate To the central coordinate of circle of the center demarcating circle and each demarcating circle of the first uncalibrated image and the second uncalibrated image.
Further, it is described to be calculated first in the above-mentioned camera calibration method for lane shift early warning The step of central coordinate of circle of the center demarcating circle and each demarcating circle of uncalibrated image and the second uncalibrated image, specifically includes:
Take the demarcation at the demarcating circle at the first demarcating circle group both ends and the second demarcating circle group center in first uncalibrated image The round center of circle is as calibration point;
Take the demarcation at the demarcating circle at the second demarcating circle group both ends and the first demarcating circle group center in second uncalibrated image The round center of circle is as calibration point;
Calculate the coordinate value of above-mentioned calibration point.
In addition, the present invention also provides a kind of camera calibration system for lane shift early warning, it includes:
One includes the scaling board of demarcation pattern;
Mobile control unit, for moving the scaling board in the position of vehicle front, and cause in the scaling board Axis is conllinear with vehicle axis;
Image acquisition units, for by camera before the scaling board moves and it is mobile after respectively to the scaling board Shot, obtain the first uncalibrated image and the second uncalibrated image;And
Processing unit is demarcated, for the calibration maps to be calculated according to first uncalibrated image and the second uncalibrated image The coordinate value of calibration point in case, and the camera to be calibrated is demarcated according to the coordinate value of the calibration point.
The position that the present invention is used for the camera calibration method of lane shift early warning and system passes through a mobile scaling board Obtain two groups of calibration points, reduce the operand of image procossing and the parameter of manual measurement early stage, simplify demarcation place and Step, the nominal time is shortened, so as to improve the precision of camera calibration and operating efficiency.
Brief description of the drawings
Fig. 1 is the idiographic flow schematic diagram for the camera calibration method that the present invention is used for lane shift early warning;
Fig. 2 is the principle schematic of preferred embodiment shown in Fig. 1;
Fig. 3 is the air-bubble level structural representation in preferred embodiment shown in Fig. 1;
Fig. 4 is the sash weight and iron ring structural representation in preferred embodiment shown in Fig. 1;
Fig. 5 is the pattern schematic diagram of scaling board in preferred embodiment shown in Fig. 1;
Fig. 6 is the schematic diagram of prewarning area in preferred embodiment shown in Fig. 1;
Fig. 7 is another schematic diagram of prewarning area in preferred embodiment shown in Fig. 1;
Fig. 8 is the structural representation for the camera calibration system that the present invention is used for lane shift early warning.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The invention provides a kind of camera calibration method for lane shift early warning, comprise the following steps:
The scaling board for including demarcation pattern is positioned over to the first position of vehicle front so that the axis of the scaling board Line is conllinear with vehicle axis, carries out shooting to the scaling board by camera to be calibrated and obtains the first uncalibrated image;Move The scaling board is moved to the second place of vehicle front so that the axis of the scaling board is conllinear with vehicle axis, passes through Camera to be calibrated carries out shooting to the scaling board and obtains the second uncalibrated image;According to first uncalibrated image and second The coordinate value of the demarcation pattern acceptance of the bid fixed point is calculated in uncalibrated image, waits to mark to described according to the coordinate value of the calibration point Fixed camera is demarcated.So, by two groups of calibration points of position acquisition of a mobile scaling board, image procossing is reduced Operand and manual measurement early stage parameter, simplify place and the step of demarcation, shorten the nominal time, so as to improve The precision and operating efficiency of camera calibration.
Referring to Fig. 1, Fig. 1 is the idiographic flow signal for the camera calibration method that the present invention is used for lane shift early warning Figure;It the described method comprises the following steps:
Step S11:There is provided one and camera to be calibrated is installed(It is not shown)The parallel orbit 200 of vehicle 100 and two, institute State two parallel orbits 200 and be symmetricly set in the both sides of vehicle 100;
Also referring to Fig. 1 and Fig. 2, in specific implementation, the camera to be calibrated is mountable to the car of vehicle 100 Head, that is, belong to the preceding viewing system of lane shift early warning, certainly, the camera to be calibrated is also mountable to the side of vehicle 100 Face, that is, belong to the side view system of lane shift early warning.In the present embodiment, the camera to be calibrated is installed on vehicle 100 Headstock.
For the ease of the subsequently shooting to scaling board and image procossing, it is necessary to by two parallel orbit 200 along the car 100 axis 300 is symmetrical arranged, that is, causes hanging down for the inner side of two parallel orbit 200 and four wheels of vehicle 100 Straight distance is equal.
Step S12:One scaling board 400 for including demarcation pattern is provided, the scaling board 400 is installed on vehicle front Two parallel orbits 200 on first position;
Also referring to Fig. 1 to Fig. 3, in specific implementation, at least one side of scaling board 400 is provided with demarcation pattern, will The scaling board 400 is installed on first position on two parallel orbits 200 of vehicle front, that is, causes two parallel orbit 200 Axis on the scaling board 400 is symmetrical.
It should be noted that before the scaling board 400 is installed, it is also necessary to measure visual in front of camera to be calibrated Nearest ground from headstock with a distance from, its specific measuring method is:
One end of straight line body is attached on the windshield of camera position to be calibrated, along the axis of vehicle 100 Draw forward in the direction of line 300 so that the other end ground proximity of the straight line body, the stage casing of the straight line body are attached to vehicle 100 Headstock, and the straight line body keeps tightening straight, the distance by measuring the straight line body both ends can obtain in front of camera Visual nearest ground from headstock with a distance from.
Step S13:Adjust the scaling board 400 so that the scaling board 400 is perpendicular to ground and the scaling board 400 Provided with demarcation pattern one facing to vehicle 100;Adjust the horizontal level of the scaling board 400 so that the scaling board 400 Axis is conllinear with vehicle axis 300;
In specific implementation, because there are regulation and the plate face of horizontal level in the both sides of the plate face of the scaling board 400 respectively The angular adjustment of front and rear rotation, therefore, the scaling board 400 front and rear can be rotated to adjust the plate face of the scaling board 400 and ground The angle in face, so that the scaling board 400 is provided with the one of demarcation pattern facing to vehicle perpendicular to ground and the scaling board 400 100, which reduces the error that the deviation because of calibration point under real-world coordinates on three dimensions is brought.
Refer to Fig. 3 and Fig. 4, in order to ensure the scaling board 400 is perpendicular to ground, two methods can be used, i.e., it is described So that the scaling board 400 specifically includes perpendicular to the step of ground:
One air-bubble level 500 is installed in the side of the scaling board 400;
Rotate the scaling board 400 so that the center position of bubble in the air-bubble level 500.
It is or described so that the scaling board 400 specifically includes perpendicular to the step of ground:
One sash weight 600 of installation and iron ring 700, the sash weight 600 are located at the iron in the middle part of the back side of the scaling board 400 The surface of circle 700, and the vertical line of the sash weight 600 passes through the iron ring 700;
Rotate the scaling board 400 so that the vertical line of the sash weight 600 is placed exactly in the center of circle of the iron ring 700.
Ensureing the scaling board 400 behind ground, it is necessary to adjust the horizontal level of the scaling board 400, so that The axis for obtaining the scaling board 400 is conllinear with vehicle axis 300.Method of principal axes is taken aim to realize using axis in the present embodiment It is conllinear with vehicle axis 300 to state the axis of scaling board 400, i.e., the described axis for causing the scaling board 400 and vehicle The conllinear step in axis 300 specifically includes:
Demarcation personnel on vehicle axis 300 are simple eye to look squarely camera to be calibrated;
Adjust the horizontal level of the scaling board 400 and demarcate the vertical height of personnel's eyes so that the scaling board 400 Center it is conllinear with the camera and eyes.
Or the vehicle is placed on to the centre position of a pair of guide rails, the distance that two wheels arrive track respectively is equal, institute State the guide rail centre position that scaling board is arranged on vehicle front.
The above method ensure that the axis of the scaling board 400 is conllinear with vehicle axis 300, that is, in the vehicle Vertical center line where axis 300 through the barycenter of the scaling board 400, eliminate the barycenter and car of measurement scaling board 400 This systematic parameter of the vertical range of axis 300, so as to improve the precision of measurement.
Step S14:Shooting is carried out to the scaling board 400 by camera to be calibrated and obtains the first uncalibrated image;
In specific implementation, before calibration mode is entered, first need to load vehicle shift early warning system demarcation configuration ginseng Number(Including camera calibration configuration parameter), start the camera and initialized, the camera can be before collection vehicle Fang Lukuang videos, the scaling board 400 can be shot by the camera, because the scaling board 400 is provided with demarcation Therefore the one of pattern, can obtain the first uncalibrated image for including demarcation pattern, and preserve to system facing to vehicle 100 In depositing.
Step S15:The scaling board 400 is moved to the second place on two parallel orbits 200 of vehicle front so that institute The axis for stating scaling board 400 is conllinear with vehicle axis 300;
In specific implementation, in the present embodiment, two parallel orbit 200 is connected with motor 800, and the motor 800 can Two parallel orbits 200 are driven to be moved along its own orbital direction, so as to by the in front of the mobile vehicle of scaling board 400 Two positions, i.e., it is specific the step of the second place on the described movement scaling board 400 to two parallel orbits 200 of vehicle front Including:
Drive two parallel orbit 200 to be moved along its own orbital direction by motor 800, drive the scaling board 400 are moved to the second place of vehicle front.
In above-mentioned moving process, keep constant due to the height of the scaling board 400 and with ground angle, therefore, When the scaling board 400 is moved to the second place, without adjust scaling board 400 horizontal level and with ground angle, you can protect The axis for demonstrate,proving the scaling board 400 is conllinear with vehicle axis 300.
It is of course also possible to the scaling board 400 is moved to the second place of vehicle front by manual method, but after movement The operation to the repeat step S13 of scaling board 400 is needed, make it that the axis of the scaling board 400 is common with vehicle axis 300 Line.
It should be noted that the distance of the first position and the second place apart from vehicle 100 is not limited in the present invention, i.e., The scaling board 400 can be that relative vehicle 100 from the close-by examples to those far off moves or relative vehicle 100 draws near Ground moves.
In the present embodiment, the relative vehicle 100 of scaling board 400 from the close-by examples to those far off moves, the first position with The distance between vehicle headstock l1Less than the distance between the second place and vehicle headstock l2, i.e., described first position distance Vehicle headstock is nearer, and the second place apart from vehicle headstock farther out.Specifically, the first position is apart from vehicle headstock l1 Scope be 0 ~ 10 meter, the second place is apart from the first position l2Scope be 0.5 ~ 10 meter.
Step S16:Shooting is carried out to the scaling board 400 by camera to be calibrated and obtains the second uncalibrated image;
In specific implementation, the scaling board 400 is shot by the camera, due to the scaling board 400 Provided with demarcation pattern one facing to vehicle 100, therefore, the second uncalibrated image for including demarcation pattern can be obtained, and preserve Into Installed System Memory.
Step S17:It is fixed that the demarcation pattern acceptance of the bid is calculated according to first uncalibrated image and the second uncalibrated image The coordinate value of point;
Referring to Fig. 5, in specific implementation, the demarcation pattern on the scaling board can be multiple regular figures, such as Circle, cross, square etc..Included in the present embodiment using circle, the demarcation pattern located at the center at scaling board center Demarcating circle(As shown in Fig. 3 black circles)And it is symmetrically set in the first demarcating circle group of the center demarcating circle upper and lower, second Demarcating circle group, if the first demarcating circle group, the second demarcating circle group along scaling board length direction by setting and equi-spaced apart Dry demarcating circle composition.
In the present embodiment, the first demarcating circle group, the second demarcating circle group set and waited by along scaling board length direction Five demarcating circles composition away from interval, five demarcating circles of the first demarcating circle group are with 1,2,3,4,5 signs, second mark Five demarcating circles of fixed circle group are with 6,7,8,9,10 signs;The radius all same of the center demarcating circle and ten demarcating circles.
, it is necessary to be marked to first uncalibrated image and second after first uncalibrated image and the second uncalibrated image is obtained Determine image to be handled, the coordinate value of demarcation pattern acceptance of the bid fixed point is obtained with identification demarcation pattern and calculating.For example, this implementation In example, it can use using the method for image procossing, pattern-recognition to improve the accuracy of detection identification, such as be filtered first using Gauss Ripple smooth picture, adaptive binary conversion treatment removes ambient interferences, then carries out edge enhancing using Canny algorithms, then uses Improvement type Hough loop truss algorithm carries out detection circle and its central coordinate of circle, then extracts demarcating circle using neighborhood processing cluster Group, then further determine that the center of circle of demarcating circle group is sat using the peak value in histogram analysis circular image and trinder operators The precision of sub-pixel is marked, to efficiently identify in the demarcation pattern for detecting first uncalibrated image and the second uncalibrated image Demarcating circle and central coordinate of circle.
The step S17 is specifically included:
Identify the circle of the demarcation pattern respectively according to first uncalibrated image and the second uncalibrated image, calculate To the central coordinate of circle of the center demarcating circle and each demarcating circle of the first uncalibrated image and the second uncalibrated image.
In the step S17 method can be taken to choose the mark in the first uncalibrated image and the second uncalibrated image using intersecting The center of circle of fixed circle group calculates required calibration point as camera parameter calibration.It is i.e. described that the first uncalibrated image and is calculated The step of central coordinate of circle of the center demarcating circles of two uncalibrated images and each demarcating circle, specifically includes:
Take the demarcation at the demarcating circle at the first demarcating circle group both ends and the second demarcating circle group center in first uncalibrated image The round center of circle is as calibration point(1,5,8 demarcating circle is denoted as in Fig. 3, forms lower triangle);
Take the demarcation at the demarcating circle at the second demarcating circle group both ends and the first demarcating circle group center in second uncalibrated image The round center of circle is as calibration point(3,6,10 demarcating circle is denoted as in Fig. 3, forms upward triangle);
Calculate the coordinate value of above-mentioned calibration point.
So, above-mentioned intersection takes a method can be before limited caliberating device plane space and limited calibration point quantity Put, as much as possible include more picture pixels in the identification range of demarcation, different directions take point range to increase twice Add the mutual distance of calibration point, so as to effectively control detection error, increase the reliability of system.
It should be noted that the present invention can also determine area-of-interest in image using automatic ROI localization methods(ROI, Region Of Interest), the area-of-interest refers in image procossing(Compression of images, rotation, conversion etc.), it is right Some specific regions(Determined according to specific rule or method)Abbreviation, exactly extracted in the image for wanting pending will The region of processing.For example, having greenery and flower in a width picture, greenery are done with special processing(Rotation etc.), and these Greenery are known as ROI.
Also referring to Fig. 6 and Fig. 7, the area-of-interest for determining camera(That is prewarning area)The step of I, is specific Including:
According to the central coordinate of circle by the center demarcating circle and demarcating circle of first uncalibrated image and the second uncalibrated image The center of circle carry out line;
The point intersected using the line is vanishing point, using the horizontal line where the vanishing point ordinate as vanishing point line, according to described Vanishing point line determines the coboundary of the area-of-interest of the first uncalibrated image and the second uncalibrated image, especially, identified top Boundary, can be in specific design as needed, on the basis of the vanishing point line of foregoing calculatings determination, in upper and lower certain distance Region determines coboundary;First calibration maps are determined from the horizontal line where with a distance from headstock with visual ground recently in front of camera The lower boundary of the area-of-interest of picture and the second uncalibrated image, so that it is determined that the sense of the first uncalibrated image and the second uncalibrated image is emerging Interesting region, effectively to obtain the detection zone of lane shift early warning system within area-of-interest.
For example, setting in the first uncalibrated image two demarcation central coordinate of circle and being respectivelyWith, the second mark Determining two demarcation central coordinate of circle of this in image is respectivelyWith,Line be, Line be, thenLinear equation can be described as
Intersection point be, i.e. vanishing point.
The area-of-interest of two groups of calibration points is so first determined according to the first uncalibrated image and the second uncalibrated image, thus Reduce the operand of the image procossing of lane shift early warning system, improve the real-time performance of system.
Step S18:Perspective transformation matrix under each coordinate system is calculated according to the coordinate value of the calibration point, treated described in acquisition The parameter of the camera of demarcation, to be demarcated to the camera to be calibrated.
In specific implementation, i.e., described step S18 is specifically included:
Carry out solving linear camera perspective using the Abdal-Aziz and Karara direct linear transformation's methods proposed Transformation matrix, the matrix are oneRank matrix, representation space object point and the direct corresponding relation of two-dimentional picture point.It is if true World coordinates, camera image coordinate, perspective transformation matrix is, Then the relation between them is
, then it is decomposed into
In order that matrix is fixed, constraint, obtain
By n()The space coordinates of individual calibration point and corresponding image coordinate substitute into above formula, then can obtain 2n line Property equation group, the form for being expressed as matrix are
Then
Above formula is solved to produce perspective transformation matrix
Further, because lane shift early warning system generally gives tacit consent to the lane line on detection ground, therefore detect often only BeWhen ground XOY plane, soPerspective transformation matrixIt can deteriorate toThe ground world Perspective transformation matrix of the coordinate system to image coordinate system, derivation is
Similarly, according to above-mentioned direct linear transformation's method, can obtainImage coordinate system to ground world coordinates The perspective transformation matrix of system, so as to establish the pass mapped one by one of ground world coordinate system and camera image coordinate system System, the determination for the prewarning area of lane shift early warning system provide theoretical foundation.
Further, the specific steps that the prewarning area that lane shift early warning system is given determines include:
Prewarning area under camera image coordinate system can be as most left where the ordinate of area-of-interest lower boundary Alarm point and most right alarm point, vanishing point form delta-shaped region to determine, i.e., lane line is then alarmed within delta-shaped region(Such as Shown in Fig. 6).
The abscissa of most left alarm point is carried out according to coordinate points of the alarming line in ground world coordinate system by perspective transform Calculate.For example, set the intersection point of left alarming line and area-of-interest lower boundary as, under corresponding image coordinate system Intersection point be, whereinDetermined by the actual range of alarming line(As shown in Figure 7),For the sense The ordinate of the lower boundary of interest.
According toThe coordinate value of the most left alarm point under camera image coordinate is calculated.Similarly The coordinate value of most right alarm point can be calculated.
In addition, referring to Fig. 8, the invention provides a kind of camera calibration system for lane shift early warning, it includes: One includes scaling board 10, mobile control unit 20, image acquisition units 30 and the demarcation processing unit 40 of demarcation pattern, described Mobile control unit 20 is used to move the scaling board 10 in the position of vehicle front, and causes the axis of the scaling board 10 It is conllinear with vehicle axis;Described image collecting unit 30 by camera before scaling board movement and after movement for being divided It is other that the scaling board is shot, obtain the first uncalibrated image and the second uncalibrated image;The demarcation processing unit 40 is used for The coordinate value of the demarcation pattern acceptance of the bid fixed point, Yi Jigen are calculated according to first uncalibrated image and the second uncalibrated image The camera to be calibrated is demarcated according to the coordinate value of the calibration point.
Compared to prior art, the present invention is used for the camera calibration method of lane shift early warning and system passes through movement one Two groups of calibration points of position acquisition of secondary scaling board, reduce the operand of image procossing and the parameter of manual measurement early stage, simplify The place of demarcation and step, shorten the nominal time, so as to improve the precision of camera calibration and operating efficiency.
Here description of the invention and application are illustrative, are not wishing to limit the scope of the invention to above-described embodiment In.The deformation and change of embodiments disclosed herein are possible, real for those skilled in the art The replacement and equivalent various parts for applying example are known.It should be appreciated by the person skilled in the art that the present invention is not being departed from Spirit or essential characteristics in the case of, the present invention can in other forms, structure, arrangement, ratio, and with other components, Material and part are realized.In the case where not departing from scope and spirit of the present invention, embodiments disclosed herein can be entered The other deformations of row and change.

Claims (7)

1. a kind of camera calibration method for lane shift early warning, it is characterised in that the described method comprises the following steps:
The scaling board for including demarcation pattern is positioned over the first position of vehicle front so that the axis of the scaling board with Vehicle body axis is conllinear, carries out shooting to the scaling board by camera to be calibrated and obtains the first uncalibrated image;
The scaling board is moved to the second place in front of headstock so that the axis of the scaling board is total to vehicle body axis Line, shooting is carried out to the scaling board by camera to be calibrated and obtains the second uncalibrated image;
The coordinate value of the demarcation pattern acceptance of the bid fixed point, root are calculated according to first uncalibrated image and the second uncalibrated image The camera to be calibrated is demarcated according to the coordinate value of the calibration point;It is described cause the scaling board axis with The conllinear step in vehicle body axis specifically includes:
Adjust the scaling board so that the scaling board perpendicular to ground and the scaling board be provided with the one of demarcation pattern facing to Vehicle;
Adjust the horizontal level of the scaling board so that the axis of the scaling board is conllinear with vehicle axis;
The demarcation pattern includes being located at the center demarcating circle at scaling board center and is symmetrically set in above and below the center demarcating circle The first demarcating circle group, the second demarcating circle group of side, the first demarcating circle group, the second demarcating circle group are by along scaling board length side Formed to some demarcating circles of setting and equi-spaced apart;It is described to be calculated according to first uncalibrated image and the second uncalibrated image The step of getting the bid the coordinate value of fixed point to the demarcation pattern specifically includes:According to first uncalibrated image and the second calibration maps Circle as identifying the demarcation pattern respectively, the center demarcating circle of the first uncalibrated image and the second uncalibrated image is calculated And the central coordinate of circle of each demarcating circle;
Determine the prewarning area of camera according to central coordinate of circle, include the step of described determination prewarning area:According to the circle The center of circle of the center demarcating circle and demarcating circle of first uncalibrated image and the second uncalibrated image is carried out line by heart coordinate;With institute It is vanishing point to state the intersecting point of line, and using the horizontal line where the vanishing point ordinate as vanishing point line, the is determined according to the vanishing point line The coboundary of the prewarning area of one uncalibrated image and the second uncalibrated image, with visual ground recently in front of camera from headstock away from From place horizontal line determine the first uncalibrated image and the second uncalibrated image prewarning area lower boundary.
2. the camera calibration method according to claim 1 for lane shift early warning, it is characterised in that it is described so that The scaling board specifically includes perpendicular to the step of ground:
One air-bubble level is installed in the side of the scaling board;
Rotate the scaling board so that the center position of bubble in the air-bubble level.
3. the camera calibration method according to claim 1 for lane shift early warning, it is characterised in that it is described so that The scaling board specifically includes perpendicular to the step of ground:
One sash weight of installation and iron ring, the sash weight are located at the surface of the iron ring, and institute in the middle part of the back side of the scaling board The vertical line for stating sash weight passes through the iron ring;
Rotate the scaling board so that the vertical line of the sash weight is placed exactly in the center of circle of the iron ring.
4. the camera calibration method according to claim 1 for lane shift early warning, it is characterised in that the adjustment The horizontal level of the scaling board so that the axis of the scaling board step conllinear with vehicle axis specifically includes:
Demarcation personnel on vehicle axis are simple eye to look squarely camera to be calibrated;
Adjust the horizontal level of the scaling board and demarcate the height of personnel's eyes so that the center of the scaling board and the shooting Head and eyes are conllinear.
5. the camera calibration method for lane shift early warning according to claim any one of 1-4, it is characterised in that The distance between the first position and vehicle headstock are less than the distance between the second place and vehicle headstock.
6. the camera calibration method according to claim 1 for lane shift early warning, it is characterised in that the calculating Obtain the first uncalibrated image and the second uncalibrated image center demarcating circle and each demarcating circle central coordinate of circle the step of specifically wrap Include:
Take the demarcating circle at the first demarcating circle group both ends and the demarcating circle at the second demarcating circle group center in first uncalibrated image The center of circle is as calibration point;
Take the demarcating circle at the second demarcating circle group both ends and the demarcating circle at the first demarcating circle group center in second uncalibrated image The center of circle is as calibration point;
Calculate the coordinate value of above-mentioned calibration point.
7. a kind of camera calibration system for lane shift early warning, it includes:
One includes the scaling board of demarcation pattern;The demarcation pattern is included located at the center demarcating circle at scaling board center and right Claim the first demarcating circle group, the second demarcating circle group located at the center demarcating circle upper and lower, the first demarcating circle group, the second mark Surely round group forms by some demarcating circles along the setting of scaling board length direction and equi-spaced apart;
Mobile control unit, for moving the scaling board in the position of vehicle front, and cause the axis of the scaling board It is conllinear with vehicle axis;
Image acquisition units, for being carried out respectively to the scaling board before the scaling board moves and after movement by camera Shooting, obtain the first uncalibrated image and the second uncalibrated image;And
Processing unit is demarcated, for being calculated according to first uncalibrated image and the second uncalibrated image in the demarcation pattern The coordinate value of calibration point, and camera to be calibrated is demarcated according to the coordinate value of the calibration point;
The coordinate that the demarcation pattern acceptance of the bid fixed point is calculated according to first uncalibrated image and the second uncalibrated image Value specifically includes:Identify the circle of the demarcation pattern, meter respectively according to first uncalibrated image and the second uncalibrated image Calculate the central coordinate of circle of the center demarcating circle and each demarcating circle that obtain the first uncalibrated image and the second uncalibrated image;
The prewarning area of camera is determined according to central coordinate of circle, described determination prewarning area includes:According to the central coordinate of circle The center of circle of the center demarcating circle and demarcating circle of first uncalibrated image and the second uncalibrated image is subjected to line;With the line Intersecting point is vanishing point, and using the horizontal line where the vanishing point ordinate as vanishing point line, the first demarcation is determined according to the vanishing point line The coboundary of the prewarning area of image and the second uncalibrated image, with visual ground recently in front of camera from place with a distance from headstock Horizontal line determine the first uncalibrated image and the second uncalibrated image prewarning area lower boundary.
CN201410576789.5A 2014-10-24 2014-10-24 Camera calibration method and system for lane shift early warning Active CN104299240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410576789.5A CN104299240B (en) 2014-10-24 2014-10-24 Camera calibration method and system for lane shift early warning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410576789.5A CN104299240B (en) 2014-10-24 2014-10-24 Camera calibration method and system for lane shift early warning

Publications (2)

Publication Number Publication Date
CN104299240A CN104299240A (en) 2015-01-21
CN104299240B true CN104299240B (en) 2018-04-03

Family

ID=52318962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410576789.5A Active CN104299240B (en) 2014-10-24 2014-10-24 Camera calibration method and system for lane shift early warning

Country Status (1)

Country Link
CN (1) CN104299240B (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3125196B1 (en) * 2015-07-29 2018-02-21 Continental Automotive GmbH Drive-by calibration from static targets
CN105205472B (en) * 2015-10-15 2019-01-08 浙江捷尚视觉科技股份有限公司 A kind of bayonet vehicle search method based on camera perspective transform
CN105539311B (en) * 2016-01-29 2017-12-05 深圳市美好幸福生活安全系统有限公司 The installation method and erecting device of a kind of camera
CN105809143B (en) * 2016-03-25 2018-12-04 北京环境特性研究所 The neat wire examination method of vehicle mark based on image recognition cross drone
CN106296703A (en) * 2016-08-16 2017-01-04 上海商泰汽车信息系统有限公司 Scaling board, camera calibration method and device
CN106780622B (en) * 2016-12-05 2020-06-02 常州智行科技有限公司 Camera calibration method for automobile front collision early warning and lane departure early warning
CN106940893A (en) * 2017-03-09 2017-07-11 昆山鹰之眼软件技术有限公司 Automate scaling board and automation scaling method
CN108692949B (en) * 2017-04-10 2021-03-02 深圳市航盛电子股份有限公司 Simple lane deviation real vehicle testing device and verification testing method
CN109584305A (en) * 2017-09-29 2019-04-05 宝沃汽车(中国)有限公司 Panorama system scaling method, device and vehicle
CN107883939A (en) * 2017-10-30 2018-04-06 惠州市德赛西威汽车电子股份有限公司 The static boost line test device of one kind reversing and its method
CN109974745B (en) * 2017-12-28 2023-11-17 中国科学院沈阳自动化研究所 Comprehensive calibration detection table for vehicle-mounted camera
CN108235777B (en) * 2017-12-29 2021-07-30 深圳市锐明技术股份有限公司 Calibration method and device of ADAS camera, storage medium and terminal equipment
CN108235776B (en) * 2017-12-29 2021-09-17 深圳市锐明技术股份有限公司 Calibration method and device of ADAS camera, storage medium and terminal equipment
CN108133497B (en) * 2018-01-12 2023-11-07 力帆实业(集团)股份有限公司 Calibration field and calibration method of 360-degree panoramic system
CN109358338B (en) * 2018-11-23 2020-09-29 北京经纬恒润科技有限公司 Vehicle calibration method and system
CN109544647A (en) * 2018-11-30 2019-03-29 郑州天迈科技股份有限公司 Calibration cloth, place and method for 360 ° of panoramic parking assist systems
CN110363819B (en) * 2019-06-25 2023-03-03 华为技术有限公司 Method for calibrating image acquisition equipment in intelligent automobile and related equipment
CN110599471B (en) * 2019-09-02 2023-05-19 唐山市气象局 Rain gauge horizontal monitoring system based on image processing and detection method thereof
CN113458156B (en) * 2020-03-31 2022-08-16 宝山钢铁股份有限公司 Calibration method of on-line monitoring device for position of hot rolling finish rolling strip steel
US11263755B2 (en) * 2020-07-17 2022-03-01 Nanya Technology Corporation Alert device and alert method thereof
CN112215900B (en) * 2020-09-27 2023-03-24 武汉高德智感科技有限公司 Calibration board and external reference calibration method and system for vehicle-mounted infrared camera
CN112215214A (en) * 2020-12-11 2021-01-12 智道网联科技(北京)有限公司 Method and system for adjusting camera offset of intelligent vehicle-mounted terminal
CN114115021A (en) * 2021-11-19 2022-03-01 安徽省爱夫卡电子科技有限公司 Camera calibration system of automobile ADAS system
CN116329768B (en) * 2023-05-22 2023-08-01 广东麦特维逊医学研究发展有限公司 Calibration method of laser marking system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102556066A (en) * 2012-03-07 2012-07-11 长安大学 Lane departure warning device for passenger vehicle and judgment method thereof
CN102681533A (en) * 2012-05-15 2012-09-19 北京智华驭新汽车电子技术开发有限公司 Equipment for calibrating, upgrading and detecting LDW (Lane Departure Warning) system
CN103985131A (en) * 2014-05-28 2014-08-13 大连理工大学 Camera fast-calibration method for highway lane departure warning system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9459515B2 (en) * 2008-12-05 2016-10-04 Mobileye Vision Technologies Ltd. Adjustable camera mount for a vehicle windshield

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102556066A (en) * 2012-03-07 2012-07-11 长安大学 Lane departure warning device for passenger vehicle and judgment method thereof
CN102681533A (en) * 2012-05-15 2012-09-19 北京智华驭新汽车电子技术开发有限公司 Equipment for calibrating, upgrading and detecting LDW (Lane Departure Warning) system
CN103985131A (en) * 2014-05-28 2014-08-13 大连理工大学 Camera fast-calibration method for highway lane departure warning system

Also Published As

Publication number Publication date
CN104299240A (en) 2015-01-21

Similar Documents

Publication Publication Date Title
CN104299240B (en) Camera calibration method and system for lane shift early warning
WO2021004548A1 (en) Vehicle speed intelligent measurement method based on binocular stereo vision system
WO2021004312A1 (en) Intelligent vehicle trajectory measurement method based on binocular stereo vision system
CN102467821B (en) Road distance detection method based on video image and apparatus thereof
CN107341453B (en) Lane line extraction method and device
CN104729485B (en) A kind of vision positioning method based on vehicle-mounted panoramic image Yu streetscape map match
CN101727671B (en) Single camera calibration method based on road surface collinear three points and parallel line thereof
CN103473762B (en) A kind of method for detecting lane lines and device
CN102609938B (en) Method for detecting vanishing points of road based on single image
US20150371096A1 (en) Hazard detection from a camera in a scene with moving shadows
Li et al. Easy calibration of a blind-spot-free fisheye camera system using a scene of a parking space
CN106408611A (en) Drive-by calibration from static targets
CN104575003B (en) A kind of vehicle speed detection method based on traffic surveillance videos
CN110307791B (en) Vehicle length and speed calculation method based on three-dimensional vehicle boundary frame
CN103411553A (en) Fast calibration method of multiple line structured light visual sensor
CN103204104B (en) Monitored control system and method are driven in a kind of full visual angle of vehicle
CN102252859B (en) Road train straight-line running transverse stability automatic identification system
CN110008893A (en) A kind of automobile driving running deviation automatic testing method based on vehicle-mounted imaging sensor
CN107284455B (en) A kind of ADAS system based on image procossing
CN106503636A (en) A kind of road sighting distance detection method of view-based access control model image and device
CN109685855A (en) A kind of camera calibration optimization method under road cloud monitor supervision platform
CN111572633B (en) Steering angle detection method, device and system
CN108021849B (en) Pedestrian early warning method and device
CN106570906A (en) Rectangular pattern-based method for detecting distances under camera angle deflection condition
CN104330048A (en) Image-based railway snow depth measurement device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 516006 Guangdong province Huizhou City Zhongkai high tech Zone and five West Road No. 103

Applicant after: HUIZHOU DESAY SV AUTOMOTIVE CO., LTD.

Address before: 516006 Guangdong province Huizhou City Zhongkai high tech Zone and five West Road No. 103

Applicant before: Huizhou Desay SV Auto. Electronics Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20191210

Address after: 201801 room 620, No. 6, Lane 599, Yungu Road, Jiading District, Shanghai j512

Patentee after: Shanghai Velcro Automotive Electronics Co., Ltd

Address before: 516006 Guangdong province Huizhou City Zhongkai high tech Zone and five West Road No. 103

Patentee before: HUIZHOU DESAY SV AUTOMOTIVE CO., LTD.

TR01 Transfer of patent right