Camera extrinsic parameter calibration method and system for vehicle surround view system and surround view system

By collecting checkerboard images and calculating deviations and distance differences to optimize camera external parameters, the problem of complex calibration and excessive human intervention of vehicle surround view systems in the existing technology is solved, achieving more efficient calibration and more accurate image stitching.

CN113034616BActive Publication Date: 2024-10-01BLACK SESAME TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110349097.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-31
Publication Date
2024-10-01
Estimated Expiration
2041-03-31

AI Technical Summary

Technical Problem

The existing vehicle surround view system camera external parameter calibration method is complex, requiring multiple calibration checkerboards and strict placement, requiring more human intervention and lacking convenience.

Method used

By collecting the calibration image of the checkerboard, the pixel coordinates of the corner points are obtained and the first deviation and the second deviation are calculated. Based on these deviations and distance differences, the camera's external parameters are optimally calculated, which simplifies the process of external parameter calibration.

Benefits of technology

It reduces the requirements for the placement of checkerboards, improves the accuracy of image stitching, simplifies the calibration process, reduces manual intervention, and improves calibration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113034616B_ABST
    Figure CN113034616B_ABST
Patent Text Reader

Abstract

The present application provides an improved method for calibrating the external parameters of a camera of a vehicle surround view system, which comprises: collecting a calibration image of a checkerboard by the camera; wherein the checkerboard is placed at a position where the image collected by the camera includes two unobstructed checkerboard images; for each calibration image collected, obtaining the pixel coordinates of the corner point in the image; obtaining the first coordinate of the corner point in the vehicle coordinate system based on the relevant parameters of the surround view camera; for a group of adjacent corner points in the corner points, determining a first deviation and a second deviation according to the first coordinate of each corner point in the group of corner points, wherein the first deviation is the difference between the angle between the group of corner points and 90 degrees, and the second deviation is the difference between the distance between adjacent corner points and the actual side length of the checkerboard; for each corner point in the group of adjacent points of the corner points, respectively calculating the distance difference of the corner point based on the first coordinates obtained by the two cameras based on the first coordinates corresponding to the calibration images obtained by the two cameras; and optimizing the external parameters based on the first deviation, the second deviation and the distance difference, thereby obtaining the external parameters of the camera.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to automotive technology, and more specifically, to camera extrinsic calibration technology for a vehicle surround view system. Background Art

[0002] Vehicle surround view can provide drivers with a more convenient driving field of view and improve driving safety. After the surround view camera is installed on the vehicle, it needs to be calibrated to obtain the parameters of the surround view camera to ensure the correct stitching of the surround view panoramic view.

[0003] Conventional calibration methods are relatively complicated and require the production of multiple calibration checkerboards, the placement of the checkerboards as required, and the restriction of the vehicle's position. Figure 1 The following figure shows the conventional surround calibration scenario. Figure 1 As shown, a plurality of chessboards 101 are arranged around the vehicle 10, and the arrangement of the chessboards is strictly relative to the position of the vehicle. This method requires more human intervention and is not convenient enough.

[0004] It is necessary to propose improvements to the calibration method of vehicle surround view. Summary of the invention

[0005] In view of this, the present application provides an improved method for calibrating the external parameters of a camera of a vehicle surround view system. According to one aspect of the present application, the method for calibrating the external parameters of a camera of a vehicle surround view system includes collecting a calibration image of a checkerboard through the camera; wherein the checkerboard is placed at a position where the image collected by the camera includes two unobstructed checkerboard images; for each calibration image collected, the pixel coordinates of the corner point in the image are obtained; based on the relevant parameters of the surround view camera, the first coordinates of the corner point in the vehicle coordinate system are obtained; for a group of adjacent corner points in the corner point, a first deviation and a second deviation are determined according to the first coordinates of each corner point in the group of corner points, wherein the first deviation is the difference between the angle between the group of corner points and 90 degrees, and the second deviation is the difference between the distance between adjacent corner points and the actual side length of the checkerboard; for each corner point in the group of adjacent corner points, based on the first coordinates corresponding to the calibration images obtained by two adjacent cameras, the distance difference of the corner point based on the first coordinates obtained by the two cameras is calculated; and based on the first deviation, the second deviation and the distance difference, the external parameters are optimized and calculated to obtain the external parameters of the camera.

