CN1878319A - Video camera marking method based on plane homographic matrix characteristic line - Google Patents
Video camera marking method based on plane homographic matrix characteristic line Download PDFInfo
- Publication number
- CN1878319A CN1878319A CN 200610028649 CN200610028649A CN1878319A CN 1878319 A CN1878319 A CN 1878319A CN 200610028649 CN200610028649 CN 200610028649 CN 200610028649 A CN200610028649 A CN 200610028649A CN 1878319 A CN1878319 A CN 1878319A
- Authority
- CN
- China
- Prior art keywords
- video camera
- camera
- plane
- characteristic curve
- point
- 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.)
- Granted
Links
Images
Landscapes
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
The invention relates to a camera demarcate method, based on the plane unit matrix character line. Wherein, shooting several images of one plane pane figure with known size at different altitudes to the camera; extracting the image coordinates of each pane angle point of each image; according to the relationship between said coordinate and other ordinates, calculating out the plane unit matrix; then based on the plane unit matrix, obtaining one character line that represents the track of main point of camera; dividing the character line into two groups, according to the positive slope or negative slope of character line, and calculating the intersection point of two groups of character lines as the initial value of main point; according to the relationship between the plane unit matrix, the main point and the main distance, calculating the initial value of main distance of camera, to complete the liner demarcation of camera; and using the variance of intersection point as target function, to use optimize method to optimize the initial value of liner estimation and calculating out the aberrance factor of camera lens, to complete the full demarcation of camera.
Description
Technical field
The present invention relates to a kind of camera marking method, be applicable to the camera calibration in the measurement of computer vision and close-up photography, also can be used for the geometric correction of image based on plane homographic matrix characteristic line.Belonging to advanced makes and automatic field.
Background technology
Camera calibration is the major issue in the photogrammetric and computer vision always, at present, and existing multiple camera marking method.Early stage camera marking method adopts 3 D stereo to demarcate thing, because the three-dimensional difficulty of thing on making of demarcating replaced by plane reference object at present gradually.Along with the development of digital camera machine technology, four intrinsic parameter camera models that adopt principal point and main distance to represent at present are enough to satisfy the general application in the computer vision.The existing scaling method of four intrinsic parameters in the plane reference object calibrating camera model that adopts generally comprises two steps, linear initial value is estimated and nonlinear parameter optimization (Z.Zhang, A Flexible NewTechnique for Camera Calibration, IEEE Trans.Pattern Analysis andMachine Intelligence, 22 (11): 1330-1334,2000.).Wherein, to adopt Cholesky to decompose in linear initial value estimation stages.Because noise in the image and camera lens distortion cause matrix not satisfy the condition that Cholesky decomposes sometimes, can not carry out Cholesky and decompose.In addition, the physical significance of existing linear initial value method of estimation is indeterminate.Therefore, this area needs a kind of linear initial value method of estimation that does not adopt Cholesky to decompose, and expects that this method has clear physical meaning.
Summary of the invention
The object of the invention is at the deficiencies in the prior art, a kind of camera marking method based on plane homographic matrix characteristic line is proposed, need not carry out Cholesky and decompose when linear initial value is estimated, the characteristic curve that characterizes video camera principal point track has clear physical meaning.
For realizing this purpose, technical scheme of the present invention is: the plane grid figure of taking a known dimensions with respect to video camera behind the multiple image of different attitudes, extract the image coordinate of each grid angle point in every width of cloth image, to every width of cloth image, according to grid angle point image coordinate of extracting and the corresponding relation between its world coordinates, obtain a plane homography matrix, again according to each plane homography matrix, the characteristic curve of the sign video camera principal point track that draws; According to the positive and negative of characteristic curve slope characteristic curve is divided into two groups, asks the intersection point of two stack features lines, with the centre coordinate of characteristic curve intersection point initial value as the video camera principal point; According to the relation between plane homography matrix and video camera principal point and the main distance, obtain the initial value of video camera master distance, the linear calibration who finishes video camera.Be target function further again, adopt optimal method that the initial value of Linear Estimation is optimized and obtains the camera lens distortion factor, finish the full demarcation of video camera with the variance of characteristic curve intersection point.Utilize full optimal value of demarcating lens distortion coefficient, principal point and the main distance of gained, can carry out geometric correction image.
Camera marking method of the present invention may further comprise the steps:
1, makes the plane grid figure of a known dimensions, on the grid figure of plane, set up a world coordinate system, take this plane grid figure from different orientation with video camera to be calibrated, obtain the multiple image of this plane grid figure with respect to the different attitudes of video camera.
2, extract the angle point of each grid in above-mentioned every width of cloth image, obtain the image coordinate of institute's each grid angle point that extracts in pixel coordinates is.
3,,, obtain a plane homography matrix according to the image coordinate of each grid angle point of extract and the corresponding relation between its world coordinates to every width of cloth image.
4, according to each plane homography matrix, the characteristic curve about the pixel coordinates variable that draws, this characteristic curve are the tracks that satisfies the video camera principal point of plane homography matrix.
5, according to the positive and negative of characteristic curve slope characteristic curve is divided into two groups, to be positive one group and slope be negative one group to slope, and asking slope is every characteristic curve and the intersection point of slope for every characteristic curve in bearing a group in positive a group.
6, ask the centre coordinate of characteristic curve intersection point, with the initial value of this centre coordinate as the video camera principal point; According to the relation between plane homography matrix and video camera principal point and the main distance, obtain the initial value of the main distance of video camera; Finish the linear calibration of video camera.
Method of the present invention is after finishing the linear calibration of video camera, can further carry out the full demarcation of video camera, be specially: with 0 is the initial value of camera lens distortion factor, result with the linear calibration is the initial value of video camera principal point and main distance, variance with the characteristic curve intersection point is a target function, adopt optimal method that camera lens distortion factor, principal point and main distance are optimized, draw the optimal value of camera lens distortion factor, principal point and main distance, finish the full demarcation of video camera.
After the full demarcation of finishing video camera, can utilize video camera to demarcate the optimal value of lens distortion coefficient, principal point and the main distance of gained entirely, image is carried out geometric correction.
Compared with prior art, method of the present invention does not need to carry out Cholesky and decomposes, and does not therefore exist because noise in the image and camera lens distortion cause the problem that the Cholesky decomposition can not be carried out sometimes in the prior art.In addition, the characteristic curve among the present invention has clear physical meaning, and the track of the video camera principal point of a given plane homography matrix is satisfied in its expression.That is to say that satisfy all video cameras of a given plane homography matrix, their principal point all is positioned on same the characteristic curve.
Description of drawings
Fig. 1 is a multiple image captured in the one embodiment of the invention.
Fig. 2 is the grid angle point that piece image extracts from Fig. 1.
Fig. 3 is the characteristic curve that every width of cloth image draws from Fig. 1.
Fig. 4 is the result after the characteristic curve among Fig. 3 passes through parameter optimization.
Embodiment
In order to understand technical scheme of the present invention better, be described in further detail below in conjunction with drawings and Examples.
Camera marking method of the present invention may further comprise the steps:
1. photographic images: the plane grid figure of on a rigid plane, making a known dimensions, take this plane grid figure from a plurality of different orientation with video camera to be calibrated, obtain the multiple image of this plane grid figure with respect to the different attitudes of video camera.Fig. 1 is the multiple image of captured plane grid figure among the embodiment.Set up coordinate system XOY on the grid figure of plane, this coordinate system is called world coordinate system.If the length of side of each grid is a, then the world coordinates of each grid angle point can be expressed as P
Ij(ia, ja, 0), wherein i and j are natural number, i.e. X
Ij=ia, Y
Ij=ja, Z
Ij=0.
2. extraction angle point: can adopt any Angular Point Extracting Method known in the art to extract the angle point of each grid in every width of cloth image, preferably adopt the Harris Angular Point Extracting Method.Fig. 2 is the grid angle point that piece image extracts from Fig. 1, and establishing the institute's image coordinate of each angle point that extracts in pixel coordinates is is I
Ij(u
Ij, v
Ij).
3. ask the plane homography matrix: with the world coordinates (X of each angle point
Ij, Y
Ij) and image coordinate (u
Ij, v
Ij) substitution (1) formula, can obtain plane homography matrix H, this is that those skilled in the art is known.Its midplane homography matrix H can be represented by (2) formula.
4. picture characteristic curve: for each plane homography matrix H, can be by (3) formula the straight line that draws about pixel coordinates variable u and v.This straight line is the track that satisfies the video camera principal point of plane homography matrix H, and it has represented the key character of plane homography matrix H, in this article this straight line is called characteristic curve.
v=Eu+F (3)
In the formula:
K is the length-width ratio of pixel unit.Can prove for the pinhole camera modeling of being represented by four intrinsic parameters, no matter what value k gets, all characteristic curves all intersect at the principal point of video camera.So any value between the k desirable 0.5 to 1 preferably gets 1.The characteristic curve that Fig. 3 draws for the plane homography matrix according to every width of cloth image correspondence among Fig. 1.
5. ask the characteristic curve intersection point: according to the positive and negative of characteristic curve slope characteristic curve is divided into two groups, to be positive one group and slope be negative one group to slope, and to ask slope be every characteristic curve and the intersection point of slope for each bar characteristic curve in bearing a group in positive a group.The method of asking two straight-line intersections is that people are known.If slope is that m bar characteristic curve is arranged in positive one group, and slope has n bar characteristic curve in negative one group, then can obtain m * n intersection point.In the embodiment shown in fig. 3, have 12 characteristic curves, wherein slope is positive 6 and represents with solid line, and slope is represented by dotted lines for negative 6.Obtain slope and be each bar characteristic curve and slope in positive one group for totally 36 at the intersection point of each bar characteristic curve in negative a group, with little box indicating.
6. ask the initial value of principal point: ask the centre coordinate of above-mentioned m * n characteristic curve intersection point,, be expressed as (u with the initial estimate of this centre coordinate as the video camera principal point
0, v
0).The method of asking a point set center is well-known to those skilled in the art.In the embodiment shown in fig. 3, the center of 36 intersection points is represented with asterisk.
Ask the initial value of main distance then: the initial value (u that obtains principal point
0, v
0) after, can obtain the initial value of video camera master as follows, the linear calibration who finishes video camera apart from α and β.
c=(h
11-u
0h
31)
2-(h
12-u
0h
32)
2 (8)
d=(h
21-v
0h
31)
2-(h
22-v
0h
32)
2 (9)
Parameter optimization: in theory, for the pinhole camera modeling of being represented by four intrinsic parameters, all characteristic curves all intersect at the principal point of video camera.In fact, because The noise in camera lens distortion and the image, characteristic curve does not intersect at a point, but is dispersed in a zone, as shown in Figure 3.Therefore, above-mentioned linear calibration's result is an approximate estimated value, and obtain more also needing the initial value that obtains among the above-mentioned linear calibration is optimized near the calibration result of true value.When optimizing process began, the distortion factor of establishing camera lens was 0.Describe with the embodiment that only considers camera lens single order coefficient of radial distortion k1 below.
At first use (12) and (13) formula that the image coordinate of each angle point is carried out geometric distortion correction,
(U in the formula
Ij, V
Ij) be the angle point image coordinate after proofreading and correct.Use (U then
Ij, V
Ij) replacement (u
Ij, v
Ij), as obtaining the plane homography matrix after the correction as described in the step 3.As described in step 4,5 and 6, obtain the principal point and the main distance of proofreading and correct the back video camera.With the variance of being asked two stack features line intersection points in the step 5 is target function, gets minimum value to the lens distortion coefficient k by making this target function
1Be optimized with the principal point and the main distance of video camera, obtain the lens distortion coefficient k at last
1With the principal point of video camera and the optimal value of main distance, finish the full demarcation of video camera.Any optimal method that makes target function get minimum value all is applicable to the present invention.Fig. 4 is the result after the characteristic curve among Fig. 3 passes through parameter optimization.
After obtaining video camera principal point, main distance and lens distortion coefficient, available these parameters are carried out geometric correction to image.Therefore, method of the present invention also can be used for the correction of piecture geometry fault.
Method of the present invention does not need to carry out Cholesky and decomposes.If represent relation between world coordinate system and the pixel coordinate system can prove that so characteristic curve slope and the intercept represented by (4) and (5) formula can further be expressed as with Eulerian angles:
In the formula, θ is the angle of pitch of world coordinate system with respect to pixel coordinate system, and ψ is the yaw angle of world coordinate system with respect to pixel coordinate system.By (14) and (15) formula as can be seen, characteristic curve and world coordinate system are irrelevant with respect to the translation vector of pixel coordinate system with respect to the roll angle and the world coordinate system of pixel coordinate system.Therefore, when taking uncalibrated image, control pitching angle theta and yaw angle ψ consciously, make the absolute value of characteristic curve slope be unlikely to very big, method so of the present invention always can be carried out.
In addition, the characteristic curve among the present invention has clear physical meaning, and the track of the video camera principal point of a given plane homography matrix is satisfied in its expression.That is to say that satisfy all video cameras of a given plane homography matrix, their principal point all is positioned on same the characteristic curve.So the characteristic curve that the plane homography matrix of being obtained by several plane graticule pictures of taking under same camera parameters draws must intersect at the principal point of this video camera.
Claims (3)
1, a kind of camera marking method based on plane homographic matrix characteristic line is characterized in that comprising following concrete steps:
1) the plane grid figure of a known dimensions of making, on the grid figure of plane, set up a world coordinate system, take this plane grid figure from different orientation with video camera to be calibrated, obtain the multiple image of this plane grid figure with respect to the different attitudes of video camera;
2) extract the angle point of each grid in above-mentioned every width of cloth image, obtain the image coordinate of institute's each grid angle point that extracts in pixel coordinates is;
3),, obtain a plane homography matrix according to the image coordinate of each grid angle point of extract and the corresponding relation between its world coordinates to every width of cloth image;
4) according to each plane homography matrix, the characteristic curve about the pixel coordinates variable that draws, this characteristic curve are the tracks that satisfies the video camera principal point of plane homography matrix;
5) according to the positive and negative of characteristic curve slope characteristic curve is divided into two groups, to be positive one group and slope be negative one group to slope, and asking slope is every characteristic curve and the intersection point of slope for every characteristic curve in bearing a group in positive a group;
6) ask the centre coordinate of characteristic curve intersection point, with the initial value of this centre coordinate as the video camera principal point; According to the relation between plane homography matrix and video camera principal point and the main distance, obtain the initial value of the main distance of video camera; Finish the linear calibration of video camera.
2, according to the camera marking method based on plane homographic matrix characteristic line of claim 1, it is characterized in that after finishing the linear calibration of video camera, with 0 is the initial value of camera lens distortion factor, result with the linear calibration is the initial value of video camera principal point and main distance, variance with the characteristic curve intersection point is a target function, adopt optimal method to camera lens distortion factor, principal point and main apart from being optimized, draw the optimal value of camera lens distortion factor, principal point and main distance, finish the full demarcation of video camera.
3, according to the camera marking method based on plane homographic matrix characteristic line of claim 2, it is characterized in that after the full demarcation of finishing video camera, utilize video camera to demarcate the optimal value of lens distortion coefficient, principal point and the main distance of gained entirely, image is carried out geometric correction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB200610028649XA CN100481966C (en) | 2006-07-06 | 2006-07-06 | Video camera marking method based on plane homographic matrix characteristic line |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB200610028649XA CN100481966C (en) | 2006-07-06 | 2006-07-06 | Video camera marking method based on plane homographic matrix characteristic line |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1878319A true CN1878319A (en) | 2006-12-13 |
CN100481966C CN100481966C (en) | 2009-04-22 |
Family
ID=37510581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB200610028649XA Expired - Fee Related CN100481966C (en) | 2006-07-06 | 2006-07-06 | Video camera marking method based on plane homographic matrix characteristic line |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100481966C (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667288A (en) * | 2008-09-02 | 2010-03-10 | 新奥特(北京)视频技术有限公司 | Method for detecting corner points of communicated regions in binary symbol images |
CN101887585A (en) * | 2010-07-15 | 2010-11-17 | 东南大学 | Method for calibrating camera based on non-coplanar characteristic point |
CN101383051B (en) * | 2008-09-27 | 2011-03-23 | 四川虹微技术有限公司 | View synthesizing method based on image re-projection |
CN101216937B (en) * | 2007-01-05 | 2011-10-05 | 上海海事大学 | Parameter calibration method for moving containers on ports |
CN101980292B (en) * | 2010-01-25 | 2012-01-18 | 北京工业大学 | Regular octagonal template-based board camera intrinsic parameter calibration method |
CN102339169A (en) * | 2010-07-27 | 2012-02-01 | 中国科学院软件研究所 | Method for calibrating large-sized multipoint touch system |
CN102693539A (en) * | 2012-03-13 | 2012-09-26 | 夏东 | Rapid three-dimensional calibration method for wide baselines for intelligent monitoring systems |
CN101998136B (en) * | 2009-08-18 | 2013-01-16 | 华为技术有限公司 | Homography matrix acquisition method as well as image pickup equipment calibrating method and device |
CN101686412B (en) * | 2008-09-28 | 2013-09-18 | 新奥特(北京)视频技术有限公司 | Distortion-considering method and distortion-considering device for acquiring shooting parameters |
CN103415860A (en) * | 2011-01-27 | 2013-11-27 | Metaio有限公司 | Method for determining correspondences between a first and a second image, and method for determining the pose of a camera |
CN111913572A (en) * | 2020-07-03 | 2020-11-10 | 山东大学 | Man-machine interaction system and method for labor transformation of prisoners |
-
2006
- 2006-07-06 CN CNB200610028649XA patent/CN100481966C/en not_active Expired - Fee Related
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101216937B (en) * | 2007-01-05 | 2011-10-05 | 上海海事大学 | Parameter calibration method for moving containers on ports |
CN101667288B (en) * | 2008-09-02 | 2012-11-14 | 新奥特(北京)视频技术有限公司 | Method for detecting corner points of communicated regions in binary symbol images |
CN101667288A (en) * | 2008-09-02 | 2010-03-10 | 新奥特(北京)视频技术有限公司 | Method for detecting corner points of communicated regions in binary symbol images |
CN101383051B (en) * | 2008-09-27 | 2011-03-23 | 四川虹微技术有限公司 | View synthesizing method based on image re-projection |
CN101686412B (en) * | 2008-09-28 | 2013-09-18 | 新奥特(北京)视频技术有限公司 | Distortion-considering method and distortion-considering device for acquiring shooting parameters |
CN101998136B (en) * | 2009-08-18 | 2013-01-16 | 华为技术有限公司 | Homography matrix acquisition method as well as image pickup equipment calibrating method and device |
CN101980292B (en) * | 2010-01-25 | 2012-01-18 | 北京工业大学 | Regular octagonal template-based board camera intrinsic parameter calibration method |
CN101887585A (en) * | 2010-07-15 | 2010-11-17 | 东南大学 | Method for calibrating camera based on non-coplanar characteristic point |
CN102339169A (en) * | 2010-07-27 | 2012-02-01 | 中国科学院软件研究所 | Method for calibrating large-sized multipoint touch system |
CN102339169B (en) * | 2010-07-27 | 2014-04-30 | 中国科学院软件研究所 | Method for calibrating large-sized multipoint touch system |
CN103415860A (en) * | 2011-01-27 | 2013-11-27 | Metaio有限公司 | Method for determining correspondences between a first and a second image, and method for determining the pose of a camera |
US9875424B2 (en) | 2011-01-27 | 2018-01-23 | Apple Inc. | Method for determining correspondences between a first and a second image, and method for determining the pose of a camera |
CN102693539A (en) * | 2012-03-13 | 2012-09-26 | 夏东 | Rapid three-dimensional calibration method for wide baselines for intelligent monitoring systems |
CN111913572A (en) * | 2020-07-03 | 2020-11-10 | 山东大学 | Man-machine interaction system and method for labor transformation of prisoners |
Also Published As
Publication number | Publication date |
---|---|
CN100481966C (en) | 2009-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1878319A (en) | Video camera marking method based on plane homographic matrix characteristic line | |
CN101276465B (en) | Method for automatically split-jointing wide-angle image | |
CN105957015B (en) | A kind of 360 degree of panorama mosaic methods of threaded barrel inner wall image and system | |
CN106204544B (en) | It is a kind of to automatically extract the method and system of mark point position and profile in image | |
CN103517041B (en) | Based on real time panoramic method for supervising and the device of polyphaser rotation sweep | |
CN1734472A (en) | Generate the method and apparatus of deterioration character picture | |
DE112012005350B4 (en) | Method of estimating the pose of an object | |
CN108171787A (en) | A kind of three-dimensional rebuilding method based on the detection of ORB features | |
CN106123772B (en) | A kind of nuclear fuel rod pose automatic identification equipment and method | |
CN1801896A (en) | Video camera rating data collecting method and its rating plate | |
CN106780388A (en) | A kind of line-scan digital camera optical distortion antidote | |
CN1801953A (en) | Video camera reference method only using plane reference object image | |
CN1946195A (en) | Scene depth restoring and three dimension re-setting method for stereo visual system | |
DE112009005074T5 (en) | TECHNIQUES FOR QUICK STEREO RECONSTRUCTION FROM PICTURES | |
CN1804905A (en) | Voting paper recognition method for electronic voting boxes | |
CN1272747C (en) | Method and device for tracking moving object in image | |
CN105046647A (en) | Full liquid crystal instrument 360 degree panorama vehicle monitoring system and working method | |
CN116309080B (en) | Unmanned aerial vehicle video stitching method | |
CN116152068A (en) | Splicing method for solar panel images | |
CN108961182A (en) | Vertical direction vanishing point detection method and video positive twist method for video image | |
CN113313116A (en) | Vision-based accurate detection and positioning method for underwater artificial target | |
CN114372992A (en) | Edge corner point detection four-eye vision algorithm based on moving platform | |
CN116363157A (en) | Overhead transmission line edge positioning method, system, electronic equipment and medium | |
CN111724446A (en) | Zoom camera external parameter calibration method for building three-dimensional reconstruction | |
CN108109118B (en) | Aerial image geometric correction method without control points |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090422 Termination date: 20120706 |