A multi-camera calibration method based on spherical calibration blocks

Through a multi-camera calibration method based on spherical calibration blocks, using random path transformation and spherical projection optimization combined with beam adjustment method, the limitations of existing multi-camera calibration methods in accuracy and efficiency are solved, and fast, high-precision multi-camera calibration is achieved. Camera system calibration reduces the risk of feature matching errors and nonlinear optimization falling into local minima.

CN114581526BActive Publication Date: 2024-08-27SHENYANG INST OF AUTOMATION - CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011392491.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-02
Publication Date
2024-08-27
Estimated Expiration
2040-12-02

AI Technical Summary

Technical Problem

Existing multi-camera calibration methods have limitations in achieving high-precision and high-efficiency calibration. Especially for multi-camera systems where some cameras have a common field of view, multiple local calibrations and global coordinate unification are required, resulting in serious cumulative errors and time-consuming. , and the lattice method is sensitive to erroneous feature matching and easily falls into local minima.

Method used

Using a method based on spherical calibration blocks, the calibration blocks are made from point-like coding blocks and spheres, and a random path conversion algorithm is used for global unification. Spherical projection optimization and beam adjustment parameter optimization are performed, and the farthest point distance of the template point is used as a scale. Factor to achieve calibration of camera pose and space points.

Benefits of technology

It achieves fast and high-precision calibration of multi-camera systems, reduces the possibility of feature point matching errors, improves initial position accuracy, reduces the possibility of nonlinear optimization falling into local minima, simplifies the calibration process, and saves time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114581526B
    Figure CN114581526B
Patent Text Reader

Abstract

The present invention relates to a multi-camera calibration method based on a spherical calibration block, comprising the following steps: using point-shaped coding points and a sphere to make a calibration block, moving the calibration block multiple times and collecting images simultaneously; using a layered reconstruction method to preliminarily calculate the position and position of local cameras with a common field of view and the coordinates of spatial points; specifying a root camera, and randomly traversing the camera orientation path according to local parameter estimation to complete global unified optimization; using a virtual spherical projection method to correct and optimize world space points; using a bundle adjustment method to optimize the camera position and position and spatial points in a global coordinate system as a whole; establishing a scale factor to scale the global camera position and position and spatial points. The present invention can achieve high-precision and rapid calibration of a multi-camera system, and the calibration block is simple to make, and the calibration method has high versatility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of camera calibration, and in particular to a multi-camera calibration method based on a spherical calibration block. Background Art

[0002] Computer vision is increasingly used in industrial inspection, target positioning, 3D reconstruction and other fields due to its non-contact and multi-point simultaneous measurement features. Camera calibration is a key link in visual measurement, and the quality of calibration parameters directly affects the accuracy of reconstruction measurement. In order to meet the current industrial demand for large field of view measurement, solutions using multi-camera measurement are more common. How to achieve high-precision and high-efficiency calibration in multi-camera systems has become a research hotspot this year.

[0003] At present, the calibration methods of multiple cameras can be mainly divided into the calibration block method and the dot matrix method. The calibration block method needs to design a calibration block with precise feature point positions according to the distribution characteristics and number of cameras, and obtain the intrinsic and extrinsic parameters of the camera by establishing the collinear equations of the corresponding feature points. This method is only suitable for multi-camera systems where all cameras have a common field of view or are distributed in a specific form. For multi-camera systems where some cameras have a common field of view, multiple local calibrations and global coordinate unification are required, which will produce cumulative errors and be time-consuming. The dot matrix method calibration requires the creation of a virtual dot matrix or a physical dot matrix, and the camera pose and spatial point coordinates are estimated based on the precisely matched feature points to achieve the calibration of the intrinsic and extrinsic parameters of multiple cameras. However, the dot matrix method is often sensitive to incorrect feature matching, and the subsequent nonlinear optimization is also prone to fall into local minima.

[0004] In summary, the existing multi-camera calibration methods have some limitations and disadvantages, so it is necessary to propose a new multi-camera calibration method. Summary of the invention

