CN111223149A - Method for calibrating camera internal parameters based on properties of two separation circles with same radius - Google Patents

Method for calibrating camera internal parameters based on properties of two separation circles with same radius Download PDF

Info

Publication number
CN111223149A
CN111223149A CN202010013732.XA CN202010013732A CN111223149A CN 111223149 A CN111223149 A CN 111223149A CN 202010013732 A CN202010013732 A CN 202010013732A CN 111223149 A CN111223149 A CN 111223149A
Authority
CN
China
Prior art keywords
straight line
point
image
circle
camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010013732.XA
Other languages
Chinese (zh)
Inventor
赵越
杨丰澧
汪雪纯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yunnan University YNU
Original Assignee
Yunnan University YNU
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 Yunnan University YNU filed Critical Yunnan University YNU
Priority to CN202010013732.XA priority Critical patent/CN111223149A/en
Publication of CN111223149A publication Critical patent/CN111223149A/en
Pending legal-status Critical Current

Links

Images

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/30Subject of image; Context of image processing
    • G06T2207/30204Marker
    • G06T2207/30208Marker matrix

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a method for calibrating intrinsic parameters of a camera based on the properties of two separating circles with the same radius, which comprises the following steps: fitting a target projection equation; estimating a vanishing line according to an equation; determining the image of the circular point according to the vanishing line; calculating intrinsic parameters of the camera according to the images of the circular points; the target of the invention is simple to manufacture, and only two circles with the same radius are needed; the physical scale of the target is not required, and the coordinates of the circle center under a world coordinate system and the radius of the circle do not need to be known; the image boundary points of the target can be almost completely extracted, so that the accuracy of curve fitting can be improved, and the calibration accuracy is improved; the method is a linear algorithm, is simple to calculate, and can finish calibration only by decomposing the feature value of the image square range.

Description

