CN103198481B - A kind of camera marking method - Google Patents

A kind of camera marking method Download PDF

Info

Publication number
CN103198481B
CN103198481B CN201310115539.7A CN201310115539A CN103198481B CN 103198481 B CN103198481 B CN 103198481B CN 201310115539 A CN201310115539 A CN 201310115539A CN 103198481 B CN103198481 B CN 103198481B
Authority
CN
China
Prior art keywords
point
coordinate
target
camera
polynomial
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.)
Expired - Fee Related
Application number
CN201310115539.7A
Other languages
Chinese (zh)
Other versions
CN103198481A (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 University
Original Assignee
Tianjin 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 University filed Critical Tianjin University
Priority to CN201310115539.7A priority Critical patent/CN103198481B/en
Publication of CN103198481A publication Critical patent/CN103198481A/en
Application granted granted Critical
Publication of CN103198481B publication Critical patent/CN103198481B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention discloses a kind of camera marking method and realize system, belong to image procossing and computer vision field, the method comprises the following steps: in target plane sets two unique points; Obtain the image coordinate of the unique point on target, set up unique point three dimensional space coordinate (X w, Y w, Z w) and its picture point coordinate (X f, Y f) between corresponding relation; This corresponding relation is updated in spatial mappings model; Use optimization method calculates the parameter in spatial mappings model, completes the demarcation to perspective projection straight line, thus realizes the demarcation of video camera.The present invention directly describes the mathematics polynomial relation of computer picture planar point and objective world point, can realize accurate camera calibration fast; This scaling method has directly reappeared the process of video camera imaging compared with the scaling method of prior art, avoids the constraint to geometric condition in video camera imaging process.

Description

A kind of camera marking method
Technical field
The present invention relates to image procossing and computer vision field, particularly relate to the corresponding scaling method of a kind of video camera shooting image and its object space position.
Background technology
One of basic task of computer vision process is the geological information that the image information obtained according to video camera calculates object in three dimensions, and rebuilds thus and identify corresponding three-dimensional body.The three-dimensional geometry position of body surface point and its mutual relationship of corresponding point in computer picture are determined by the geometric parameter model of video camera imaging, and geometric parameter is here exactly camera parameters.Under most conditions, camera parameters must just can obtain with calculating by experiment, this process is called as camera calibration, and the precision of scaling method directly has influence on the precision of computer vision process, therefore, the research that video camera carries out quick, simple and direct, accurate demarcation is significant undoubtedly.
Traditional camera marking method can divide into several classes according to calibrated reference and algorithm thinking, as: based on the camera marking method of 3D stereo target, the camera marking method based on 2D plane target drone and the camera marking method etc. based on radial constraint.These traditional camera marking methods need calibrated reference, the demarcation flow process of its classics is: first arrange calibration point, at calibration point place, fixed cameras is taken, and measures the computing machine of each calibration point as planimetric coordinates (u, v), then by each calibration point corresponding picture planimetric coordinates (u, v) and world coordinate system (X, Y, Z) substitute in camera model, according to scaling method, solve video camera measurement model parameter.
And, traditional camera marking method is all suppose that the imaging relations of video camera meets the space geometry relation of pinhole imaging system, but due to when some special request for utilizations, the design of camera lens does not meet national forest park in Xiaokeng, if still use traditional camera marking method, easily causes camera parameters to demarcate and there is theoretical error.
Summary of the invention
In order to overcome problems of the prior art, the present invention proposes a kind of camera marking method and realizes system, achieve video camera shooting image to demarcate with the corresponding of its object space position, but one as plane there being a lot of pixels, if with two points, each pixel represents that its calculated amount can very huge, therefore the design adopts space correspondent method, makes calibration process more simple and direct, convenient.
The present invention proposes a kind of camera marking method, it is characterized in that, the method comprises the following steps:
Step one, at several scale invariant feature SIFT feature points of target plane sets;
In step 2, acquisition target plane, the image coordinate of unique point, sets up unique point three dimensional space coordinate (X w, Y w, Z w) and picture point coordinate (X f, Y f) between corresponding relation;
Step 3, this corresponding relation is substituted into spatial mappings model, this spatial mappings model is the straight line in the corresponding space of each pixel, and this straight line is determined by two points that pixel is corresponding in selected two target planes; According to selected two target plane Z=a and Z=b, gather the target image of two target planes, obtain (X in world coordinate system w, Y w, a) with (X w, Y w, b) two points, then the coordinate of these two points is substituted into proper polynomial respectively:
X w = Σ i = 0 n Σ j = 0 n - i C i j d d i v d j Y w = Σ i = 0 n Σ j = 0 n - i D i j u d i v d j
In formula, C ijand D ijbe respectively the polynomial expression calibrating parameters of camera model when two calibration position Zw=0mm and Zw=200mm, n is polynomial exponent number; u d, v dthe coordinate figure of the computing machine pixel planes point corresponding to spatial point coordinate, by what directly obtain the measurement of demarcating target, is volume coordinate point (X w, Y w, Z w) corresponding to computing machine be (u as planar point d, v d); That i, j represent is u d, v dexponent number;
The C of each parameter in polynomial expression is calculated by LM algorithm ij, D ij, thus obtain two different polynomial expressions, utilize the coordinate of two points obtained by these two polynomial expressions, realize the demarcation of perspective projection straight line, thus complete the demarcation to video camera.
Compared with prior art, camera marking method of the present invention for model, directly describes the mathematics polynomial relation of computer picture planar point and objective world point with corresponding two the volume coordinate points of picture point, can realize accurate camera calibration fast.This scaling method has directly reappeared the process of video camera imaging compared with traditional scaling method, avoid the constraint to geometric condition in video camera imaging process, when not relying on calibrated reference, online, real-time calibration video camera internal reference, solve fast, result is accurately stable.
Accompanying drawing explanation
Fig. 1 is camera perspective projection model schematic of the present invention;
Fig. 2 is computer picture and three-dimensional body space plane mapping relations schematic diagram;
Fig. 3 is the process flow diagram of camera setting method;
Fig. 4 is that circular hole targets is marked on a map;
Fig. 5 be camera marking method of the present invention realize system schematic;
1, optical table 2, translation stage controller 3, computing machine 4, image pick-up card 5, video camera 6 (6 '), demarcation target 7 (7 '), precise electric control translation stage
Fig. 6 is the measuring error distribution curve schematic diagram of the method for camera calibration of the present invention.
61, position 1, Z w=0mm 62, position 2, Z w=50mm
63, position 3, Z w=100mm 64, position 4, Z w=150mm
65, position 5, Z w=200mm
Embodiment
Below in conjunction with accompanying drawing, further describe specific implementation of the present invention.
In the three-dimensional body image of shot by camera, the collective entity that namely can be imaged on the spatial point on video camera pixel is a space line to the straight line in what each imaging point was corresponding is space.So corresponding to pixel each in video camera space projection straight line is demarcated, and namely obtains the position of Space Perspective Projection straight line corresponding to each pixel, thus realizes camera calibration.The method for expressing of the corresponding Space Perspective Projection straight line of pixel adopts the mode of 2 lines.As shown in Figure 1, the space that on video camera, each imaging point is corresponding is a perspective projection straight line, and in the process of demarcating, space straight line can use two, space point P 1and P 2show, the calibration process of whole model determines each picture point P exactly i(such as coordinate is (u 0,v 0).) corresponding two three dimensional space coordinate point P 1and P 2process.
As shown in Figure 2, in figure, the left side is space plane, and the right is image.Have the mapping relations determined between each point on image and the point on space plane, these mapping relations can be expressed as:
X w = Σ i = 0 n Σ j = 0 n - i C i j d d i v d j Y w = Σ i = 0 n Σ j = 0 n - i D i j u d i v d j
So, if set up two known plane Z in space w=a and Z w=b, then have the corresponding relation of image slices vegetarian refreshments and its spatial point: namely, can determine at plane Z for each pixel in image in these two known planes w=a and Z wexistence on=b two spatial point are corresponding with it, and the line between these two spatial point is exactly camera perspective projection straight line corresponding to this pixel, thus complete the demarcation of camera perspective projection straight line.
As shown in Figure 3, realize system for camera marking method of the present invention, achieve camera perspective projection straight line and demarcate.This system includes optical table 1, translation stage controller 2, computing machine 3, image pick-up card 4, video camera 5, demarcates target 6 (6 '), precise electric control translation stage 7 (7 ').In calibration process, demarcation target 6 is moved two positions along translation stage 7 translation direction, obtain two projection planes in these two calibration position and be respectively Z w=a (in corresponding diagram 36,7) and Z w=b (in corresponding diagram 36 ', 7 ').
It is below technical scheme embodiment of the present invention citing.
First, demarcation target is placed the unique point needed for several demarcation, have employed 20 calibration points altogether in the present invention's experiment, light tight sheet glass is made one group of printing opacity circular hole matrix M * N, center of circular hole position exact vertical on ranks, is uniformly distributed, and the hole heart of vertical and horizontal locality is equal and known apart from D, the circle hole radius being positioned at target center is greater than the radius of other circular holes, is called marked circle.Timing signal, target is fixed on guide rail, target is made to be positioned at whole camera field of view, marked circle is made to be positioned at the center of visual field, to mark center of circular hole for a some O, the straight line at transverse holes heart row place is x-axis, is y-axis between longitudinal hole heart place, the moving direction of target is z-axis, and camera light direction of principal axis is parallel with guide rail direction.When target moves on guide rail, determine z by the position of target plane, the world coordinates of calibration point can be determined.Then when guide rail moves to diverse location, gather corresponding target image respectively, searched for oval by Iamge Segmentation, extract the pixel coordinate of center of circular hole, so just obtain the corresponding relation of unique point and picture point).Its circular hole targets is marked on a map as shown in Figure 4.
In the process of demarcating, demarcation target plane is placed on translation stage, utilizes the distance that precise electric control translation stage 7 controls between target 6 and video camera 5; At the target position Z of these two different distance w=a and Z won=b, video camera 5 is utilized to take the image of target 6 (6 ') respectively;
Then, calculate image-space corresponding relation corresponding respectively on two positions respectively according to the image taking the target obtained, exponent number n adopts 5 rank usually, and its 5 rank form can be expressed as:
Xw=C au d 0v d 0+C bu d 0v d 1+C du d 0v d 2+C gu d 0v d 3+C ku d 0v d 4+C pu d 0v d 5+C cu d 1v d 0+C eu d 1v d 1+C hu d 1v d 2+C lu d 1v d 3+C qu d 1v d 4+C fu d 2v d 0+C iu d 2v d 1+C mu d 2v d 2+C ru d 2v d 3+C ju d 3v d 0+C nu d 3v d 1+C su d 3v d 2+C ou d 4v d 0+C tu d 4v d 1+C uu d 5v d 0
Yw=D au d 0v d 0+D bu d 0v d 1+D du d 0v d 2+D gu d 0v d 3+D ku d 0v d 4+D pu d 0v d 5+D cu d 1v d 0+D eu d 1v d 1+D hu d 1v d 2+D lu d 1v d 3+D qu d 1v d 4+D fu d 2v d 0+D iu d 2v d 1+D mu d 2v d 2+D ru d 2v d 3+D ju d 3v d 0+D nu d 3v d 1+D su d 3v d 2+D ou d 4v d 0+D tu d 4v d 1+D uu d 5v d 0
Demarcate the five rank forms adopted and altogether need demarcation 21 parameter C (Ca ~ Cu) and 21 parameter D (Da ~ Du), parameter C, D need to calculate respectively, this is measured C, D and represents polynomial parameters when Zw=0mm and Zw=200mm respectively, completes and has been demarcation to the calculating of parameter.Its computation process demarcates target point (Xw by shooting, Yw, Zw) the picture planimetric coordinates point (ud and corresponding to it, vd) be updated in this multinomial model, then by the calculating that the language program of LM least-squares algorithm has been come calibrating parameters by machine solution equation, the result of experimental calibration provides in following form.
Lavenberg-Marquardt algorithm is used to calculate parameter in spatial mappings model in the present invention, this algorithm is a kind of least square fitting algorithm, can be used for solving non-linear least square problem, be used for the places such as curve, the experimental data of each measured point is utilized the program in machine code of LM algorithm, the mensuration of above-mentioned calibrating parameters can be completed, thus complete the demarcation to perspective projection straight line.
In this example, choose Z w=0mm and two planes corresponding to Zw=200mm two distances are as perspective projection straight line reference mark, and the calibration result obtained is as shown in table 1.
Table 1 camera parameters calibration result
In order to verify the precision of demarcation, different measuring distances use video camera take the image of target, according to the difference of displacement, on the measuring location by the measurement data of each point compared with the design data of target, analyze the difference of different measuring apart from upper actual measured results and measurement point theoretical position, thus the precision of calibrating camera is evaluated, the error distribution obtained is as shown in Figure 4.
As can be seen from measurement result, the point that removing discrete error is larger, the error of overall measurement result can control within 0.4mm.

Claims (1)

1. a camera marking method, is characterized in that, the method comprises the following steps:
Step one, at several scale invariant feature SIFT feature points of target plane sets;
In step 2, acquisition target plane, the image coordinate of unique point, sets up unique point three dimensional space coordinate (X w, Y w, Z w) and picture point coordinate (X f, Y f) between corresponding relation;
Step 3, this corresponding relation is substituted into spatial mappings model, this spatial mappings model is the straight line in the corresponding space of each pixel, and this straight line is determined by two points that pixel is corresponding in selected two target planes; According to selected two target plane Z=a and Z=b, gather the target image of two target planes, obtain (X in world coordinate system w, Y w, a) with (X w, Y w, b) two points, then the coordinate of these two points is substituted into proper polynomial respectively:
X w = Σ i = 0 n Σ j = 0 n - i C i j d d i v d j Y w = Σ i = 0 n Σ j = 0 n - i D i j u d i v d j
In formula, C ijand D ijbe respectively the polynomial expression calibrating parameters of camera model when two calibration position Zw=0mm and Zw=200mm, n is polynomial exponent number; u d, v dthe coordinate figure of the computing machine pixel planes point corresponding to spatial point coordinate, by what directly obtain the measurement of demarcating target, is volume coordinate point (X w, Y w, Z w) corresponding to computing machine be (u as planar point d, v d); That i, j represent is u d, v dexponent number;
The C of each parameter in polynomial expression is calculated by LM algorithm ij, D ij, thus obtain two different polynomial expressions, utilize the coordinate of two points obtained by these two polynomial expressions, realize the demarcation of perspective projection straight line, thus complete the demarcation to video camera.
CN201310115539.7A 2013-04-03 2013-04-03 A kind of camera marking method Expired - Fee Related CN103198481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310115539.7A CN103198481B (en) 2013-04-03 2013-04-03 A kind of camera marking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310115539.7A CN103198481B (en) 2013-04-03 2013-04-03 A kind of camera marking method

Publications (2)

Publication Number Publication Date
CN103198481A CN103198481A (en) 2013-07-10
CN103198481B true CN103198481B (en) 2015-10-28

Family

ID=48720987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310115539.7A Expired - Fee Related CN103198481B (en) 2013-04-03 2013-04-03 A kind of camera marking method

Country Status (1)

Country Link
CN (1) CN103198481B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747207A (en) * 2013-12-11 2014-04-23 深圳先进技术研究院 Positioning and tracking method based on video monitor network
CN107170037A (en) * 2016-03-07 2017-09-15 深圳市鹰眼在线电子科技有限公司 A kind of real-time three-dimensional point cloud method for reconstructing and system based on multiple-camera
CN106204560B (en) * 2016-07-02 2019-04-16 上海大学 Colony picker automatic calibration method
CN109934931B (en) * 2017-12-19 2023-03-28 阿里巴巴集团控股有限公司 Method and device for collecting image and establishing target object recognition model
CN108108021A (en) * 2017-12-25 2018-06-01 上海玮舟微电子科技有限公司 The outer parameter correction gauge of tracing of human eye system and bearing calibration
CN108898637A (en) * 2018-06-13 2018-11-27 苏州上善知源汽车电子有限公司 Front camera scaling method
CN110807773B (en) * 2019-11-12 2023-04-11 中广核检测技术有限公司 Panoramic image detection method for surface defects of nuclear power station
CN111598959A (en) * 2020-06-28 2020-08-28 中国科学院深圳先进技术研究院 Calibration target and calibration method of optical imaging system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1968011A2 (en) * 2007-01-31 2008-09-10 Sanyo Electric Co., Ltd. Method and apparatus for camera calibration, and vehicle
CN101363712A (en) * 2008-08-27 2009-02-11 天津大学 Dynamic precision target drone for demarcating three-dimensional colourful digital system
CN101561931A (en) * 2009-05-26 2009-10-21 上海大学 Unscented kalman filtering-based method for calibrating camera
EP2202686A1 (en) * 2007-10-24 2010-06-30 Huawei Device Co., Ltd. Video camera calibration method and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1968011A2 (en) * 2007-01-31 2008-09-10 Sanyo Electric Co., Ltd. Method and apparatus for camera calibration, and vehicle
EP2202686A1 (en) * 2007-10-24 2010-06-30 Huawei Device Co., Ltd. Video camera calibration method and device thereof
CN101363712A (en) * 2008-08-27 2009-02-11 天津大学 Dynamic precision target drone for demarcating three-dimensional colourful digital system
CN101561931A (en) * 2009-05-26 2009-10-21 上海大学 Unscented kalman filtering-based method for calibrating camera

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"三维激光扫描数据采集系统的摄像机标定技术研究";吴海华等;《现代制造工程》;20040930;第64-67页 *

Also Published As

Publication number Publication date
CN103198481A (en) 2013-07-10

Similar Documents

Publication Publication Date Title
CN103198481B (en) A kind of camera marking method
CN104266608B (en) Field calibration device for visual sensor and calibration method
CN103292695B (en) A kind of single eye stereo vision measuring method
CN102252653B (en) Position and attitude measurement method based on time of flight (TOF) scanning-free three-dimensional imaging
CN102376089B (en) Target correction method and system
CN108198224B (en) Linear array camera calibration device and calibration method for stereoscopic vision measurement
CN110443879B (en) Perspective error compensation method based on neural network
CN107274453A (en) Video camera three-dimensional measuring apparatus, system and method for a kind of combination demarcation with correction
CN106709955B (en) Space coordinate system calibration system and method based on binocular stereo vision
CN102184563B (en) Three-dimensional scanning method, three-dimensional scanning system and three-dimensional scanning device used for plant organ form
CN106767443B (en) A kind of fully automatic secondary element image detector and measurement method
CN104807476A (en) Pose estimation-based quick probe calibration device and method
CN103278138A (en) Method for measuring three-dimensional position and posture of thin component with complex structure
CN109523595A (en) A kind of architectural engineering straight line corner angle spacing vision measuring method
CN103438798A (en) Initiative binocular vision system overall calibration method
CN108180888A (en) A kind of distance detection method based on rotating pick-up head
CN113781576B (en) Binocular vision detection system, method and device for adjusting pose with multiple degrees of freedom in real time
CN106289086A (en) A kind of for optical indicia dot spacing from the double camera measuring method of Accurate Calibration
CN107917700A (en) The 3 d pose angle measuring method of target by a small margin based on deep learning
Liu et al. On-site calibration method for outdoor binocular stereo vision sensors
CN209459599U (en) A kind of aero-engine casing deformation measuring device based on Binocular Vision Principle
CN111311659A (en) Calibration method based on three-dimensional imaging of oblique plane mirror
CN114170321A (en) Camera self-calibration method and system based on distance measurement
CN113393413B (en) Water area measuring method and system based on monocular and binocular vision cooperation
CN103868455A (en) Method for achieving visual reconstruction of space coordinates of target point in water tank

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151028

Termination date: 20210403