[0005] The embodiment of the present invention aims to propose a multi-camera calibration method based on a spherical calibration block, preliminarily calculates the pose of local cameras with a common field of view and the coordinates of spatial points, adopts a random path transformation algorithm for global unification, optimizes the spherical projection of spatial points, and uses a bundle adjustment parameter optimization algorithm for overall optimization to complete multi-camera calibration.

[0006] The technical solution adopted by the present invention to achieve the above-mentioned purpose is: a multi-camera calibration method based on a spherical calibration block, comprising the following steps:

[0007] Use dot-shaped coding blocks and spheres to make calibration blocks;

[0008] The calibration block is moved according to the common field of view of the camera and the image is collected to preliminarily calculate the position and coordinates of the local camera and the space point in the common field of view area;

[0009] According to the local parameter estimation and random transformation algorithm, the path is traversed to orient the camera and the local pose is transformed into the global pose. The spatial points of the calibration blocks at different positions are used for spherical fitting and the projection of the spatial points is optimized according to the projection intersection.

[0010] The bundle adjustment method is used to optimize the intrinsic parameters, extrinsic parameters and spatial points of the multi-camera system;

[0011] The farthest point distance in the template point is used as the scale factor to scale the global camera pose and space points;

[0012] The intrinsic parameters obtained by the bundle adjustment method, the camera pose and spatial points after scale change are output as the results of this method.

[0013] The method of using the dot-shaped coding block and the sphere to make the calibration block comprises:

[0014] A sphere is selected as a carrier, and several dot-shaped coding blocks are randomly pasted on the sphere; each dot-shaped coding block provides several dots as feature points for calibration, points A1, A2, A3, A4, and A5 are template points of the coding points and their positions remain unchanged, and M1, M2, and M3 are variable points of the coding points.

[0015] The method of moving the calibration block and collecting images according to the common field of view of the camera, and performing preliminary calculation on the position and coordinates of the spatial points of the local camera having the common field of view area comprises:

[0016] 1) After collecting images, select three cameras to combine, decode the code points and match the feature points of the images collected by the cameras in each combination, and select the cameras with feature points lower than the matching point threshold Th. pt The coding point is decoded to identify the template point in the coding area and the position coordinates of the coding point as feature points for matching;

[0017] 2) The selected camera combination is used for local pose and spatial point estimation:

[0018] a. Assume X n is a feature point in the common field of view of the camera. Without considering the distortion coefficient, the projection equation of the n feature points under the three cameras is:

[0019]

[0020] Among them, μ ni Represents X n The projected depth under the i-th camera; p ni Represents Xn The projection point under the i-th camera; S i represents the projection matrix of the i-th camera, which is composed of the intrinsic parameters K of the i-th camera i and external parameters Q i Composition; W∈R 9×n is the measurement matrix, S∈R 9×4 is the estimated projection matrix of the three cameras; X∈R 4×n is the estimated spatial point;

[0021] b. Restore S and X from the projective coordinate system to the Euclidean coordinate system, and combine with singular value decomposition to obtain the projection matrix and spatial points in the Euclidean space:

[0022]

[0023] Among them, S Ei (i=1,2,3) is the projection matrix in Euclidean space, and the external parameters in the projection matrix are represented by Q Ei , X En is a spatial point in Euclidean space.

[0024] The local pose Q of the i-th camera relative to the j-th camera Eij :

[0025]

[0026] Among them, Q Ei (i=1,2,3) represents the external parameters in the i-th camera projection matrix, Q Ej (j=1,2,3) represents the extrinsic parameters in the j-th camera projection matrix.

[0027] The method of traversing the path to perform camera orientation according to the local parameter estimation and random transformation algorithm and converting the local pose to the global pose includes:

[0028] In the process of local pose and spatial point estimation, a root camera is randomly selected, and the camera that completes feature point matching in the combination of the root camera is considered to be oriented. The oriented camera is no longer considered in the next parameter estimation. This is done until all cameras are traversed to obtain the segmented path conversion relationship between cameras oriented according to the combination.

[0029] For the segmented path conversion relationship, the camera posture after local conversion to global, that is, the system external parameters, is calculated respectively.