Method for calibrating camera internal parameters based on properties of two separation circles with same radius
Technical Field
The invention relates to the field of computer vision, in particular to a method for calibrating intrinsic parameters of a camera based on the properties of two separating circles with the same radius.
Background
The central task of computer vision is to understand images, and its ultimate goal is to make the computer have the ability to recognize three-dimensional environmental information through two-dimensional images. This capability will not only enable the machine to perceive the geometric information of objects in a three-dimensional environment, including shape, pose, motion, etc., but also to describe, store, recognize and understand them. Camera calibration, which is the procedure necessary for many computer vision applications, is to determine the mapping from a three-dimensional point in space to its two-dimensional image point. In order to determine the mapping process, a geometric imaging model of the camera needs to be established, parameters of the geometric model are called as camera parameters, and the camera parameters can be divided into an internal parameter and an external parameter. The intrinsic parameters describe the imaging geometry of the imaging system and the extrinsic parameters describe the orientation and position of the imaging system with respect to the world coordinate system. Camera calibration can be divided into traditional calibration, self-calibration and calibration based on geometric entities. No matter which calibration method is used, the aim is to establish a constraint relation, particularly a linear constraint relation, between a two-dimensional image and parameters in a camera, which is a target pursued by the current camera calibration and is one of hot spots of research in the field of computer vision at present.
The pinhole camera has simple imaging model, clear geometric principle, no need of some special mirror surfaces and important application in the field of vision. The documents "An algorithm for self calibration from sectional views", (R.Hartley, In Proc.IEEE Conference on Computer Vision and Pattern recognition, pages 908 and 912, June1994.) propose a pinhole camera self-calibration method which has the advantage that no calibration block is required and the disadvantage that the corresponding points between the images must be obtained. In computer vision, it is difficult to implement a very effective method for finding the corresponding point. The literature "Camera calibration by a single image of balls: From con to the absolute con", (Teramoto H.and Xu G., InProc. of 5th ACCV,2002, pp.499-506.) studies the relationship between spherical images and absolute quadratic curves under a pinhole Camera, calibrating the internal parameters by minimizing the reprojection error nonlinearity. This method requires a good initialization step, which would otherwise result in a local minimum during the minimization process. The literature, "Camera Calibration from Images of spheres", (Hui Zhang and KWan-Yee K., IEEE Transactions on Pattern Analysis & Machine Analysis, 2007, (29) (3): 499-. The documents "compressing Sphere Images Using the double-Contact Theorem", (X.Y, H.ZHa, spring Berlin Heidelberg,2006,3851(91):724-733) introduce the double-Contact principle, the relation between the three spherical Images and the image of the absolute quadratic curve can be determined by Using the double-Contact principle, the linear constraint of the internal parameters of the pinhole camera is established by Using the relation, and the internal parameters of the pinhole camera can be obtained by the linear constraint.
The circle is considered as one of the important image features similar to the point, line and quadratic curve, and the most important advantage is that the circle can be extracted from the image more accurately and provides acceptable calibration accuracy. Since circles have more geometric information, camera calibration using circles has been a direction of research in recent years. The documents "The Common self-polar triangle of centralized circuits and its application to a centralized triangle", (H.F.Huang and H.Zhang, in: Proceedings of IEEE International conference on Computer Vision and Pattern Recognition,2015, pp.4065-4072.) found that concentric circles have an infinite number of Common polar triangles, but that family of Common polar triangles share a vertex and a straight line. The vertex and the straight line are found to be the centers of the concentric circles and an infinite straight line on the supporting plane by analyzing the algebraic properties of the common self-polar triangle. Therefore, on the image plane, the image of the center of the circle and the vanishing line can be determined by using the generalized eigenvalue decomposition of the two concentric circle images. These allow good constraints on the IAC. The literature, "recording projected centers of circle-pairs with common variants", (Q.Chen, H.Y.Wu, in: Proceedings of IEEE International of Conference on mechanics and Automation,2017, pp.1775-1780.) describes a new method for restoring a circle-to-common tangent by decomposing a degenerate quadratic curve. Furthermore, two vanishing points are obtained using the properties of a circle, thereby determining a vanishing line on the support plane. Finally, the vanishing lines are used to determine the intrinsic parameters of the camera. The documents "Camera calibration with a twopolar coplanar circuits", (q. chen, h. y. wu, t. wada, in: proc. eccv,2004, pp.521-532.) hold a new calibration algorithm that can estimate both the external parameters and the focal length of the Camera using only the projection of two coplanar circles of any two radii. However, this method causes errors to accumulate and only part of the camera intrinsic parameters can be estimated.
Disclosure of Invention
The invention aims to: aiming at the existing problems, the method for calibrating the internal parameters of the camera based on the properties of the two separating circles with the same radius is provided; the invention solves the problem of large error of the internal parameters of the computer camera; the problem that the number of internal parameters of the camera is not complete is solved; solves the problem of complicated calculation method of the internal parameters of the camera
The technical scheme adopted by the invention is as follows:
a method for calibrating camera intrinsic parameters based on the properties of two separating circles with the same radius comprises the following steps: fitting a target projection equation; estimating a vanishing line according to an equation; determining the image of the circular point according to the vanishing line; and calculating the intrinsic parameters of the camera according to the images of the circular points.
Further, the fitting target projection equation is an equation for extracting pixel coordinates of Edge points of the target image by using an Edge function in a Matlab program, and fitting by using a least square method to obtain a circular image.
Further, the method for estimating the vanishing line comprises the following steps: with two separating circles C of the same radius in space1And C2Is a calibration object; if the order is OcThe intrinsic parameter matrix of the camera with the optical center is
Figure BDA0002358080000000031
Wherein r iscIs the aspect ratio, fcIs the effective focal length, s is the tilt factor, [ u [ ]0v01]TIs in the form of a homogeneous coordinate matrix of a principal point p of the camera, where rc,fc,u0,v0S is 5 intrinsic parameters of the camera; then C is calculated by eigenvalue decomposition1 *And C2 *Three generalized eigenvectors LkWhere k is 1,2,3, which represent the circle C1And C2And two of the sides L of the common self-polar triangle1And L2Is parallel toPerpendicular to the other side L3(ii) a From the nature of the circle, the straight line L1And the circle C1With a real point of intersection M1And M2And the circle C2Only the point of the complex intersection; for the same reason, straight line L2And the circle C2With a real point of intersection N1And N2And the circle C1Only the point of the complex intersection; let a straight line L1And a straight line L3Intersect at E1Straight line L2And a straight line L3Intersect at E2Then point E is connected1And N1Form a straight line U1Is connected to E2And M2Form a straight line U1Is connected to E2And M1Form a straight line U2Connecting point E1And N2Form a straight line V2(ii) a According to the geometric properties of an isosceles triangle and a circle with the same radius, the other group of parallel straight lines U1,V1Or U2,V2Can also be obtained; two groups of parallel straight lines determine the infinite straight line L on the plane(ii) a Extracting pixel coordinates of Edge points of the image target image by using an Edge function in Matlab, and fitting by using a least square method to obtain a corresponding quadratic curve equation; by cniA coefficient matrix representing the ith circular image in the nth image, wherein n is 1,2,3, and i is 1, 2; equation of a circle cniCan be represented by a homography matrix Hn=K[rn1rn2Tn]Equation C with circleiDetermination, i.e. of the relation λcnicni=Hn -TCiHn -1Wherein λ iscniIs a non-zero scale factor, rn1And rn2Are respectively a rotation matrix RnFirst and second columns of (D), TnIs a translation vector; taking two circular image equations c on the nth perspective image planen1,cn2Then matrix pair (c)n1 *,cn2 *) Is equivalent to the matrix cn2cn1 -1By eigenvalue decomposition, matrix cn2cn1 -1Characteristic vector l ofnkCan be obtained, they represent LkThe nth image of (1); therefore, it can be seen that,vanishing point vn1∞Can be defined by a straight line ln1And ln2Determination, i.e. λnv1vn1∞=ln1×ln2Wherein λ isnv1A non-zero scale factor, where x represents the cross product; if a straight line ln1And the quadratic curve cn1Intersect at two points mn1And mn2And a straight line ln3Intersect at en1(ii) a Thus, it can be seen that the straight line ln2And the quadratic curve cn2Intersect at two points nn1And nn2And a straight line ln3Intersect at en2(ii) a Through the connecting point en1And nn1Form a straight line un1Connecting point en2And mn2Form a straight line vn1Then straight line un1And vn1Vanishing point v ofn2∞Can be obtained, i.e. lambdanv2vn2∞=un1×vn1Wherein λ isnv2A non-zero scale factor; thus, passing through point mn1And en2Straight line u ofn2And pass through point en1And nn2Straight line v ofn2Intersect at vanishing point vn3∞I.e. λnv3vn3∞=un2×vn2Wherein λ isnv3A non-zero scale factor; connecting two vanishing points vn1∞And vn2∞The vanishing line l can be obtainedn∞I.e. λnlln∞=vn1∞×vn2∞Wherein λ isnlA non-zero scale factor.
Further, the method for determining the image of the circle point comprises the following steps: on the nth perspective image, the plane pi is known1Upper vanishing line ln∞Then l isn∞And the circle image cn1Intersect at cn1Image of a circular point on InAnd JnThat is to say have
Figure BDA0002358080000000041
Further, the method for calculating the camera intrinsic parameters comprises the following steps: from the image I of the circle pointn,JnThe linear constraint on the image ω of the absolute quadratic curve (n ═ 1,2,3) yields ω, i.e.:
Figure BDA0002358080000000042
wherein Re, Im represent the real and imaginary parts of the complex number, respectively; and performing Cholesky decomposition on omega and then inverting to obtain an internal parameter matrix K, namely obtaining 5 internal parameters of the camera.
In summary, due to the adoption of the technical scheme, the invention has the beneficial effects that:
1. the target of the invention is simple to manufacture; the physical scale of the target is not required, and the coordinates of the circle center under a world coordinate system and the radius of the circle do not need to be known; the image boundary points of the target can be almost completely extracted, so that the accuracy of curve fitting can be improved, and the calibration accuracy is improved.
2. The method is a linear algorithm, is simple to calculate, and can finish calibration only by decomposing the feature value of the image square range.
Drawings
The invention will now be described, by way of example, with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of a method for calibrating camera intrinsic parameters based on the properties of two separate circles of the same radius.
Fig. 2 is a schematic view of a projection of a target under a pinhole camera.
FIG. 3 is a schematic diagram of a target for solving parameters within a pinhole camera.
Fig. 4 is a schematic view of a projection of a target onto an image plane.
Detailed Description
All of the features disclosed in this specification, or all of the steps in any method or process so disclosed, may be combined in any combination, except combinations of features and/or steps that are mutually exclusive.
Any feature disclosed in this specification (including any accompanying claims, abstract) may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.
Example 1
A method for calibrating camera intrinsic parameters based on the properties of two separate circles with the same radius, as shown in fig. 1, includes:
s1: and fitting a target projection equation.
In the above step, the fitting target projection equation is an equation for obtaining a circle image by extracting the pixel coordinates of the Edge points of the target image by using an Edge function in a Matlab program and fitting by using a least square method.
S2: the vanishing line is estimated from the equation.
In the above step, the method for estimating the vanishing line includes: two separating circles with the same radius in the space are used as calibration objects. As shown in FIG. 2, if the point O is any point in spacewEstablishing a world coordinate system O for the originw-XwYwZwTwo of which are circles C1And C2The supporting plane is the world plane OwXwYw. Algebraically, compute the matrix pairs (C)1 *,C2 *) Is also the problem of determining the matrix C2C1 *The eigenvector problem of (1), i.e. two circles C1And C2The generalized eigenvalue decomposition of (1) is satisfied by the following equation:
C1 *L=βC2 *L, (1)
or
(C1 *-βC2 *)L=03×3, (2)
Or
(C2C1 *-βI)L=03×3, (3)
Where I is a 3 x 3 order identity matrix.
If C1And C2With a common autostart, then the vertex X and the edge L of the common autostart should satisfy the following relationship:
X=C1 *L, (4)
X=βC2 *L。 (5)
by combining the formulas (4) and (5), the following can be obtained:
C1 *L=X=βC2 *L。 (6)
the compounds of formulae (1) and (6) can be seen from1 *,C2 *) Is generalized eigenvector LkIs a circle C1And C2Is common to three sides of the free triangle.
As shown in FIG. 3, one of the sides L in the common self-polar triangle3Passing through the center O of two circles1And O2Because of the straight line L1About circle C1And C2Is a straight line L2And L3Cross point of (E)2Straight line L2About circle C1And C2Is a straight line L1And L3Cross point of (E)1Then, according to the principle of polarization, the straight line L1Also through L3About circle C1And C2I.e. the point of infinity V on the support plane1∞. Similarly, a straight line L can be known2Also passes through the point of infinity V1∞. And from the nature of the circle, L1⊥L3,L2⊥L3. Straight line L1And the circle C1With a real point of intersection M1And M2And the circle C2Only the point of the complex intersection. For the same reason, straight line L2And the circle C2With a real point of intersection N1And N2And the circle C1Only the point of the complex intersection. From the definition of the intersection point, point M1,M2,N1,N2Can be determined by the following equation:
Figure BDA0002358080000000061
Figure BDA0002358080000000062
according to two circles C of the same radius1And C2The geometry of (a), we easily observe a property: isosceles triangle delta O1M1M2And isosceles triangle Δ O2N1N2Are congruent. Further, we have readily demonstrated that passing through point E1And N1Straight line U of1And pass through point E2And M2Straight line V of1Are parallel to each other. For the same reason, pass through point E2And M1Straight line U of2And pass through point E1And N2Straight line V of2Are parallel to each other. Then two further points of infinity V on the support plane2∞,V3∞May be determined.
Extracting the pixel coordinates of the Edge points of the target image in the 3 images by using an Edge function in Matlab, obtaining a corresponding quadratic curve equation by least square fitting, wherein c is usedniAnd a coefficient matrix representing an ith (i is 1,2) circular image in the nth (n is 1,2,3) image.
Then give a circle C1A point on
Figure BDA0002358080000000063
Then the following equation holds:
Figure BDA0002358080000000064
as can be seen from the projection model,
Figure BDA0002358080000000065
satisfies the following conditions:
Figure BDA0002358080000000066
wherein λnmIs a non-zero scale factor, rn1And rn2Are respectively a rotation matrix RnFirst and second columns of (D), TnIs a translation vector. As shown in FIG. 1, with the camera optical center OCEstablishing a camera coordinate system O for the originc-XcYcZcN and Z of image planecVertical axis, circle C1,C2The projections are respectively cn1,cn2The subscript n in FIG. 1, neglected, is denoted by c1,c2And (4) showing. Suppose a circle C1Projection onto the image plane π is cn1According to the homogeneity of projective transformation, the image point mnIn the circle cn1The method comprises the following steps:
mn Tcn1mn=0。 (11)
because of Hn=K[rn1rn2Tn]Is a 3 × 3 order invertible matrix, then, by combining the equations (9), (10) and (11), we can obtain:
λnc1cn1=Hn -TC1Hn -1, (12)
wherein λnc1A non-zero scale factor.
For the same reason, if circle C2Is c on the image plane pin2Then, the following equation holds:
λnc2cn2=Hn -TC2Hn -1, (13)
wherein λnc2A non-zero scale factor.
First consider a matrix pair (c)n1 *,cn2 *) Algebraically, because of the matrix pair (c)n1 *,cn2 *) Is equivalent to the matrix cn2cn1 -1The following equation is satisfied from the equation (12) and (13):
Figure BDA0002358080000000071
here. varies indicates a difference by a non-zero scale factor. Due to the quadratic curve pair (c)n1 *,cn2 *) And a pair of circles (C)1 *,C2 *) From a nonsingular homography HnIs associated with, i.e. cn2cn1 -1∝Hn -TC2C1 -1Hn T. From the literature, "European Structure structural Confucial Consortium: Theoryand application to Camera Calibration ", (P.Gurdjos, J.S.Kim, and I.S.Kweon, In Proceeding of IEEE Conference on Computer Vision and Pattern Recognition,2006, pp.1214-1221.) two circles C1And C2Is a projective invariant, i.e., if Lk(k is 1,2,3) is a matrix C1And C2Is a generalized feature vector of, then lnk=HnLkMust be the matrix cn1And cn2The generalized eigenvectors of (3). On the image plane, vanishing point v1∞Can be defined by a straight line ln1And ln2Determining, namely:
λnv1vn1∞=ln1×ln2, (15)
wherein λnv1A non-zero scale factor, where x represents the cross product.
As shown in fig. 4 (the subscript n in fig. 4 is ignored), if the straight line ln1And the quadratic curve cn1Intersect at two points mn1And mn2And a straight line ln3Intersect at en1. By the same token, the straight line ln2And the quadratic curve cn2Intersect at two points nn1And nn2And a straight line ln3Intersect at en2. Through the connecting point en1And nn1Form a straight line un1Connecting point en2And mn2Form a straight line vn1. I.e. the following two equations hold:
λnu1un1=en1×nn1, (16)
λnv1vn1=en2×mn2, (17)
wherein λnu1And λnv1A non-zero scale factor. Then, from the above discussion, the line un1And vn1Vanishing point v ofn2∞Can be obtained, namely:
λnv2vn2∞=un1×vn1,(18)
wherein λnv2A non-zero scale factor. For the same reason, pass through point mn1And en2Straight line u ofn2And pass through point en1And nn2Straight line v ofn2Intersect at vanishing point vn3∞Namely:
λnu2un2=mn1×en2, (19)
λnv2vn2=en1×nn2, (20)
λnv3vn3∞=un2×vn2, (21)
wherein λnu2,λnv2,λnv3A non-zero scale factor. Connecting two vanishing points vn1∞And vn2∞The vanishing line l can be obtainedn∞I.e. λnlln∞=vn1∞×vn2∞(22) wherein λnlA non-zero scale factor.
S3: and determining the image of the circular point according to the vanishing line.
In the above step, the method for determining the image of the circle point comprises: known plane pi1Upper vanishing line ln∞Then l isn∞And the circle image cn1Intersect at cn1Image of a circular point on InAnd JnThen two equations can be obtained, one being:
Figure BDA0002358080000000081
the other one is that:
Figure BDA0002358080000000082
theoretically, the solution obtained by equation (23) is [ a + bi c + di1 ]]TThe solution obtained by equation (24) is [ a-bi c-di1]T. But they do not yield an ideal solution due to the effects of noise. Let us remember that the solution of equation (23) is [ a ]1+b1i c1+d1i 1]TThe solution of equation (24) is [ a ]2-b2i c2-d2i 1]T. Taking the mean value of the coefficients of the solutions of equation (23) and equation (24) as the image I of the circle pointnAnd JnThe coefficients of (c) then have:
Figure BDA0002358080000000083
thus, a plane pi can be obtained1Image of a circular point on InAnd Jn
S4: and calculating the intrinsic parameters of the camera according to the images of the circular points.
In the above steps, the method for calculating the camera intrinsic parameters includes: 3 circular images can be estimated that the images of 3 groups of circular points are I respectively1,J1,I2,J2,I3,J3. Secondly, there is a linear constraint by the image of the circle point to the image ω of the absolute quadratic curve
Figure BDA0002358080000000091
Where Re, Im represent the real and imaginary parts of the complex number, respectively. ω can be obtained by solving equation set (26) by the SVD method. And finally, performing Cholesky decomposition on omega and then inverting to obtain K, namely obtaining the internal parameters of the pinhole camera.
Example 2
The embodiment performs the specific data substitution calculation according to the method of the embodiment 1, which is convenient for further understanding of the technical scheme.
A method for calibrating camera intrinsic parameters based on the properties of two separating circles with the same radius comprises the following steps:
s1: and fitting a target projection equation.
In the above steps, the size of the image used in this embodiment is 1038 × 1048. 3 experimental images of the target are shot by a pinhole camera, the images are read in, pixel coordinates of Edge points of the target image are extracted by utilizing an Edge function in Matlab, and an equation of a circular image is obtained by fitting with a least square method. The coefficient matrices of the equation for the ith (i ═ 1,2) circle image in the nth (n ═ 1,2,3) image are c respectivelyniThe results are as follows:
Figure BDA0002358080000000092
Figure BDA0002358080000000093
Figure BDA0002358080000000094
Figure BDA0002358080000000101
Figure BDA0002358080000000102
Figure BDA0002358080000000103
s2: the vanishing line is estimated from the equation.
In the above step, because of the square range c of any two circular imagesn1,cn2Matrix pair (c)n1 *,cn2 *) Is equivalent to the matrix cn2cn1 -1The feature vector of (2). Therefore, we compute the matrix c12c11 -1,c22c21 -1,c32c31 -1The results are as follows:
Figure BDA0002358080000000104
Figure BDA0002358080000000105
Figure BDA0002358080000000106
decomposing the characteristic value of formula (33) to obtain three straight lines l1kThe homogeneous matrix of coordinates of (a) is,the results are as follows:
l11=[0.0000131372232636 -0.00054538289497831]T,(36)
l12=[0.0000202628469355 -0.00053375127317341]T,(37)
l13=[-0.0008928788850378 0.00000010146350961]T。(38)
decomposing the characteristic value of formula (34) to obtain three straight lines l2kThe result of the homogeneous coordinate matrix of (a) is as follows:
l21=[0.0001787630326410 -0.00072278635956151]T,(39)
l22=[-0.0000926813825859 -0.00098103194667671]T,(40)
l23=[-0.0017096410841089 0.00086053258714201]T。(41)
decomposing the characteristic value of formula (35) to obtain three straight lines l3kThe result of the homogeneous coordinate matrix of (a) is as follows:
l31=[-0.0063150148065399 0.01056145988780411]T,(42)
l32=[-0.0438145781588402 0.05112541987860161]T,(43)
l33=[-0.0007246252546235 0.00091640975931321]T。(44)
by substituting the expressions (36) and (37) into the expression (15), the vanishing point v can be obtained11∞The result of the homogeneous coordinate matrix of (a) is as follows:
v11∞=[-2879.8267949194755601 1764.20471066060827071]T。(45)
by substituting the expressions (39) and (40) into the expression (15), the vanishing point v can be obtained21∞The result of the homogeneous coordinate matrix of (a) is as follows:
v21∞=[-1065.5406460551009786 1120.00000000000000001]T。(46)
by substituting the expressions (42) and (43) into the expression (15), the vanishing point v can be obtained31∞The result of the homogeneous coordinate matrix of (a) is as follows:
v31∞=[-289.9742893997091641 -268.06823688687074991]T。(47)
when the formulae (27), (28), (36) and (37) are substituted into the formulae (7) and (8), the point m can be obtained11,m12,n11,n12The result of the homogeneous coordinate matrix of (a) is as follows:
m11=[617.7121596583361906 1848.45368609152978931]T,(48)
m12=[1791.2521159172349598 1876.72200282111271001]T,(49)
n11=[381.7200782616370702 1888.02310395718131981]T,(50)
n12=[2290.9414414043790202 1960.50304394383579161]T。(51)
when the formulae (29), (30), (39) and (40) are substituted into the formulae (7) and (8), the point m can be obtained21,m22,n21,n22The result of the homogeneous coordinate matrix of (a) is as follows:
m21=[866.65948134171651418 1597.88111919039806701]T,(52)
m22=[2593.8444044523052980 2025.05688240540507641]T,(53)
n21=[1783.7530719672731720 850.8176537222852851]T,(54)
n22=[614.4301810556108875 961.28751414450596251]T。(55)
substituting the expressions (31), (32), (42) and (43) into the expressions (7) and (8) can obtain the point m31,m32,n31,n32The result of the homogeneous coordinate matrix of (a) is as follows:
m31=[659.4095102552425942 299.59691694601320931]T,(56)
m32=[1148.9010156011377148 592.27862352564613951]T,(57)
n31=[482.8067068929873926 394.20648754828982871]T,(58)
n32=[991.3482004413441472 830.02747579632330141]T。(59)
from the formulae (36), (37) and (38), we can easily obtain the intersection point e11,e12The results are as follows:
e11=[1120.1841542350548479 1860.55726843202455711]T,(60)
e12=[1120.1904611046218178 1916.05772061487232341]T。(61)
from the formulae (39), (40) and (41), we can easily obtain the intersection point e21,e22The results are as follows:
e21=[1463.4968400320069576 1745.49383326770225721]T,(62)
e22=[1048.1492373459368536 920.31261834519921191]T。(63)
from the formulae (42), (43) and (44), we can easily obtain the intersection point e31,e32The results are as follows:
e31=[853.992796607284731 415.9441215438644691]T,(64)
e32=[674.1267668088423761 558.16812812634088911]T。(65)
by substituting the expressions (50) and (60), (49) and (61) into the expressions (16) and (17), respectively, a straight line u can be obtained11,v11The result of the homogeneous coordinate matrix of (a) is as follows:
u11=[0.0000762123717178 -0.00056646120841711]T,(66)
v11=[0.0000483693633997 -0.00056659508004241]T。(67)
by substituting the expressions (54) and (62), (53) and (63) into the expressions (16) and (17), respectively, a straight line u can be obtained21,v21The result of the homogeneous coordinate matrix of (a) is as follows:
u21=[-0.0007724041072318 -0.00020689189769491]T,(68)
v21=[-0.0004788561528626 -0.00017141024949681]T。(69)
by substituting expressions (58) and (64), (57) and (65) into expressions (16) and (17), respectively, a straight line u can be obtained31,v31Is prepared fromSecondary coordinate matrix, the results are as follows:
u31=[-0.0015567663119650 0.00008860742502071]T,(70)
v31=[-0.0013966087241317 0.00046326845387831]T。(71)
by substituting the expressions (66) and (67) into the expression (18), the vanishing point v can be obtained12∞The result of the homogeneous coordinate matrix of (a) is as follows:
v12∞=[-8.4824509396292739 1764.20471066045638501]T。(72)
by substituting the expressions (68) and (69) into the expression (18), the vanishing point v can be obtained22∞The result of the homogeneous coordinate matrix of (a) is as follows:
v22∞=[1064.6669826047116202 8808.23836265052159431]T。(73)
by substituting the expressions (70) and (71) into the expression (18), the vanishing point v can be obtained32∞The result of the homogeneous coordinate matrix of (a) is as follows:
v32∞=[627.0993637878117397 -268.06823688688041321]T。(74)
when the formulas (45) and (72) are respectively substituted into the formula (22), the vanishing line l can be obtained1∞The result of the homogeneous coordinate matrix of (a) is as follows: l1∞=[-0.0000000000000000299 -0.00056682764418281]T。(75)
When the formulas (46) and (73) are respectively substituted into the formula (22), the vanishing line l can be obtained2∞The result of the homogeneous coordinate matrix of (a) is as follows: l2∞=[0.0009383786284404 -0.00000010663393501]T。(76)
When the formulas (47) and (74) are respectively substituted into the formula (22), the vanishing line l can be obtained3∞The result of the homogeneous coordinate matrix of (a) is as follows: l3∞=[0.0000000000000000393 0.00373039346851821]T。(77)
S3: and determining the image of the circular point according to the vanishing line.
In the above step, the known plane pi1Upper vanishing line l1∞Then, the expressions (27) and (75) are substituted into the expressions (23), (24) and (25) to obtain c11Image of a circular point on I1And J1The results are as follows:
I1=[320.17320507+1600.00000000i 1764.20471066-0.000000000084i1]T,(78)
J1=[320.17320507-1600.00000000i 1764.20471066+0.000000000084i1]T。(79)
known plane pi1Upper vanishing line l2∞Substituting the expressions (29) and (76) into the expressions (23), (24) and (25) to obtain c21Image of a circular point on I2And J2The results are as follows:
I2=[-1065.64064605-0.20000000002i 240.00000000001-1760.00000000i1]T,(80)
J2=[-1065.64064605+0.20000000002i 240.00000000001+1760.00000000i1]T。(81)
known plane pi1Upper vanishing line l3∞C can be obtained by substituting the formulae (31) and (77) into the formulae (23), (24) and (25)31Image of a circular point on I3And J3The results are as follows:
I3=[319.94226497+923.76043070i -268.06823688-0.0000000000097i1]T,(82)
J3=[319.94226497-923.76043070i -268.06823688+0.0000000000097i1]T。(83)
s4: and calculating the intrinsic parameters of the camera according to the images of the circular points.
In the above step, (78-83) is substituted into (26) to obtain a linear equation set of ω elements, and the linear equation set is solved by SVD to obtain a coefficient matrix of ω. The results are as follows:
Figure BDA0002358080000000141
finally, K is obtained by performing Cholesky decomposition and inversion on ω in (84), and the results are as follows:
Figure BDA0002358080000000142
wherein the aspect ratio rcK (1,1)/K (2,2) (K (1,1) denotes the element of the 1 st row and 1 st column of the matrix K, and K (2,2) denotes the element of the 2 nd row and 2 nd column of the matrix K), so the 5 intrinsic parameters of the pinhole camera are: r isc=0.9090909090909199,fc=880.0000000006186837,s=0.0999999994974979,u0=319.9999999997619397,v0=239.9999999990701837。
The target of the invention is simple to manufacture, and only two circles with the same radius are needed; the physical scale of the target is not required, and the coordinates of the circle center under a world coordinate system and the radius of the circle do not need to be known; the image boundary points of the target can be almost completely extracted, so that the accuracy of curve fitting can be improved, and the calibration accuracy is improved; the method is a linear algorithm, is simple to calculate, and can finish calibration only by decomposing the feature value of the image square range.
The invention is not limited to the foregoing embodiments. The invention extends to any novel feature or any novel combination of features disclosed in this specification and any novel method or process steps or any novel combination of features disclosed.