[0006] In the method, optionally, the adjacent corner points are located on the same chessboard.

[0007] In the method, optionally, optimizing the external parameters based on the first deviation, the second deviation and the distance difference is to use the external parameters as variables to be optimized, and to use the weighted sum of the first deviation, the second deviation and the distance difference as an optimization target for optimization calculation.

[0008] According to an example of the present application, a camera extrinsic calibration system is also provided, which is used for a vehicle surround view system. The system includes a camera arranged on a vehicle, the camera being configured to collect a calibration image of a checkerboard; wherein the checkerboard is placed at a position where the image collected by the camera includes two unobstructed checkerboard images; a memory for storing instructions, and a processor for executing the instructions. When the processor executes these instructions, the following process is implemented: for each calibration image collected, the pixel coordinates of the corner points in the image are calculated; based on the relevant parameters of the surround view camera, the first coordinates of the corner points in the vehicle coordinate system are obtained; for a group of adjacent corner points in the corner points, a first deviation and a second deviation are determined according to the first coordinates of each corner point in the group of corner points, wherein the first deviation is the difference between the angle between the group of corner points and 90 degrees, and the second deviation is the difference between the distance between adjacent corner points and the actual side length of the chessboard; for each corner point in the group of adjacent corner points, based on the first coordinates corresponding to the calibration images obtained by two adjacent cameras, the distance difference of the corner point based on the first coordinates obtained by the two cameras is calculated; and based on the first deviation, the second deviation and the distance difference, the external parameters are optimized and calculated to obtain the external parameters of the camera.

[0009] According to an example of the present application, a surround view system for a vehicle is also provided, which either executes the external parameter calibration method described above, or includes the external parameter calibration system described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 The conventional surround calibration scenario is illustrated.

[0011] Figure 2 It is a flowchart of a method for calibrating external parameters of a vehicle surround view system camera according to an example of the present application.

[0012] Figure 3 are three adjacent corner points a, b and c in the example chessboard image.

[0013] Figure 4 It is a structural diagram of a camera extrinsic calibration system according to an example of the present application.

[0014] Figure 5a It is the stitching result after the checkerboard images are collected by the surround-view camera before calibration.

[0015] Figure 5b It is the stitching result of the images collected by the surround view system after using the external parameter calibration method or the external parameter calibration system according to the present application. DETAILED DESCRIPTION

[0016] The specific implementation of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be understood that 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 present invention, so the present invention is not limited by the specific embodiments disclosed below.

[0017] The vehicle surround view camera usually includes cameras installed at the front, rear, left and right sides of the vehicle. The intrinsic parameters and distortion parameters of these cameras have been calibrated before installation on the vehicle, so after installation, only the extrinsic parameters of the camera need to be calibrated, that is, only the position / angle parameters of the camera relative to the vehicle coordinate system need to be calibrated.

[0018] It should be noted that the term "camera" should be understood in a broad sense. It refers to a device that can capture images, sounds, and videos, such as a CCD sensor, a CMOS sensor, a camera, or other devices that include a CCD sensor or a CMOS sensor, more specifically, such as a fisheye camera.

[0019] After calibrating the position / angle parameters of each camera, their mathematical expressions are 3X3 rotation matrix R and 3X1 translation matrix T. Thus, for a point P(X,Y,Z) in the vehicle coordinate system, its coordinates in the camera coordinate system are P′(X′,Y′,Z′), and the relationship between P′ and P is shown in equation (1):

[0020]