[0030] The spherical fitting is performed using the spatial points of the calibration blocks at different positions, and the projection optimization of the spatial points according to the projection intersection includes:

[0031] In the world coordinate system, the space point X of the current position calibration block is EiPerform fitting to obtain a virtual sphere;

[0032] Traverse all the spatial points of the current calibration block, project them onto the virtual sphere along the radial direction, and use the projection points on the same hemisphere as the corrected spatial point X Ei '.

[0033] The bundle adjustment parameter optimization multi-camera system obtains the optimized calibration parameters: the internal parameters K i ', external parameter Q Ei ' and spatial point X Ei ”.

[0034] The use of the farthest point distance in the template points as a scale factor to scale the global camera pose and space points includes:

[0035] The two points (points A1 and A5) with the farthest distance among the point-shaped coding points are used as the scale factor to perform scale transformation on the global camera and space points. The scale factor is:

[0036]

[0037] in, represents the coordinates of point A1 in the i-th group of point-coded points after optimization by bundle adjustment method, It represents the coordinate of A5 in the i-th group of point-coded points after the optimization of bundle adjustment method, and D is the theoretical distance between A1 and A5.

[0038] The camera pose and space point coordinates after scale change are:

[0039]

[0040]

[0041] Among them, Q Ei ' represents the position of the i-th camera after the bundle adjustment method is optimized; represents the position of the camera after scale transformation; X Ei ” represents the coordinates of the space point after optimization by bundle adjustment; Represents the coordinates of the spatial point after scale transformation.

[0042] The present invention has the following beneficial effects and advantages:

[0043] 1. The method of the present invention provides a new calibration method based on a spherical calibration block for a multi-camera system. The spherical calibration block is easy to make. It can be made by randomly pasting dot-shaped coding points of the same model and the same batch on the sphere. There is no strict requirement on the processing accuracy of the sphere.

[0044] 2. The calibration process of the present invention is fast and time-saving. Only one or a few calibration blocks need to be placed to achieve the calibration of a multi-camera system.

[0045] 3. The present invention provides point features through point-shaped coding points, thereby reducing the possibility of feature point matching errors; the spatial point coordinates are optimized before nonlinear optimization, thereby improving the initial position accuracy of the spatial points and reducing the possibility of nonlinear optimization falling into a local minimum.

[0046] 4. The present invention uses the distance between the two farthest points on the point-shaped coding points as the scale information, thereby realizing the calibration of the scale information between cameras. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A multi-camera calibration method based on a spherical calibration block is provided by the present invention;

[0048] Figure 2 A random path global optimization method for a multi-camera calibration method based on a spherical calibration block provided by the present invention;

[0049] Figure 3 An example diagram of coding points of a multi-camera calibration method based on a spherical calibration block provided by the present invention;

[0050] Figure 4 This is an example diagram of random path transformation of a multi-camera calibration method based on a spherical calibration block provided by the present invention. DETAILED DESCRIPTION

[0051] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation method of the present invention is described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the invention, so the present invention is not limited by the specific implementation disclosed below.

[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0053] like Figure 1-Figure 4 As shown, a multi-camera calibration method based on a spherical calibration block of the present invention comprises the following steps:

[0054] 1. Select a standard sphere with low surface reflectivity as a carrier, and randomly paste the dot-shaped coding blocks on the standard sphere to complete the calibration block production. Each dot-shaped coding block can provide 8 dots as feature points for calibration. Figure 3 , points A1, A2, A3, A4, and A5 are template points of the coding block (i.e., position-invariant points), and M1, M2, and M3 are position-variable points of the coding point.

[0055] 2. Move the calibration block t times (t = 1, 2, ..., k), control the camera related to each field of view to take pictures, and ensure that the calibration block traverses the field of view of each camera; before this, the following steps are also included:

[0056] Adjust the aperture, focal length, and exposure time of the camera lens to ensure high-quality imaging in this environment;

[0057] 3. Select any three cameras to combine, perform point coding block decoding and feature point matching on the images collected by the cameras in each combination, and then determine the number of matching feature points between each group of cameras. pt The point-shaped coding block is decoded to identify the template point position and the coding point position in the coding point area through the captured image as the feature point position for matching between cameras.