Claims (5)

1. A method for calibrating camera intrinsic parameters based on the properties of two separating circles with the same radius is characterized by comprising the following steps: fitting a target projection equation; estimating a vanishing line according to an equation; determining the image of the circular point according to the vanishing line; and calculating the intrinsic parameters of the camera according to the images of the circular points.
2. The method for calibrating camera intrinsic parameters based on the properties of two separating circles with the same radius as in claim 1, wherein the fitting target projection equation is an equation for extracting the pixel coordinates of the Edge points of the target image by using an Edge function in a Matlab program and fitting the extracted pixel coordinates to obtain the circle image by using a least square method.
3. The method for calibrating camera intrinsic parameters based on the properties of two separate circles of the same radius according to claim 1, wherein the method for estimating vanishing linesComprises the following steps: with two separating circles C of the same radius in space1And C2Is a calibration object; if the order is OcThe intrinsic parameter matrix of the camera with the optical center is
Figure FDA0002358079990000011
Wherein r iscIs the aspect ratio, fcIs the effective focal length, s is the tilt factor, [ u [ ]0v01]TIs in the form of a homogeneous coordinate matrix of a principal point p of the camera, where rc,fc,u0,v0S is 5 intrinsic parameters of the camera; then C is calculated by eigenvalue decomposition1 *And C2 *Three generalized eigenvectors LkWhere k is 1,2,3, which represent the circle C1And C2And two of the sides L of the common self-polar triangle1And L2Is parallel and perpendicular to the other side L3(ii) a From the nature of the circle, the straight line L1And the circle C1With a real point of intersection M1And M2And the circle C2Only the point of the complex intersection; for the same reason, straight line L2And the circle C2With a real point of intersection N1And N2And the circle C1Only the point of the complex intersection; let a straight line L1And a straight line L3Intersect at E1Straight line L2And a straight line L3Intersect at E2Then point E is connected1And N1Form a straight line U1Is connected to E2And M2Form a straight line U1Is connected to E2And M1Form a straight line U2Connecting point E1And N2Form a straight line V2(ii) a According to the geometric properties of an isosceles triangle and a circle with the same radius, the other group of parallel straight lines U1,V1Or U2,V2Can also be obtained; two groups of parallel straight lines determine the infinite straight line L on the plane(ii) a Extracting pixel coordinates of Edge points of the image target image by using an Edge function in Matlab, and fitting by using a least square method to obtain a corresponding quadratic curve equation; by cniA coefficient matrix representing the ith circular image in the nth image, wherein n is 1,2,3, i is 1,2; equation of a circle cniCan be represented by a homography matrix Hn=K[rn1rn2Tn]Equation C with circleiDetermination, i.e. of the relation λcnicni=Hn -TCiHn -1Wherein λ iscniIs a non-zero scale factor, rn1And rn2Are respectively a rotation matrix RnFirst and second columns of (D), TnIs a translation vector; taking two circular image equations c on the nth perspective image planen1,cn2Then matrix pair (c)n1 *,cn2 *) Is equivalent to the matrix cn2cn1 -1By eigenvalue decomposition, matrix cn2cn1 -1Characteristic vector l ofnkCan be obtained, they represent LkThe nth image of (1); thus, the vanishing point v is knownn1∞Can be defined by a straight line ln1And ln2Determination, i.e. λnv1vn1∞=ln1×ln2Wherein λ isnv1A non-zero scale factor, where x represents the cross product; if a straight line ln1And the quadratic curve cn1Intersect at two points mn1And mn2And a straight line ln3Intersect at en1(ii) a Thus, it can be seen that the straight line ln2And the quadratic curve cn2Intersect at two points nn1And nn2And a straight line ln3Intersect at en2(ii) a Through the connecting point en1And nn1Form a straight line un1Connecting point en2And mn2Form a straight line vn1Then straight line un1And vn1Vanishing point v ofn2∞Can be obtained, i.e. lambdanv2vn2∞=un1×vn1Wherein λ isnv2A non-zero scale factor; thus, passing through point mn1And en2Straight line u ofn2And pass through point en1And nn2Straight line v ofn2Intersect at vanishing point vn3∞I.e. λnv3vn3∞=un2×vn2Wherein λ isnv3A non-zero scale factor; connecting two disappearsPoint vn1∞And vn2∞The vanishing line l can be obtainedn∞I.e. λnlln∞=vn1∞×vn2∞Wherein λ isnlA non-zero scale factor.
4. The method for calibrating camera intrinsic parameters based on the properties of two separate circles with the same radius as in claim 1, wherein the method for determining the image of the circle point comprises the following steps: on the nth perspective image, the plane pi is known1Upper vanishing line ln∞Then l isn∞And the circle image cn1Intersect at cn1Image of a circular point on InAnd JnThat is to say have
Figure FDA0002358079990000021
5. The method for calibrating the camera intrinsic parameters based on the properties of the two separating circles with the same radius as the claim 1, wherein the method for calculating the camera intrinsic parameters comprises the following steps: from the image I of the circle pointn,JnThe linear constraint on the image ω of the absolute quadratic curve (n ═ 1,2,3) yields ω, i.e.:
Figure FDA0002358079990000022
wherein Re, Im represent the real and imaginary parts of the complex number, respectively; and performing Cholesky decomposition on omega and then inverting to obtain an internal parameter matrix K, namely obtaining 5 internal parameters of the camera.
CN202010013732.XA 2020-01-07 2020-01-07 Method for calibrating camera internal parameters based on properties of two separation circles with same radius Pending CN111223149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010013732.XA CN111223149A (en) 2020-01-07 2020-01-07 Method for calibrating camera internal parameters based on properties of two separation circles with same radius

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010013732.XA CN111223149A (en) 2020-01-07 2020-01-07 Method for calibrating camera internal parameters based on properties of two separation circles with same radius