[0021] After completing the coordinate transformation from the vehicle coordinate system to the camera coordinate system according to equation (1), the transformation from the camera coordinate system to the pixel coordinate system can be calculated based on the camera intrinsic distortion parameters, and the overall transformation from the vehicle coordinate system to the camera pixel coordinate system is completed. Simply put, the camera intrinsic parameters are pre-calibrated, and the essence of surround view calibration is the process of determining the matrix [RT].

[0022] The above briefly describes the basic principle of vehicle surround view, which is a technology known in the art.

[0023] Figure 2It is a flow chart of a method for calibrating the external parameters of a camera of a vehicle surround view system according to an example of the present application. As shown in the figure, in step S100, a calibration image of a checkerboard is collected by a camera; wherein the checkerboard is placed at a position where two unobstructed checkerboard images can be included in the image collected by the camera. By way of example and not limitation, the cameras are arranged at the front end, rear end, left side and right side of the vehicle. Only one checkerboard can be used here, and for each camera, the checkerboard can be placed in turn at a position where two unobstructed checkerboard images can be included in the image collected by the camera. In step S102, for each calibration image collected, the pixel coordinates of the corner point in the image are obtained. In step S104, the first coordinates of the corner point in the vehicle coordinate system are obtained based on the relevant parameters of the surround view camera, and the first coordinates are also referred to as vehicle system coordinates in this article.

[0024] For example, take any fisheye camera (for example, set on the left side) in the vehicle surround view system as an example. For a corner point P' of the image captured by the fisheye camera, the transformation process of its projection to the pixel coordinate system (u, v) is shown in equation (2):

[0025]

[0026] Among them, the internal parameters of the fisheye camera are [f x ,f y ,c x ,c y ], distortion parameters [k0,k1,k2,k3].

[0027] When the pixel coordinates (u, v) are known, the camera coordinates P′(X′, Y′, Z′) can be obtained by performing an inverse operation according to equation (2); then, according to equation (1) described above, the initial external parameters of the fisheye camera are used to perform an inverse operation to obtain the coordinates P(X, Y, Z) in the vehicle coordinate system.

[0028] Back to Figure 2 In step S108, for a group of adjacent corner points in the corner points, a first deviation and a second deviation are determined according to the first coordinate of each corner point in the group of corner points, wherein the first deviation is the difference between the angle between the group of corner points and 90 degrees, and the second deviation is the difference between the distance between adjacent corner points and the actual side length of the chessboard.

[0029] Figure 3 are three adjacent corner points a, b and c in the example chessboard image. Assume that they are all located at the same chessboard grid at the upper left corner of the chessboard. The three adjacent corner points a, b and c are projected to three pixel points [(u a ′,v a ′),(u b ′,v b ′),(uc ′,v c ′)], where the subscript of the pixel point indicates whether the coordinate refers to pixel a, b or c. The three adjacent corner points a, b and c are projected to three pixel points [(u a ″,v a ″),(u b ″,v b ″),(u c ″,v c ″)].

[0030] Using equation (2) described above, we can get the coordinates of the three pixels of the left camera in the vehicle coordinate system [(X a ′,Y a ′,Z a ′),(X b ′,Y b ′,Z b ′),(X c ′,Y c ′,Z c ′)], and the coordinates of the three pixels of the front camera in the vehicle coordinate system [(X a ″,Y a ″,Z a ″),(X b ″,Y b ″,Z b ″),(X c ″,Y c ″,Z c ″)].

[0031] Since the chessboard is located on the ground in the vehicle coordinate system, here Z a ′=Z b ′=Z c ′=Z a ″=Z b ″=Z c ″=0. At the same time, theoretically, X a ′=X a ″,Y a ′=Y a ″,X b ′=X b ″,Y b ′=Y b ″,X c ′=X c ″,Y c ′=Y c ”, but this may not be true in practical applications due to incorrect initial external parameters.