[0058] The selected camera combination is used to estimate the local pose and spatial point. The local pose is the camera coordinates, and the spatial point is the coordinate of the feature point in the world coordinate system. Assume that X n is a feature point in the common field of view of the camera. Without considering the distortion coefficient, the projection equation of this point onto the i-th image plane is:

[0059]

[0060] Among them, μ ni represents the projection depth of the nth feature point under the i-th camera; p ni Represents X n The projection point under the i-th camera; K i represents the intrinsic parameter matrix of the i-th (i∈{1,2,3}) camera; [r i ,t i ] represents the rotation vector r i and the translation vector t i The external parameter matrix composed of i represents the projection matrix of the i-th camera. n The projected depth μ under the i-th camera ni and the projected depth μ under the jth (j∈{1,2,3} and i≠j) camera nj The following relationship exists:

[0061]

[0062] Among them, p ni Represents X n The projection point under the i-th camera, p nj Represents X n The projection point under the jth camera, e ij represents the pole of the i-th camera on the j-th image plane, F ij Let X represent the fundamental matrix between the i-th camera and the j-th camera. n The projection depth under the jth camera is 1, and the projection depth of the point under the other two cameras can be obtained according to formula (2).

[0063] According to formula (1) and formula (2), the projection equation of n feature points under three cameras is:

[0064]

[0065] Where W∈R 9×n is the measurement matrix, S∈R 9×4 is the estimated projection matrix of the three cameras; X∈R 4×n is the estimated spatial point.

[0066] To restore S and X from the projective coordinate system to the Euclidean coordinate system, the conditions of the Euclidean transformation must be met:

[0067]

[0068] Among them, H is the decomposition matrix in the calculation process, α i (i=1,2,3) is any non-zero real number, K i is the approximate intrinsic parameter of the i-th camera. According to formulas (3) and (4), the singular value decomposition can be performed to obtain the projection matrix and space point in Euclidean space:

[0069]

[0070] Among them, S Ei (i=1,2,3) is the projection matrix in Euclidean space, and the external parameters in the projection matrix are represented by Q Ei , X En is a spatial point in Euclidean space;

[0071] According to the result of formula (5), the position Q of the i-th camera relative to the j-th camera is Eij It can be calculated as:

[0072]

[0073] Among them, QEi (i=1,2,3) represents the external parameters in the i-th camera projection matrix, Q Ej (j=1,2,3) represents the extrinsic parameters in the j-th camera projection matrix.

[0074] 4. In the process of local pose and spatial point estimation, a root camera is randomly selected, and the camera that has completed feature point matching in the combination where the root camera is located is considered to be oriented. The oriented camera is no longer considered in the next parameter estimation. This is done until all cameras are traversed to obtain the segmented path conversion relationship between cameras oriented according to the combination.

[0075] In the process of obtaining the segmented path conversion relationship, if there is a camera that cannot establish an orientation relationship, change the root camera and repeat the above orientation process until all cameras establish a path conversion relationship;

[0076] For the segmented path conversion relationship, the camera posture after local conversion to global conversion, that is, the system external parameters, is calculated respectively;

[0077] Assume that one of the transformation paths is {i, j, ..., y, z}, where i, j, ..., y, z are camera numbers and z is the root camera. Calculate the global pose of camera i:

[0078] Q iz =Q ij …Q yz (7)

[0079] 5. For each position P t (t=1,2,…,k) The spatial points on the calibration block are spherically fitted to obtain t virtual spherical surfaces. For each virtual spherical surface, when there are n successfully reconstructed spatial points in the world coordinate system, the fitting equation of the virtual spherical surface can be expressed as:

[0080]

[0081] Among them, (a, b, c) are the coordinates of the center of the virtual sphere, r is the radius of the virtual sphere, (x i ,y i , z i )(i=1,2,n) are the coordinates of the spherical point, A is the coefficient matrix, Y is the observation vector, and X is the parameter to be estimated. The least squares solution is used to calculate the center of the sphere [a,b,c].

[0082] The virtual spherical equation of the current spherical calibration block is:

