A method for calibrating a multi-lens panoramic camera combination
By placing a multi-lens panoramic camera on a two-dimensional turntable for rotating photography and calibrating in stages, the high cost and professional operation problems caused by relying on 3D control information in the existing technology are solved, and a high-precision, low-cost panoramic camera combination is achieved. Calibration, suitable for multi-lens panoramic camera applications.
Patent Information
- Application Number
- CN202110885803.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-03
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-08-03
AI Technical Summary
The existing multi-lens panoramic camera combination calibration method relies on high-precision 3D control information, resulting in high implementation costs and requiring professional operations, which limits its application.
A multi-lens panoramic camera is placed on a two-dimensional turntable for rotating photography, and the calibration process is divided into two stages: side-view camera rotation sequence image calibration and center camera multi-view geometric calibration. Through the combination of the checkerboard and the turntable coordinate system, Use adjustment optimization to solve the external parameters of the camera.
It achieves high-precision external parameter calibration of multi-lens panoramic cameras, reduces costs, simplifies operations, and gets rid of the dependence on 3D calibration fields. It is suitable for real-time environments, and the quality of the output panoramic video is better than traditional methods.
Smart Images

Figure CN113763480B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to a multi-lens panoramic camera combination calibration method. Background Art
[0002] As an effective means of monitoring, cameras have long played an irreplaceable role in social public security, management scheduling and production control. Multi-lens panoramic camera MPC (Multi-Head Panoramic Camera), or panoramic camera system OMS (Omnidirectional Multi-camera System), is composed of several physically independent traditional surveillance cameras with different viewing angles. It obtains a 180° (or 360°) field of view and high-resolution panoramic video with basically consistent directions through real-time splicing of sub-screens. The key is to accurately obtain the internal and external parameters of the MPC sub-camera to reproject its multi-channel output video onto a set sphere (or cylinder). It has broad market prospects in many fields such as security monitoring, virtual reality, and real-life map generation.
[0003] The existing MPC calibration process for obtaining the internal and external parameters of sub-cameras involves two parts: single camera calibration and combined calibration. MPC sub-cameras are generally traditional "pinhole" cameras. The former has been studied in depth, and the difficulty lies in how to obtain the relative external parameters between sub-cameras through combined calibration. In order to save hardware costs, MPC usually uses a small number of cameras and low-cost optical lenses to obtain a 180° or 360° viewing angle. The overlapping viewing angles of adjacent sub-cameras are small. The traditional MPC calibration process requires the establishment of a large indoor calibration field, or the combined use of small spatial measurement equipment and 2D reference objects to provide high-precision 3D control information for the absolute spatial position and posture solution of the MPC sub-camera, and then derive the relative external parameters between the sub-cameras. This calibration method that relies on 3D control information is not only costly to implement but also requires professional personnel to operate, which undoubtedly limits the development of MPC applications. Summary of the invention
[0004] The purpose of the present invention is to provide a multi-lens panoramic camera combination calibration method, aiming to solve the technical problem that the calibration method in the prior art that relies on 3D control information not only has high implementation cost but also requires professional personnel to operate, thus limiting the development of MPC applications.
[0005] To achieve the above object, the present invention adopts a multi-lens panoramic camera combination calibration method, which includes the following steps:
[0006] Place the MPC on a two-dimensional turntable to perform rotational photography and calibration of the chessboard;
[0007] The calibration process is divided into two consecutive stages. The former stage is the rotation sequence image calibration of the side camera, and the latter stage is the multi-view geometry calibration of the center camera.
[0008] The side view camera rotation sequence image calibration includes:
[0009] Combined with the chessboard and two-dimensional turntable coordinate system settings, a strict equation for rotational photography is established and based on it, the initial values of the external parameters of the side-view camera are given;
[0010] Then, the corner points of the chessboard image and the connection points between adjacent side-view cameras are used as observation values, and the external parameters of the side-view cameras and the chessboard external parameters are adjusted and optimized as a whole.
[0011] The central camera multi-view geometry calibration includes:
[0012] The origin of the two-dimensional turntable rotation coordinate system is translated to the geometric center of gravity of the photography center of all side-view cameras to establish the MPC space coordinate system;
[0013] Based on the MPC spatial coordinate system, the multi-view geometric relationship between the central camera and the side cameras and a large number of connection points obtained by rotational photography are used as observation values to implement bundle adjustment optimization solution for the external parameters of the central camera.
[0014] The step of placing the MPC on a two-dimensional turntable to perform rotational photography and calibration on the chessboard includes:
[0015] The MPC is placed on a computer-controlled two-dimensional turntable, the platform is rotated one circle at a fixed angle interval and the checkerboard pattern displayed on the LCD is photographed simultaneously to obtain a sequence of images, which are then calibrated.
[0016] The invention discloses a method for calibrating a combination of multi-lens panoramic cameras. The method places an MPC on a two-dimensional turntable to perform rotation photography of a chessboard and divides the calibration process into two stages: calibration of the rotation sequence image of a side-view camera. The strict equation for rotation photography is established in combination with the chessboard and turntable coordinate system settings, and the initial value of the extrinsic parameter of the side-view camera is given based on it. Then, the corner points of the chessboard image and the connection points between adjacent side-view cameras are used as observation values, and the extrinsic parameters of the side-view camera and the chessboard external parameters are adjusted and optimized as a whole; the center camera multi-view geometry calibration. The origin of the turntable rotation coordinate system is translated to the geometric center of gravity of the photography center of all side-view cameras to establish an MPC space coordinate system. Based on it, the multi-view geometric relationship between the center camera and the side-view camera and a large number of connection points obtained by rotation photography are used as observation values to implement the bundle method adjustment optimization solution for the extrinsic parameters of the center camera. The experimental results show that the method in this paper can achieve high-precision calibration of the extrinsic parameters of the MPC camera using only an ordinary two-dimensional CNC turntable and a single chessboard. It is low-cost, simple to operate, and has low requirements for the real-time environment. It successfully gets rid of the dependence on the 3D calibration field and has good application value. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 Schematic diagram of the MPC geometric structure of the present invention.
[0019] Figure 2 It is a schematic diagram of the MPC spherical panoramic imaging model of the present invention.
[0020] Figure 3 It is a flowchart of the steps of the multi-lens panoramic camera combination calibration method of the present invention.
[0021] Figure 4 It is a schematic diagram of MPC rotation photography of the present invention.
[0022] Figure 5 It is a physical schematic diagram of a five-lens panoramic camera and a numerically controlled 2D turntable of the present invention.
[0023] Figure 6 It is a schematic diagram of obtaining a PanoCam chessboard calibration image of the present invention.
[0024] Figure 7 It is a schematic diagram of the error between the set rotation angle and the calibration value of the turntable of the present invention.
[0025] Figure 8 It is a schematic diagram of the residual change of the PanoCam side-view camera rotation calibration of the present invention.
[0026] Fig. 9 It is a schematic diagram of the optimization calculation of the external parameters of the PanoCam central camera of the present invention.
[0027] Fig.10 Schematic diagram of the same-name image points of the center-side view camera when the turntable is stationary.
[0028] Fig.11 Schematic diagram of the comparison of PanoCam spherical panoramic video output under different calibration parameters. DETAILED DESCRIPTION
[0029] See also Figures 1 to 11 The present invention provides a multi-lens panoramic camera combination calibration method, comprising the following steps:
[0030] Place the MPC on a two-dimensional turntable to perform rotational photography and calibration of the chessboard;
[0031] The calibration process is divided into two consecutive stages. The former stage is the rotation sequence image calibration of the side camera, and the latter stage is the multi-view geometry calibration of the center camera.
[0032] The side view camera rotation sequence image calibration includes:
[0033] Combined with the chessboard and two-dimensional turntable coordinate system settings, a strict equation for rotational photography is established and based on it, the initial values of the external parameters of the side-view camera are given;
[0034] Then, the corner points of the chessboard image and the connection points between adjacent side-view cameras are used as observation values, and the external parameters of the side-view cameras and the chessboard external parameters are adjusted and optimized as a whole.
[0035] The central camera multi-view geometry calibration includes:
[0036] The origin of the two-dimensional turntable rotation coordinate system is translated to the geometric center of gravity of the photography center of all side-view cameras to establish the MPC space coordinate system;
[0037] Based on the MPC spatial coordinate system, the multi-view geometric relationship between the central camera and the side cameras and a large number of connection points obtained by rotational photography are used as observation values to implement bundle adjustment optimization solution for the external parameters of the central camera.
[0038] Placing the MPC on a two-dimensional turntable to perform rotational photography and calibration on the chessboard includes:
[0039] The MPC is placed on a computer-controlled two-dimensional turntable, the platform is rotated one circle at a fixed angle interval and the checkerboard pattern displayed on the LCD is photographed simultaneously to obtain a sequence of images, which are then calibrated.
[0040] In the multi-lens panoramic camera combination calibration method,
[0041] The MPC monitoring view using a ceiling-mounted (or wall-mounted) method can cover the entire hemisphere, and its geometric structure design mostly adopts the "1+N" mode: "1" represents 1 central camera, whose main optical axis is designed to be (approximately) perpendicular to the mounting base (plane); "N" represents N side-view cameras, which are evenly distributed in a ring around the central camera. Figure 1 The “1+4” model commonly used in the structural design of commercial MPC cameras in the current security market is given. The construction of the spherical panoramic imaging model and the derivation of the rotation calibration formula in subsequent chapters of this article are based on this model, but it can be expanded according to the number N of different side-view cameras.
[0042] Each sub-camera of MPC is generally a traditional "pinhole" camera, which obtains a field of view greater than (or equal to) 180° by performing spherical perspective reprojection on the video of each sub-camera. Figure 2 As shown, let C i (i=0,1,2,3,4) represents the photography center of the MPC sub-camera, I is the spherical panoramic image, O and r are the center and radius of the projection sphere respectively, and assuming that the origin of the world coordinate system XYZ coincides with the spherical projection center, then any spatial point P in the MPC field of view W The spatial transformation to the spherical panoramic image pixel p′ can be described as the following three-stage process:
[0043] a) Single camera “pinhole” imaging, i.e., a sub-camera C of MPC i For the space point P in the world coordinate system W (X, Y, Z) is used for perspective imaging to obtain the image point p(x, y). The geometric imaging relationship can be described by the photogrammetric collinear equation:
[0044]
[0045]
[0046] Where: (X, Y, Z) is point P W Space coordinates, (u,v) is P W The actual pixel coordinates of the projection point p; (X S ,Y S ,Z S ) is the position of the camera photography center in the world coordinate system, (a j ,b j ,c j)(j=1,2,3) is the rotation matrix element given by the camera’s principal optical axis attitude angle (φ,ω,κ), (X S ,Y S ,Z S ) and (φ, ω, κ) are collectively referred to as camera external parameters; (u0, v0) are the coordinates of the camera principal point, f is the camera equivalent focal length, (Δx, Δy) is the optical distortion error of the camera lens, which can be considered to be mainly determined by the radial distortion coefficients k1 and k2, as follows:
[0047] Δx=(u-u0)×(k1r 2 +k2r 4 ), Δy=(v-v0)×(k1r 2 +k2r 4 ), r 2 =(u-u0) 2 +(v-v0) 2
[0048] The above (f,u0,v0,k1,k2) are collectively called the camera internal parameters. If the image point p is optically corrected and the camera principal point is used as the coordinate origin (here called the ideal image point, the same below), equation (1) can also be expressed as the following spatial transformation:
[0049] or
[0050] Where: P is the scaling factor of the image point p, R is the rotation matrix; [x, y, -f] T represents the image space coordinates of the ideal image point p
[16] , the origin of the spatial coordinate system is located at the photography center S, the photography main optical axis is the Z axis, the image plane is the xoy plane, the photography main optical axis attitude angle (φ, ω, κ) is defined as the (continuous) rotation angle around the world coordinate axis X, Y, Z respectively, the image space coordinate of the ideal image point p and the vector formed by the photography center Reflects the incident light (direction) of the image point.
[0051] b) Spherical remapping, that is, MPC sub-camera C i The ideal image point p obtained by perspective imaging, the backlight line P W C i Map to the set projection sphere to obtain the spatial point P O (X O ,Y O ,Z O ), the spatial point should satisfy both the projection spherical equation and the spatial straight line equation where the incident light is located, that is:
[0052] r 2 =X O2 +Y O 2 +Z O 2 (3)
[0053]
[0054] Where: (X O ,Y O ,Z O ) is the spherical space point coordinate of point P in the world coordinate system; (V X ,V Y ,V Z ) T is the direction vector of the spatial straight line where the incident light of point P is located, which can be obtained by rotating the image space coordinates of point P. P is the parameter equation parameter of the spatial straight line where the incident light of point P is located. Here, the spatial straight line where the incident light of point P is located is defined as the sub-camera C i The ray starting from the center of the photograph and passing through the ideal image point P has a parameter L P The calculation formula is as follows:
[0055]
[0056]
[0057] c) Spherical panoramic image synthesis, that is, the spherical space point P O According to the selected model, it is projected to the plane where the panoramic image is located. There are four existing spherical projection models: equidistant projection, equi-stereoscopic projection, stereoscopic projection, and orthogonal projection. Considering that the orthogonal projection model is simple to calculate and can establish a reversible transformation relationship between spatial points and spherical panoramic image points, this paper selects this projection model, that is, Figure 2 As shown, point P O Orthogonal projection onto a panoramic image plane perpendicular to the Z axis) to obtain the pixel coordinates p′(x′,y′). The coordinate transformation relationship between the two is as follows:
[0058] x′=X O ,y′=Y O (6)
[0059] Specifically, in the image calibration of the rotation sequence of the visual camera, since it is difficult to strictly meet the design condition that the photographic center of each sub-camera coincides with the center of the projection sphere, there will be a position error when the pixels with the same name in the overlapping area of the MPC sub-camera are projected onto the panoramic image plane. The size of the error is related to the selection of spherical projection parameters (center position, radius size). Usually, the geometric center of gravity of the photographic centers of all sub-cameras is taken as the spherical projection center, and the spherical projection radius is an empirical value related to the depth of field range. The spherical projection parameters in this paper adopt the above setting method.
[0060] From the above spherical panoramic imaging process, it can be seen that the MPC complete parameter calibration using the "1+N" design mode should include two parts: 5 (1+N) camera internal parameters IOPs and 6 (1+N) camera external parameters EOPs. At present, the internal and external parameters of a single camera can be easily solved using 2D chessboard multi-views. The difficulty lies in how to simply and quickly obtain the relative external parameters of the MPC sub-cameras. The reasons are twofold: first, it is difficult for ordinary chessboards to be "seen" by adjacent MPC sub-cameras at the same time and cannot form an effective calibration control; second, the overlapping view angles of each MPC sub-camera are small and it is difficult to provide a large number of redundant observations (same-name features) for external parameter optimization. In view of the above problems, it is assumed that the internal parameters of each MPC sub-camera are known, and the MPC is placed on a two-dimensional turntable to perform rotation photography of a single chessboard for combined calibration. In combination with the structural design characteristics of the MPC and its rotation photography geometric characteristics, the MPC combined calibration is divided into two stages: the side camera rotation sequence image calibration and the center camera multi-view geometric calibration.
[0061] Rotation photography and coordinate system setting:
[0062] like Figure 4 (a) represents the calibration image acquisition. The MPC is placed on a computer-controlled horizontal rotating platform. The platform is rotated once at a fixed angle interval of β and the checkerboard pattern displayed on the LCD is simultaneously photographed to obtain a sequence of images. Where: i represents the i-th sub-camera C of MPC i ; j represents sub-camera C i The j-th image is captured when the rotation angle is j*β, where N = 360° / β.
[0063] like Figure 4 (b) represents the setting of the rotating coordinate system. In this paper, the world coordinate system O is first established. W -X W Y W Z W With the chessboard object coordinate system O P -X P Y P Z P , defined as follows: The origin of the world coordinate system O W Located at the center of rotation of the turntable plane, Z W The axis coincides with the rotation axis (perpendicular to the turntable plane, upward direction), X W The Y axis is located in the turntable plane and is approximately parallel to the horizontal direction of the center camera image. W The axes are given by the right-hand rule; the origin of the coordinate system of the chessboard object is O P Located at the lower left corner of the chessboard, the chessboard plane is defined as O P -X PY P Plane, X P Axis and Y P The axes are parallel to the horizontal and vertical directions of the chessboard, Z P The axis is given by the right-hand rule. Considering the actual shooting conditions and parameter initialization, the LCD chessboard is placed so that its horizontal direction is approximately parallel to the horizontal direction of the center camera image (i.e., X P Axis and X W The axes are approximately parallel), then when the turntable is stationary, the corner point of the chessboard (X P ,Y P ) in the world coordinate system (X W ,Y W ,Z W ) can be expressed as:
[0064]
[0065] Where: (X P ,Y P ,0) is the chessboard corner point in O P -X P Y P Z P The spatial coordinates in R(Φ,Ω,K) and T(X 0, Y 0, Z0) are the rotation matrix and translation vector from the chessboard object coordinate system to the world coordinate system. It is not difficult to understand that when the turntable rotates, the MPC shoots the static chessboard and when the turntable is stationary, the MPC shoots around Z W The chessboard with the axis rotated is equivalent to W -X W Y W Z W Along Z W The axis is raised (or lowered) so that the lower left corner of the chessboard is on the horizontal plane, then equation (7) can be rewritten as:
[0066]
[0067] Further, in the formula: is the spatial coordinate of the corner point of the chessboard in the world coordinate system when the turntable rotates by angle j*β; Represents the rotation matrix of the chessboard around the Z axis of the turntable.
[0068] Without loss of generality, let Represents MPC sub-camera C i The external orientation element in the world coordinate system is: if the chessboard is rotated by angle j*β on the turntable, it can be expressed by C i Complete observation, then C i The coordinate mapping relationship between the corner points of the chessboard image and its spatial points is:
[0069]
[0070] Where: (x, y, -f) T The definition is the same as that of formula (2), R i For camera C i The exterior orientation rotation matrix in the world coordinate system. Combining equations (8) and (9) we can get:
[0071]
[0072] Formula (10) is the unified rotation photography equation of the MPC for the chessboard reference object in this paper. Under the static condition of MPC, due to the perspective problem, it is difficult for the adjacent side-viewing cameras of MPC to simultaneously shoot the same chessboard, so it is impossible to provide control information for the calibration calculation of the relative attitude parameters between the side-viewing cameras. The MPC unified rotation photography equation given by formula (10) can be regarded as "expanding" the chessboard control information under a fixed perspective to a 360° spatial range through platform rotation, thus laying the foundation for the subsequent initialization of the external parameters of different side-viewing cameras of MPC and its overall optimization estimation.
[0073] Parameter initialization and bundle adjustment:
[0074] The external parameter calibration of the MPC side-view camera in the world coordinate system (i.e. when the turntable is stationary) is obtained by minimizing the reprojection error of the checkerboard corner points and the reprojection error of the same-name pixels in the overlapping area of adjacent side-view cameras. The key is to give an ideal initial value of the external parameter. To simplify the calculation and explanation, the side-view camera image pixels are defined as ideal image points, which are calculated by the camera internal parameters.
[0075] When the camera intrinsic parameters are known, the external parameters of the camera calibration image in the chessboard object coordinate system can be estimated by using direct linear transformation DLT and chessboard corner information. This parameter can be combined with the MPC unified rotation photography equation to give the initial value of the external parameters of the side-view camera in the world coordinate system. From the MPC coordinate system setting, it can be seen that if the chessboard plane is approximately perpendicular to the turntable plane, that is, (Φ, Ω, K) = (0, π / 2, 0), equation (10) can be simplified to:
[0076]
[0077] When the platform rotates by an angle of j*β, if the image of a side view camera of MPC The checkerboard corner space point (X P ,Y P ,0) and the corresponding image point is (x,y), then according to formula (11):
[0078]
[0079] Where: R i,j MPC side view camera C i Checkerboard image The rotation matrix composed of attitude angles, T i,j Checkerboard image The translation vector of the side-view camera C is the image external parameters in the checkerboard object coordinates output by Zhang Zhengyou's calibration algorithm. Then, using formula (12), we can derive i The initial value of the external parameter when the turntable is stationary. Under the condition that the rotation angle j*β is known, for C i The attitude angle element (φ i ,ω i ,κ i ), can be obtained by R i,j and The product result is decomposed into
[16] , and take the average of the decomposition results of different chessboard images; for the photography center Then T i,j , the translation vector T(X0,Y0,0) of the chessboard object coordinate system relative to the world coordinate system is given jointly. The specific calculation formula is:
[0080]
[0081] Equation (13) is a linear equation. For a single side-view camera, the linear solution can be obtained if the photography centers and corresponding rotation angles of at least two images in the checkerboard object coordinate system are known: For all four side-view cameras, each camera provides at least one image of the photographic center and the corresponding rotation angle in the chessboard coordinate system, which can simultaneously linearly solve the initial value of the photographic center extrinsic parameter and the translation vector T of each side-view camera. Considering that any side-view camera can obtain a considerable number of chessboard images during MPC rotation photography, the ideal initial value of the photographic center extrinsic parameter of the side-view camera and the chessboard translation vector T is obtained here by least squares estimation.
[0082] Let V F represents the reprojection error of the chessboard space point on the sequence image, V G It represents the reprojection error of the same-name image points in the overlapping area of adjacent side-view camera images. The objective equation for global optimization of the above-mentioned side-view camera extrinsic parameters and the initial value of the chessboard translation vector is mathematically expressed as follows:
[0083]
[0084] In the formula is the side-view camera C i Exterior orientation element, p i,j is the sth corner point of the chessboard In Camera C iThe image point coordinates on the sequence image j, M is the number of spatial points, N is the sub-camera C i Number of images in sequence, p′ i,j To obtain the checkerboard corner points at camera C according to the calibration parameters i The reprojected coordinates on the sequence image j, k i,j Indicates the sequence number of the image points with the same name corresponding to the j-th image of adjacent cameras, Represents the adjacent camera C i and C i+1 At the corner j * β-image pair and The number of image points with the same name, G(ζ i ,ζ i+1 ) represents the residual of the coplanar equation of the same-name image points of adjacent cameras. V F According to the collinear equation of photogrammetry
[16] , the calculation formula is:
[0085]
[0086]
[0087] Formula (15) is nonlinear. By expanding it in Taylor series and taking one of these terms, we can get the error equation:
[0088]
[0089] V G According to the coplanar condition G between the same-name image points and the photographic baseline in binocular vision, we have:
[0090]
[0091]
[0092] Where: Image and The coordinates of the image points with the same name on . Equation (17) is nonlinear. By expanding it in Taylor series and taking one of the terms, we can get the error equation:
[0093]
[0094] According to the indirect adjustment principle, by minimizing equation (14) and iterating until the preset convergence condition, the optimal estimation of all external parameters of the MPC side-view camera and the rotation and translation parameters between the checkerboard object coordinate system and the world coordinate system of the rotating platform can be obtained.
[0095] Center camera multi-view geometry calibration:
[0096] From the above given rotation photography process, it can be seen that the MPC center camera will not be able to capture the chessboard; on the other hand, there is overlap between the MPC center camera and all the side view cameras. Therefore, under the premise of accurate calibration of the internal and external parameters of the side view cameras, the multi-view geometric constraints between all the side view cameras and the center camera can be used to optimize the solution of the center camera external parameters. The potential problem is that the overlapping area between the two is too small to provide effective features (image points) of the same name as redundant observations. Fortunately, this problem can be effectively solved by defining a new MPC world coordinate system and the rotation photography process under this coordinate system. Without loss of generality, let (x 0 ,y 0 ) and (x i ,y i ) represents the MPC center camera C0 and a side view camera C i (i=1,2,3,4) In the world coordinate system (when the turntable is stationary), the same-name (ideal) image points in the overlapping area of the images are photographed. If the same-name image points and the photographic baseline meet the coplanar condition, there should be:
[0097]
[0098]
[0099] Furthermore, when the turntable rotates by angle j*β, C0 and C i The same-name (ideal) image points of also satisfy the coplanar condition, and should have:
[0100]
[0101]
[0102] Rearranging formula (20) yields:
[0103]
[0104] because From formula (21), we can see that when the turntable rotates, C0 and C i The coplanarity condition between them is only related to the coordinates of the same-name image points and the photographic baseline (external parameter) when the two are in a stationary state. This means that more features (image points) of the same name can be obtained by rotating the photography as observation values for the purpose of estimating the parameters of the central camera under the coplanarity constraint. Equation (22) is nonlinear. By expanding it in Taylor series and taking one term, the error equation can be obtained:
[0105]
[0106] Taking the same-name (actual) image points of the central camera and all side-view cameras at different rotation angles as observation values, the optimal estimation of the central camera extrinsic parameters can be obtained by minimizing equation (22) according to the indirect adjustment principle and iterating until the preset convergence condition, where the photography center extrinsic parameters are the geometric center coordinates of the photography centers of the four side-view cameras. Since the MPC world coordinate system is approximately parallel to the central camera coordinate system, the initial value of the extrinsic parameter angle element is 0.
[0107] This paper implements the above calibration algorithm on a PC (Intel E5-1620 processor & win10 operating system & VS2010 compilation environment). The algorithm verification uses a five-lens camera PanoCam from a certain company and an ordinary CNC turntable (angle repositioning error: [-0.5, +0.5] degrees), see Figure 5 (a) and (b) are the rotational images of the chessboard drawn on the LCD in an indoor environment to obtain the rotation sequence images required for algorithm processing. Under this test condition, the internal and external parameters of the MPC camera, the orientation parameters of the chessboard and the rotation angle β of the turntable j All parameters are unknown, but the internal parameters of the MPC sub-camera are calculated by Zhang Zhengyou's algorithm and are considered as known values. All calibration parameters will be used to output the MPC spherical panoramic video of the actual scene and compare it with the video output by the camera's own software. When the above scheme is used for rotation photography, the MPC is approximately placed in the center of the (virtual) turntable. The turntable rotates one circle and each MPC sub-camera takes 40 images. One picture is taken every time it rotates 9 degrees (β=360° / 40). The rotation speed is controlled to ensure that the overlap of adjacent images in 40 sequential images of the same side-view sub-camera is not less than 60%. The number of images of the side-view camera that fully observes the chessboard is 5, and the number of images of the center camera that fully observes the chessboard is 0; the overlap of MPC adjacent side-view camera video images is about 10%, and the overlap of side-view camera and center camera video images is about 10%.
[0108] Each PanoCam sub-camera uses the same module (with similar internal reference size) and the same image size (1280×960 pixels). The calibration image required by the algorithm is placed Figure 5 (b) The PanoCam on the turntable is used to rotate and photograph the LCD chessboard (grid size 11×11, grid spacing 20.32mm), see Figure 6 ,in: Figure 6 (a) is an illustration of the shooting scene; Figure 6 (b) is the video image output by PanoCam when the turntable is stationary; Figure 6(c) and 6(d) are the image sequences obtained by rotating the center camera C0 and the side camera C1, respectively. The LCD checkerboard object coordinate system and the world coordinate system are set as described above. The same-name image points of the calibration images required for optimization calculation are automatically matched using the SIFT operator and the wild points are eliminated using the RANSANC algorithm. Table 1 lists the PanoCam camera internal parameters given by Zhang Zhengyou's algorithm, and Table 2 also lists the external parameters of the calibration images of each side camera in the checkerboard object coordinate system and the average reprojection error RMSE_0 of the checkerboard corner points under this parameter.
[0109] Table 1 PanoCam camera internal parameter statistics
[0110]
[0111] Table 2 Statistics of the average reprojection error of the PanoCam side-view camera calibration image extrinsics and corner points in the checkerboard object coordinate system
[0112]
[0113] PanoCam calibration first initializes the rotation angle β j =j×9° and combined with the intrinsic parameters of the side-view camera in Table 1 and the external parameters of the calibration image in the checkerboard object coordinate system in Table 2, the external parameters of the side-view camera in the world coordinate system and the initial values of the checkerboard orientation parameters are given, as shown in Table 3. Table 3 also gives the reprojection error RMSE_0 of the checkerboard corner points under this parameter and the coplanar error (here called relative orientation error) RMSE_1 of the same-name image points of adjacent side-view cameras. It can be seen from Table 3 that under the influence of the initialization error of the rotation matrix R(Φ,Ω,K) caused by the low turntable accuracy and the difficulty in meeting the chessboard object coordinate system setting conditions (the chessboard plane is perpendicular to the turntable plane, and the chessboard object coordinate system X-axis is parallel to the world coordinate system X-axis), the side view camera extrinsic parameters and chessboard orientation parameter values given by equations (12)-(13) inevitably have errors, which is reflected in the fact that its RMSE_0 (about 1.7 pixels) is significantly higher than the average reprojection error of the chessboard corner points of the side view camera calibration images in Table 2. The high error RMSE_1 of about 9 pixels indirectly emphasizes the necessity of using the same-name image point constraints of the calibration image for camera calibration.
[0114] Table 3. Initial values and accuracy statistics of the side-view camera external parameters and chessboard orientation parameters before optimization.
[0115]
[0116] Taking the projection coordinates of the chessboard corner points and the coordinates of the same-name image points of adjacent cameras as observation values, Table 4 gives the optimization results of the initial external parameters in Table 3 of the algorithm in this paper. It can be seen that the overall error RMSE under the optimized parameters is 0.39, about one-third of a pixel, which has met the high calibration accuracy requirements. Among them: the chessboard corner point reprojection error RMSE_0 is 0.30, which is close to the average reprojection error of the chessboard corner points of the calibration images of each side-view camera in Table 2, and the relative orientation error RMSE_1 of the same-name image points of adjacent side-view cameras is greatly reduced to 1.38. Figure 7 The error between the rotation angle calibration value of all PanoCam side-view camera chessboard images (a total of 4*5=20 images) and its rotation photography design angle is given. The root mean square error of all image rotation angles is about 0.004 radians (about 0.23 degrees), and the maximum error is about 0.006 radians (about 0.35 degrees), which is consistent with the angle repeatability of the turntable itself, verifying the effectiveness of the calibration algorithm from the side. Figure 8 The residual variation curve of the PanoCam side-view camera rotation calibration is further given, which can converge to the preset conditions after 9-10 iterations.
[0117] Table 4 Optimized side-view camera external parameters and chessboard orientation parameters and accuracy statistics
[0118]
[0119] Table 5 lists the initial values of the external parameters of the PanoCam center camera and its parameter optimization results under multi-view geometry constraints. Fig. 9 The specific parameters and residual optimization calculation process are given. It can also converge to the preset conditions after 9-10 iterations, with good calculation efficiency. It can be seen from Table 5 that the relative orientation error RMSE_1 between the same-name image points of the center camera and the side camera images when the parameter optimization converges is less than 1 pixel, which has a high calibration accuracy and is better than the side camera rotation calibration RMSE_1 in Table 4, and the conclusion is consistent with the simulation imaging simulation test. Fig.10 Given Figure 6 (b) Illustration of the same-name image points between the central camera and the side camera images when the turntable is stationary. It can be seen that due to the small image overlap and large relative viewing angle change, the number of same-name image points obtained by the SIFT operator is small (some rotation angle image matching even fails completely), so the observation value provided by the same-name image points of a single angle image is limited. Fortunately, by defining a new MPC space coordinate system and the rotation photography process under this coordinate system, more same-name image points of images with different rotation angles can be used as redundant observation values, thus laying the foundation for the application of multi-view geometric constraints of the central camera and the smooth implementation of bundle adjustment optimization calculations.
[0120] Table 5 PanoCam's central camera external parameter initial values and optimization results
[0121]
[0122] When the PanoCam device leaves the factory, its internal and external parameters have been calibrated in a high-precision 3D calibration field and saved in encrypted files in the built-in commercial software for real-time panoramic video output. Since it is impossible to directly compare the parameters, the panoramic videos output by the calibration parameters are compared and analyzed here. The panoramic video in this article is generated in the above way and is not smoothed. The panoramic video output by the PanoCam built-in software is smoothed. Fig.11 ,contrast Fig.11 It can be seen from (a) and 11(b) that the panoramic video output by the calibration parameters of this paper has better quality, while the parallax artifacts in the overlapping area of the latter video are more obvious (marked by the rectangular box). The reason is that the output quality of the MPC panoramic video is affected by three aspects: the misalignment of the camera photography center, the scene depth change and the potential camera calibration error. One of the optimization bases of the MPC external parameters in this paper is to minimize the error of the re-projection of the same-name pixels of adjacent cameras that reflects the scene depth change, so it can effectively overcome the parallax artifacts in the overlapping area of the video. The camera parameters of the PanoCam commercial software are obtained in a calibration environment with a specific scene depth. The misalignment of the MPC camera photography center makes the parameters unable to adapt well to the new scene depth change, which also proves the accuracy of the calibration parameters in this paper from the side.
[0123] The experimental and analytical results show that:
[0124] The strict equations of rotational photography established by comprehensively considering the chessboard object coordinate system and the turntable world coordinate system are reasonable. They can not only "expand" the control range of single chessboard calibration, but also give good initial values of the side-view camera extrinsic parameters, thereby ensuring the stable and reliable solution of the MPC side-view camera extrinsic parameters.
[0125] It is effective to solve the external parameters of the central camera using MPC multi-view geometric relationships. At the same time, rotational photography also solves the problem that the central camera and a single side-view camera cannot provide valid image points of the same name as observation values due to their small overlapping field of view, thereby ensuring the stable and high-precision solution of the external parameters of the MPC central camera.
[0126] It is feasible to combine the ordinary two-dimensional turntable and the chessboard calibration reference to calibrate the MPC extrinsic parameters, successfully getting rid of the application limitation of the traditional MPC extrinsic parameter estimation relying on the 3D calibration field, and the panoramic video output effect is comparable to the calibration parameters of the high-precision three-dimensional calibration field.
[0127] In summary, traditional MPC combination calibration relies on high-precision 3D control information, has high implementation costs and requires professional personnel to operate, which limits the development of MPC applications. Based on this invention, LCD chessboards are used as calibration references, and a new MPC chessboard combination calibration method combined with rotational photography is proposed. Through controllable rotational photography, the calibration control range of MPC by a single 2D chessboard reference is "expanded" and the connection points between MPC sub-cameras are "increased" as redundant observation values. The MPC is placed on an ordinary two-dimensional turntable and only one rotation imaging is required to achieve strict solution of MPC external parameters. It has low cost, high precision, simple operation, and little dependence on implementation conditions. The panoramic video output effect is comparable to the calibration parameters of high-precision three-dimensional calibration field. It is an ideal MPC combination calibration method. In the calibration process of this paper, the internal parameters of the MPC sub-camera are given by Zhang Zhengyou's calibration algorithm and taken as known values. However, through reasonable camera control design (such as increasing the number of turntable rotations and changing the angle of the LCD relative to the turntable plane), a multi-view chessboard calibration image that meets the requirements of Zhang Zhengyou's calibration algorithm can be obtained. From this perspective, the method of the present invention can realize the complete calibration of the internal and external parameters of the MPC camera.
[0128] What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.
Claims
1. A multi-lens panoramic camera combination calibration method, characterized in that: The steps include: A multi-lens panoramic camera group is placed on a two-dimensional turntable to perform rotational photography and calibration of the chessboard; The calibration process is divided into two consecutive stages, the former is the side camera rotation sequence image calibration, and the latter is the center camera multi-view geometry calibration. Placing the multi-lens panoramic camera group on a two-dimensional turntable to perform rotational photography and calibration on the chessboard includes: The multi-lens panoramic camera group is placed on a computer-controlled horizontal rotating platform. The platform is rotated one circle at a fixed angle interval of β and the chessboard pattern displayed on the LCD is simultaneously photographed to obtain a sequence of images. (i=0,1,...,4;j=0,1,2,...N-1), where: i represents the i-th sub-camera C of the multi-lens panoramic camera group i ; j represents sub-camera C i The jth image is acquired at a rotation angle of j*β, where N = 360° / β, and then calibrated; Establish world coordinate system O W -X W Y W Z W With the chessboard object coordinate system O P -X P Y P Z P , defined as follows: The origin of the world coordinate system O W Located at the center of rotation of the turntable plane, Z W The axis coincides with the rotation axis, X W The Y axis is located in the turntable plane and is approximately parallel to the horizontal direction of the center camera image. W The axes are given by the right-hand rule; the origin of the coordinate system of the chessboard object is O P Located at the lower left corner of the chessboard, the chessboard plane is defined as O P -X P Y P Plane, X P Axis and Y P The axes are parallel to the horizontal and vertical directions of the chessboard, Z P The axis is given by the right-hand rule. Considering the actual shooting conditions and parameter initialization, the LCD chessboard is placed so that its horizontal direction is approximately parallel to the horizontal direction of the central camera image. When the turntable is stationary, the corner point (X P ,Y P ) in the world coordinate system (X W ,Y W ,Z W ) can be expressed as: Where: (X P ,Y P ,0) is the chessboard corner point in O P -X P Y P Z P In the spatial coordinates, R(Φ,Ω,K) and T(X0,Y0,Z0) are the rotation matrix and translation vector from the checkerboard object coordinate system to the world coordinate system respectively; If the world coordinate system horizontal plane O W -X W Y W Z W Along Z W The axis is raised so that the lower left corner of the chessboard is on the horizontal plane, then the above formula is rewritten as: Where: is the spatial coordinate of the corner point of the chessboard in the world coordinate system when the turntable rotates by angle j*β; Represents the rotation matrix of the chessboard around the Z axis of the turntable; make Indicates the sub-camera C of the multi-lens panoramic camera group i The external orientation element in the world coordinate system is: if the chessboard is rotated by angle j*β on the turntable, it can be expressed by C i Complete observation, then C i The coordinate mapping relationship between the corner points of the chessboard image and its spatial points is: Where: [x, y, -f] T Define the image space coordinates of the ideal image point p, R i For camera C i The external orientation rotation matrix in the world coordinate system transforms the horizontal plane O W -X W Y W Z W Along Z W The axis is raised so that the lower left corner of the chessboard is on the horizontal plane. i The coordinate mapping relationship between the corner points of the chessboard image and its spatial points is combined to obtain the unified rotation photography equation of the multi-lens panoramic camera group about the chessboard reference object:
2. The multi-lens panoramic camera combination calibration method according to claim 1, characterized in that: The side view camera rotation sequence image calibration includes: Combined with the chessboard and two-dimensional turntable coordinate system settings, a strict equation for rotational photography is established and based on it, the initial values of the external parameters of the side-view camera are given; Then, the corner points of the chessboard image and the connection points between adjacent side-view cameras are used as observation values, and the external parameters of the side-view cameras and the chessboard external parameters are adjusted and optimized as a whole.
3. The multi-lens panoramic camera combination calibration method according to claim 1, characterized in that: The central camera multi-view geometry calibration includes: The origin of the two-dimensional turntable rotation coordinate system is translated to the geometric center of gravity of the photography center of all side-view cameras to establish the spatial coordinate system of the multi-lens panoramic camera group; Based on the spatial coordinate system of the multi-lens panoramic camera group, the multi-view geometric relationship between the central camera and the side-view cameras and a large number of connection points obtained by rotational photography are used as observation values to implement bundle adjustment optimization solution for the external parameters of the central camera.