[0032] For each corner point, three deviation items are determined, namely the first deviation, the second deviation and the distance difference. The pixel point (u a ′,v a The first deviation is the difference between the angle of the corner points arranged horizontally and vertically and 90°, and the difference e1=(X b ′-X a ′)*(X c ′-X a ′)+(Y b ′-Y a ′)*(Y c ′-Y a ′), the smaller the difference e1 between the angle and 90°, the smaller its absolute value. The angle between the horizontal and vertical corners refers to the angle between ba and ac, that is, ∠bac.

[0033] The second deviation is the difference e2 between the distance between adjacent corner points and the actual side length of the chessboard. Assuming the length of the chessboard is L, define The smaller the absolute value, the more accurate the external parameter calibration result.

[0034] For the corner point a, the coordinates of the left camera in the vehicle coordinate system (X' a ,Y' a ,Z' a ), the coordinate of the front camera in the vehicle coordinate system (X” a ,Y” a ,Z” a ). Distance difference e3 = |X a ″-X a ′|+|Y a ″-Y a ′|, the smaller the e3 is, the more accurate the external parameter calibration result is.

[0035] In step S109, an external parameter is optimized based on the first deviation, the second deviation and the distance difference to obtain an external parameter of the camera. In some examples, the external parameter is optimized based on the first deviation, the second deviation and the distance difference by using the external parameter as a variable to be optimized and performing the optimization calculation with a weighted sum of the first deviation, the second deviation and the distance difference as an optimization target.

[0036] As an example, the calculation of the optimized external parameters can be obtained according to the following formula (3):

[0037]

[0038] Wherein, A' represents the external parameter after optimization calculation; Et is the weighted sum of the first deviation, the second deviation and the distance difference, the weighting coefficient for the first deviation is, for example, 1, the weighting coefficient for the second deviation is, for example, 2.5, and the weighting coefficient for the distance difference is, for example, 5; A is the initial external parameter of the camera; It means that the goal is to solve the problem with the minimum of Et, A is the variable to be solved and Et can be calculated through A; A' is the external parameter that minimizes Et.

[0039] According to the examples of the present application, a camera extrinsic parameter calibration system is also provided. Figure 4 : is a structural diagram of a camera extrinsic calibration system according to an example of the present application. As shown in the figure, the system includes cameras arranged on a vehicle 30, such as a camera 320 arranged at the front end of the vehicle, a camera 322 at the rear end of the vehicle, a camera 321 on the left side of the vehicle, and a camera 323 on the right side of the vehicle. The camera is configured to capture a calibration image of a checkerboard, and the checkerboard is placed in a position so that the images captured by adjacent cameras all include a complete checkerboard. As an example, such a position may be located at the upper left corner, upper right corner, lower left corner, and lower right corner of the vehicle. The camera extrinsic calibration system also includes a memory 330 and a processor 332. The memory 330 stores instructions, and the processor 332 implements the above in the process of executing these instructions. Figure 2 The described process will not be repeated here.

[0040] According to some examples of the present application, the memory 330 may adopt an existing storage component in the vehicle, the processor 332 may be set as an independent processor, or the processor 332 may be implemented in an existing controller of the vehicle.

[0041] According to the example of this application, the external parameter calibration method of each camera can be combined with Figure 4 The described camera extrinsic calibration system can also be directly implemented in a vehicle surround view system.

[0042] The present application also provides a vehicle surround view system, which includes a camera arranged on the vehicle, and the vehicle adopts the above combined Figure 2 Alternatively, the vehicle surround view system provided in the present application may adopt the camera extrinsic calibration system described above.

[0043] Figure 5a This is the stitching result after the checkerboard images are collected by the surround view camera before calibration. As shown in the figure, the image stitching is obviously misaligned. Figure 5b It is the stitching result of the images collected by the surround view system after adopting the external parameter calibration method or the external parameter calibration system according to the present application. Obviously, the image stitching misalignment is greatly reduced and the improvement effect is obvious.

[0044] According to the external parameter calibration method or system of the present application, by introducing the first deviation, the second deviation and the distance difference, and using them as the basis to optimize the calculation of the external parameters, the requirements for the placement of the chessboard are reduced. Compared with the current conventional technology, according to the present application, in the case of four cameras, the same chessboard can be placed 4 times to the upper left, lower left, upper right and lower right corners of the vehicle, and an image is collected each time. This will greatly facilitate the re-calibration of the surround view in the later stage or the calibration operation of the after-installation surround view (calibration by manually laying the chessboard). In addition, according to the external parameters obtained in the present application, the accuracy of the spliced ​​image is improved.

[0045] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A camera extrinsic calibration method for a vehicle surround view system, characterized in that: The method comprises: Capturing a calibration image of a checkerboard by the camera; wherein the checkerboard is placed at a position such that images captured by adjacent cameras all include the complete checkerboard; For each calibration image collected, the pixel coordinates of the corner points in the image are obtained; Obtaining a first coordinate of the corner point in a vehicle coordinate system based on relevant parameters of a surround view camera; For a group of adjacent corner points in the corner points, determine a first deviation and a second deviation according to the first coordinate of each corner point in the group of corner points, wherein the first deviation is the difference between the angle between the group of corner points and 90 degrees, and the second deviation is the difference between the distance between adjacent corner points and the actual side length of the chessboard; the group of adjacent corner points are located at the same chessboard; For each corner point in the group of adjacent corner points, based on first coordinates corresponding to calibration images obtained by two adjacent cameras, respectively, a distance difference of the corner point based on the first coordinates obtained by the two cameras is calculated; and The external parameters are optimized and calculated based on the first deviation, the second deviation and the distance difference, so as to obtain the external parameters of the camera.

2. The method according to claim 1, characterized in that: The adjacent corner points are located on the same chessboard.

3. The method according to claim 1 or 2, characterized in that: The optimization calculation of the external parameter based on the first deviation, the second deviation and the distance difference is to use the external parameter as a variable to be optimized and to use the weighted sum of the first deviation, the second deviation and the distance difference as an optimization target for the optimization calculation.

4. A camera extrinsic calibration system for a vehicle surround view system, characterized in that: The system comprises: A camera disposed on the vehicle, the camera being configured to capture a calibration image of a checkerboard; wherein the checkerboard is placed at a position such that images captured by adjacent cameras all include the complete checkerboard; A memory for storing instructions; A processor, which is used to execute the instructions and implement the following processes when executing the instructions: For each calibration image collected, the pixel coordinates of the corner points in the image are calculated; Obtaining a first coordinate of the corner point in a vehicle coordinate system based on relevant parameters of a surround view camera; For a group of adjacent corner points in the corner points, determine a first deviation and a second deviation according to the first coordinate of each corner point in the group of corner points, wherein the first deviation is the difference between the angle between the group of corner points and 90 degrees, and the second deviation is the difference between the distance between adjacent corner points and the actual side length of the chessboard; the group of adjacent corner points are located at the same chessboard; For each corner point in the group of adjacent corner points, based on first coordinates corresponding to calibration images obtained by two adjacent cameras, respectively, a distance difference of the corner point based on the first coordinates obtained by the two cameras is calculated; and The external parameters are optimized and calculated based on the first deviation, the second deviation and the distance difference, so as to obtain the external parameters of the camera.

5. The system according to claim 4, characterized in that The cameras are arranged at the front, rear, left and right sides of the vehicle.

6. The system according to claim 4, characterized in that The adjacent corner points are located on the same chessboard.

7. The system according to claim 4, characterized in that The processor performs optimization calculation on the external parameter based on the first deviation, the second deviation and the distance difference, taking the external parameter as the variable to be optimized and taking the weighted sum of the first deviation, the second deviation and the distance difference as the optimization target for optimization calculation. 8 . A vehicle surround view system, comprising a camera arranged on the vehicle, wherein the vehicle surround view system is configured to execute the method as described in any one of claims 1 to 3.

9. A surround view system for a vehicle, comprising a camera extrinsic calibration system as described in any one of claims 4 to 7.