[0083] x 2 +y 2 +z 2 =2xa+2yb+2zc+r 2 -a 2 -b2 -c 2 (9)

[0084] Traverse all the spatial points of the current calibration block and project them onto the virtual sphere along the radial direction. Assume that the coordinates of the spatial point are (a 1 , b 1 , c 1 ), then the equation of the line connecting the spatial point and the sphere center coordinates is:

[0085]

[0086] The two intersection points P can be calculated by formulas (9) and (10): m and P n .

[0087] Update space point: if ||X Ei –P m ||<||X Ei –P n ||, let X Ei '=P m Otherwise, X Ei '=P n .

[0088] 6. Use the bundle adjustment method to obtain the optimized global camera internal parameters K i ', external parameter Q Ei ' and spatial point X Ei ", the objective function is:

[0089]

[0090] Among them, K i and T i are the intrinsic and extrinsic parameters of the i-th camera, respectively, and p tni P t The projection point of the nth feature point on the calibration block on the i-th camera image plane, p tni 'For P t The back-projection point of the nth feature point on the calibration block on the i-th camera image plane. tn When the image plane of the i-th camera is imaged, α tni =1, otherwise take α tni =0.

[0091] 7. Select the two feature points (point A1 and point A5) with the farthest distance among the point-shaped coding points, use the distance between the two feature points as the scale factor, and scale the optimized camera position and the spatial points on the calibration block. The scale factor is expressed as:

[0092]

[0093] in, represents the coordinates of point A1 in the i-th group of point-coded points after optimization by bundle adjustment method, It represents the coordinate of A5 in the i-th group of point-coded points after the optimization of bundle adjustment method, and D is the theoretical distance between A1 and A5.

[0094] The camera pose and space point coordinates after scale change are:

[0095]

[0096]

[0097] Among them, Q Ei ' represents the position of the i-th camera after the bundle adjustment method is optimized; represents the position of the camera after scale transformation; X Ei ” represents the coordinates of the space point after optimization by bundle adjustment; Represents the coordinates of the spatial point after scale transformation.

[0098] The camera pose after scale transformation is the final extrinsic parameter of multi-camera calibration. At this point, the parameter calibration of the multi-camera system is completed.

[0099] like Figure 4 As shown in the figure, the system has 10 cameras, every 8 cameras have a common field of view, and camera 5 is the root camera. The lines between cameras represent all paths before random transformation, the solid lines represent the final segmented path relationship, and the dotted lines represent the discarded path relationship. The final segmented path transformation relationship is: 1->5, 2->5, 3->5, 4->5, 6->5, 7->5, 8->5, 9->5, 10->4->5.

[0100] In summary, the method of the present invention provides a multi-camera calibration method based on a spherical calibration block, which has the characteristics of high precision, high speed, and good versatility, can meet the needs of most multi-camera systems, and has broad application prospects.

Claims

1. A multi-camera calibration method based on a spherical calibration block, characterized in that: The following steps are involved: Use dot-shaped coding blocks and spheres to make calibration blocks; includes: A sphere is selected as a carrier, and several dot-shaped coding blocks are randomly pasted on the sphere; each dot-shaped coding block provides several dots as feature points for calibration, points A1, A2, A3, A4, and A5 are template points of coding points and their positions remain unchanged, and M1, M2, and M3 are variable points of coding points; The calibration block is moved according to the common field of view of the camera and the image is collected to preliminarily calculate the position and coordinates of the local camera and the space point in the common field of view area; According to the local parameter estimation and random transformation algorithm, the path is traversed to orient the camera and the local pose is transformed into the global pose. The spatial points of the calibration blocks at different positions are used for spherical fitting and the projection of the spatial points is optimized according to the projection intersection. The bundle adjustment method is used to optimize the intrinsic parameters, extrinsic parameters and spatial points of the multi-camera system; The farthest point distance in the template point is used as the scale factor to scale the global camera pose and space points; The intrinsic parameters obtained by the bundle adjustment method, the camera pose and spatial points after scale change are output as the results of this method.