Publications (1)

Publication Number Publication Date
CN111223149A true CN111223149A (en) 2020-06-02

Family

ID=70825981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010013732.XA Pending CN111223149A (en) 2020-01-07 2020-01-07 Method for calibrating camera internal parameters based on properties of two separation circles with same radius

Country Status (1)

Country Link
CN (1) CN111223149A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113119108A (en) * 2021-03-15 2021-07-16 广州大学 Grabbing method, system and device of two-finger mechanical arm and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FENGLI YANG等: "Two Separate Circles With Same-Radius: Projective Geometric Properties and Applicability in Camera Calibration", 《IEEE ACCESS》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113119108A (en) * 2021-03-15 2021-07-16 广州大学 Grabbing method, system and device of two-finger mechanical arm and storage medium

Similar Documents

Publication Publication Date Title
Claus et al. A rational function lens distortion model for general cameras
Puig et al. Calibration of central catadioptric cameras using a DLT-like approach
Zhou A new minimal solution for the extrinsic calibration of a 2D LIDAR and a camera using three plane-line correspondences
Takahashi et al. A new mirror-based extrinsic camera calibration using an orthogonality constraint
Thirthala et al. Multi-view geometry of 1d radial cameras and its application to omnidirectional camera calibration
Chatterjee et al. Algorithms for coplanar camera calibration
CN111080715B (en) Method for calibrating intrinsic parameters of camera by polar line properties of three spheres and infinite points
CN111223148B (en) Method for calibrating camera internal parameters based on same circle and orthogonal properties
CN113744340A (en) Calibrating cameras with non-central camera models of axial viewpoint offset and computing point projections
Zhu et al. Camera calibration from very few images based on soft constraint optimization
Takahashi et al. Mirror-based camera pose estimation using an orthogonality constraint
CN108921904B (en) Method for calibrating pinhole camera by using properties of single ball and asymptote
Cao et al. Camera calibration using symmetric objects
CN111223149A (en) Method for calibrating camera internal parameters based on properties of two separation circles with same radius
Ramalingam et al. Theory and calibration for axial cameras
Yu et al. Sample balancing of curves for lens distortion modeling and decoupled camera calibration
CN109035342B (en) Method for calibrating parabolic catadioptric camera by using one straight line and circular ring point polar line
Pan et al. Camera pose estimation using implicit distortion models
CN113345033B (en) Method and system for calibrating internal parameters of central catadioptric camera
CN113048985B (en) Camera relative motion estimation method under known relative rotation angle condition
CN110930461B (en) Method, storage medium and system for solving parameters in pinhole camera by using target
CN111429522B (en) Method and system for calibrating camera by using common pole polar line property of coplanar circles
CN109191528B (en) Method for calibrating pinhole camera by using properties of spherical image and circular ring point polar line
CN113610926A (en) Camera calibration method based on vanishing point orthogonality
CN109272558B (en) Method for calibrating pinhole camera by using common free-pole triangle and circular ring points of separating circles

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200602