2. The multi-camera calibration method based on a spherical calibration block according to claim 1, characterized in that: The method of moving the calibration block and collecting images according to the common field of view of the camera, and performing preliminary calculation on the position and coordinates of the spatial points of the local camera having the common field of view area comprises: 1) After collecting images, select three cameras to combine, decode the code points and match the feature points of the images collected by the cameras in each combination, and select the cameras with feature points lower than the matching point threshold Th. pt The coding point is decoded to identify the template point in the coding area and the position coordinates of the coding point as feature points for matching; 2) The selected camera combination is used for local pose and spatial point estimation: a. Assume X n is a feature point in the common field of view of the camera. Without considering the distortion coefficient, the projection equation of the n feature points under the three cameras is: Among them, μ ni Represents X n The projected depth under the i-th camera; p ni Represents X n The projection point under the i-th camera; S i represents the projection matrix of the i-th camera, which is composed of the intrinsic parameters K of the i-th camera i and external parameters Q i Composition; W∈R 9×n is the measurement matrix, S∈R 9 ×4 is the estimated projection matrix of the three cameras; X∈R 4×n is the estimated spatial point; b. Restore S and X from the projective coordinate system to the Euclidean coordinate system, and combine with singular value decomposition to obtain the projection matrix and spatial points in the Euclidean space: Among them, S Ei (i=1,2,3) is the projection matrix in Euclidean space, and the external parameters in the projection matrix are represented by Q Ei , X En is a spatial point in Euclidean space; The local pose Q of the i-th camera relative to the j-th camera Eij : Among them, Q Ei (i=1,2,3) represents the external parameters in the i-th camera projection matrix, Q Ej (j=1,2,3) represents the extrinsic parameters in the j-th camera projection matrix.

3. The multi-camera calibration method based on a spherical calibration block according to claim 1, characterized in that: The method of traversing the path to perform camera orientation according to the local parameter estimation and random transformation algorithm and converting the local pose to the global pose includes: In the process of local pose and spatial point estimation, a root camera is randomly selected, and the camera that completes feature point matching in the combination of the root camera is considered to be oriented. The oriented camera is no longer considered in the next parameter estimation. This is done until all cameras are traversed to obtain the segmented path conversion relationship between cameras oriented according to the combination. For the segmented path conversion relationship, the camera posture after local conversion to global, that is, the system external parameters, is calculated respectively.

4. The multi-camera calibration method based on a spherical calibration block according to claim 1, characterized in that: The spherical fitting is performed using the spatial points of the calibration blocks at different positions, and the projection optimization of the spatial points according to the projection intersection includes: In the world coordinate system, the space point X of the current position calibration block is Ei Perform fitting to obtain a virtual sphere; Traverse all the spatial points of the current calibration block, project them onto the virtual sphere along the radial direction, and use the projection points on the same hemisphere as the corrected spatial point X Ei '.

5. The multi-camera calibration method based on a spherical calibration block according to claim 1, characterized in that: The optimization of the intrinsic parameters, extrinsic parameters and spatial points of the multi-camera system by using the bundle adjustment method is as follows: the multi-camera system is optimized by using the bundle adjustment method to obtain the optimized calibration parameters: the intrinsic parameters K i ', external parameter Q Ei ' and spatial point X Ei ”.

6. The multi-camera calibration method based on a spherical calibration block according to claim 1, characterized in that: The use of the farthest point distance in the template points as a scale factor to scale the global camera pose and space points includes: The two points A1 and A5, which are the farthest from each other among the point-shaped coding points, are used as scale factors to scale the global camera and space points. The scale factor is: in, represents the coordinates of point A1 in the i-th group of point-coded points after optimization by bundle adjustment method, represents the coordinate of A5 in the i-th group of point-shaped coded points after the bundle adjustment method is optimized, and D is the theoretical distance between A1 and A5; The camera pose and space point coordinates after scale change are: Among them, Q Ei ' represents the position of the i-th camera after the bundle adjustment method is optimized; represents the position of the camera after scale transformation; X Ei ” represents the coordinates of the space point after optimization by bundle adjustment; Represents the coordinates of the spatial point after scale transformation.