External parameter calibration method of on-vehicle surround view camera, device, vehicle, and storage medium
The method enhances the real-time calibration of in-vehicle surround-view cameras by using vehicle and visual odometer information to determine external parameters across multiple cameras, addressing the limitations of existing methods and enabling flexible calibration.
Patent Information
- Application Number
- JP2024059865
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-03
- Filing Date
- 2024-04-03
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2044-04-03
AI Technical Summary
Existing methods for calibrating external parameters of in-vehicle surround-view cameras are limited by high calculation times and require specific markers or stationary environments, compromising real-time performance and versatility.
A method utilizing multiple cameras positioned adjacent to each other, where external parameters are determined using vehicle and visual odometer information, allowing for real-time calibration without reliance on specific markers and enabling calibration in any scene.
Improves the real-time performance and versatility of external parameter calibration by reducing calculation time and eliminating the need for specific markers, making it applicable in various environments.
Smart Images

Figure 2024147527000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the technical field of autonomous driving, and more particularly to a method, an apparatus, a vehicle, and a storage medium for external parameter calibration of an in-vehicle surround view camera. [Background technology]
[0002] In an intelligent driving assistance system, the calibration of the vehicle-mounted surround view camera is the basis of most intelligent sensing functions, so the stability and accuracy of the calibration of the surround view camera directly affect the accuracy of the visual sensing function. The calibration of the camera may be divided into internal parameter calibration and external parameter calibration, where the internal parameters of the camera are parameters inherent to the camera, and the external parameters of the camera are parameters that represent the position and attitude relationship of the camera coordinate system to the vehicle body coordinate system. The vehicle body coordinate system is a coordinate system established with the vehicle itself as the reference system, and may be considered as a coordinate system for describing the relative position and attitude relationship between the object around the vehicle and the vehicle. The camera coordinate system is a three-dimensional Cartesian coordinate system established with the camera's focal center as the origin and the optical axis as the Z axis.
[0003] At present, the external parameter calibration methods of vehicle-mounted surround view cameras can be divided into three types. The first is a camera calibration method based on a specific location, which basically adopts a specific calibration template placed in the scene and performs calibration by extracting feature points of the calibration template. However, such a method requires a large investment in the construction cost of the location and can only be applied to environments where the vehicle is stationary. The second is a camera calibration method based on a vanishing point, which uses parallel information in the environment to calculate the vanishing point in the image, and then calculates the external parameters of the camera according to the vanishing point. However, this method relies on special markers with parallel information, such as lanes, and has limited application scenarios. The third is a camera calibration method based on scene map fusion, which calculates the relative position and orientation between the cameras by fusion of map information. However, in order to establish the environment map, each camera needs to operate the odometer, which requires high calculation requirements and takes a long time, which is disadvantageous for real-time online calibration.
[0004] Therefore, how to improve the real-time capability and versatility of external parameter calibration for vehicle-mounted surround view cameras has become a technical issue that needs to be resolved as soon as possible. Summary of the Invention [Problem to be solved by the invention]
[0005] SUMMARY OF THE PRESENT EMBODIMENTS The embodiments of the present invention provide a method, an apparatus, a vehicle, and a storage medium for calibrating external parameters of an in-vehicle surround view camera, for improving the real-time property and versatility of the external parameter calibration of the in-vehicle surround view camera. [Means for solving the problem]
[0006] According to one aspect of the embodiment of the present invention, The present invention is applied to a vehicle equipped with an on-board surround view camera including a first camera, a second camera, a third camera, and a fourth camera, wherein the position of the first camera is adjacent to the position of the third camera and the position of the fourth camera, the position of the second camera is adjacent to the position of the third camera and the position of the fourth camera, determining external parameters of the first camera and external parameters of the second camera according to body odometer information of the vehicle, first visual odometer information of the first camera, and second visual odometer information of the second camera; determining a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value according to the vehicle body odometer information, the first visual odometer information, the second visual odometer information, the external parameters of the first camera, and the external parameters of the second camera; determining a first target position / posture initial value, a second target position / posture initial value, a third target position / posture initial value, and a fourth target position / posture initial value according to the first position / posture initial value, the second position / posture initial value, the third position / posture initial value, and the fourth position / posture initial value; and determining the external parameters of the third camera and the external parameters of the fourth camera according to the external parameters of the first camera, the external parameters of the second camera, the first target position and attitude initial value, the second target position and attitude initial value, the third target position and attitude initial value, and the fourth target position and attitude initial value.
[0007] According to another aspect of the embodiment of the present invention, The vehicle is provided with an in-vehicle surround view camera having a first camera, a second camera, a third camera, and a fourth camera, the position of the first camera is adjacent to the position of the third camera and the position of the fourth camera, the position of the second camera is adjacent to the position of the third camera and the position of the fourth camera, a first external parameter determination module for determining external parameters of the first camera and external parameters of the second camera according to body odometer information of the vehicle, first visual odometer information of the first camera, and second visual odometer information of the second camera; a position and orientation determination module for determining a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value according to the vehicle body odometer information, the first visual odometer information, the second visual odometer information, an external parameter of the first camera, and an external parameter of the second camera; an initial value determination module for determining a first target position / posture initial value, a second target position / posture initial value, a third target position / posture initial value, and a fourth target position / posture initial value according to the first position / posture initial value, the second position / posture initial value, the third position / posture initial value, and the fourth position / posture initial value; and a second external parameter determination module for determining the external parameters of the third camera and the external parameters of the fourth camera according to the external parameters of the first camera, the external parameters of the second camera, the first target position and attitude initial value, the second target position and attitude initial value, the third target position and attitude initial value, and the fourth target position and attitude initial value.
[0008] According to another aspect of the embodiment of the present invention, An in-vehicle surround view camera, At least one processor; a memory communicatively coupled to the at least one processor; A vehicle is provided in which a computer program executable by the at least one processor is stored in the memory, and the computer program is executed by the at least one processor so that the at least one processor can execute the external parameter calibration method for an in-vehicle surround view camera described in any embodiment of the present invention.
[0009] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided having stored thereon computer instructions that, when executed by a processor, cause the processor to implement a method for calibrating an external parameter of an in-vehicle surround view camera as described in any of the embodiments of the present invention. Effect of the Invention
[0010] A technical aspect of an embodiment of the present invention is to determine external parameters of a first camera and external parameters of a second camera according to vehicle body odometer information, first visual odometer information of a first camera, and second visual odometer information of a second camera, and to determine a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value according to the vehicle body odometer information, the first visual odometer information, the second visual odometer information, the external parameters of the first camera, and the external parameters of the second camera. a first target position / orientation initial value, a second target position / orientation initial value, a third target position / orientation initial value, and a fourth target position / orientation initial value are determined in accordance with the first position / orientation initial value, the second position / orientation initial value, the third target position / orientation initial value, and the fourth target position / orientation initial value; and an external parameter of the third camera and an external parameter of the fourth camera are determined in accordance with the external parameters of the first camera, the external parameters of the second camera, the first target position / orientation initial value, the second target position / orientation initial value, the third target position / orientation initial value, and the fourth target position / orientation initial value. This technical aspect first determines corresponding external parameters based on visual odometer information from the first and second cameras, and then determines the external parameters of the third and fourth cameras based on the external parameters of the first and second cameras. This avoids the problem of large calculations and long time required due to all four cameras performing visual odometer calculations to determine the external parameters, and improves the real-time nature of external parameter calibration. Furthermore, this aspect can be applied to external parameter calibration in any situation, avoiding the problem of dependency on specific markers on the road, and improving the versatility of external parameter calibration.
[0011] It should be understood that the subject matter described in this section is not intended to identify key or critical features of the embodiments of the invention, nor is it intended to be used to limit the scope of the invention. Other features of the invention will become more readily apparent from the following specification. [Brief description of the drawings]
[0012] In order to more clearly explain the technical aspects in the embodiments of the present invention, the drawings necessary to be used in the description of the embodiments are briefly introduced below. However, the drawings described below are only some embodiments of the present invention, and it is obvious that a person skilled in the art can further obtain other drawings according to these drawings without paying any creative labor.
[0013] [Figure 1] 1 is a schematic diagram of a flow of an external parameter calibration method for an in-vehicle surround view camera according to a first embodiment of the present invention; [Diagram 2] FIG. 2 is a schematic diagram showing an implementation of a closed loop relationship according to the first embodiment of the present invention. [Diagram 3] FIG. 1 is a schematic diagram illustrating an implementation of four cameras according to a first embodiment of the present invention. [Figure 4] 10 is a schematic diagram of a flow of an external parameter calibration method for an in-vehicle surround view camera according to a second embodiment of the present invention. [Diagram 5] 11 is a structural schematic diagram of an external parameter calibration device for a vehicle-mounted surround view camera according to a third embodiment of the present invention; FIG. [Figure 6] FIG. 11 is a structural schematic diagram of a vehicle according to a fourth embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] In order to allow those skilled in the art to better understand the aspects of the present invention, the technical aspects of the embodiments of the present invention will be described clearly and completely below with reference to the drawings in the embodiments of the present invention, but it is clear that the described embodiments are only some of the embodiments of the present invention, and are not all of the embodiments. All other embodiments obtained by those skilled in the art on the basis of the embodiments of the present invention without performing creative labor should fall within the protection scope of the present invention.
[0015] It should be noted that the terms "first", "second", etc. in the present specification and claims, as well as in the drawings, are not necessarily used to describe a particular order or sequence, but are merely used to distinguish between similar objects. The data used in this manner may be substituted where appropriate, so that it should be understood that the embodiments of the present invention described herein may be practiced in other orders than those shown or described herein. In addition, the terms "comprise" and "have" and any variations thereof are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or apparatus of a series of steps or units, and are not necessarily limited to those steps or units expressly recited, but may include other steps or units not expressly recited or inherent to the process, method, product, or apparatus.
[0016] Example 1 FIG. 1 is a schematic diagram of a flow of an external parameter calibration method for an in-vehicle surround view camera according to a first embodiment of the present invention, the method being applicable to the case of calibrating external parameters of an in-vehicle surround view camera, the method being executable by an external parameter calibration device for an in-vehicle surround view camera, wherein the device can be realized by software and / or hardware and is generally integrated into a vehicle equipped with an in-vehicle surround view camera having a first camera, a second camera, a third camera and a fourth camera, wherein the position of the first camera is adjacent to the position of the third camera and the position of the fourth camera, and the position of the second camera is adjacent to the position of the third camera and the position of the fourth camera, and the positions can be understood as the positions where the cameras are located.
[0017] As shown in FIG. 1, the external parameter calibration method for a vehicle-mounted surround view camera according to the first embodiment of the present invention includes the following steps.
[0018] In S110, external parameters of the first camera and external parameters of the second camera are determined according to the vehicle body odometer information, the first visual odometer information of the first camera and the second visual odometer information of the second camera.
[0019] In this embodiment, the first camera, the second camera, the third camera and the fourth camera can be understood as cameras used to collect images in the front view, rear view, left view and right view directions of the vehicle based on the vehicle body, among which, the setting of the corresponding direction of each camera is not limited, but it is necessary to ensure that the position of the first camera is adjacent to the position of the third camera and the position of the fourth camera, and the position of the second camera is adjacent to the position of the third camera and the position of the fourth camera; that is, if the first camera is a front view camera, the third camera may be a left view camera or a right view camera adjacent to the position of the front view camera; correspondingly, if the second camera is a rear view camera, the fourth camera may be a left view camera or a right view camera adjacent to the second camera; it is necessary to ensure that the corresponding positions of each camera are different, for example, it can be understood that neither of the two cameras should be a left view camera.
[0020] The first visual odometer information is considered to be visual odometer information served by the first camera, and the second visual odometer information is considered to be visual odometer information served by the second camera.
[0021] The body odometer information can be understood as information related to the body odometer of the vehicle. The body odometer can be understood as information representing a change in the moving position of the vehicle based on the body. The visual odometer information is information related to the visual odometer of the corresponding camera. The visual odometer can be understood as information representing a change in the moving position of the camera based on the camera and information such as map points. Here, the specific contents of the body odometer information and the visual odometer information are not specifically limited, and for example, the body odometer information may include information such as a vehicle speed and a body motion trajectory, and the visual odometer information may include information such as a map point and a camera motion trajectory. The body motion trajectory can be understood as information representing a motion trajectory of the vehicle. The camera motion trajectory can be understood as information representing a motion trajectory of the camera.
[0022] Here, there is no specific limitation on how to determine the external parameters of the first camera and the external parameters of the second camera according to the vehicle body odometer information, the first visual odometer information of the first camera, and the second visual odometer information of the second camera. For example, the vehicle body odometer information may be first obtained by a real-time kinematic (RTK) method, an inertial measurement unit (IMU) method, a wheel speed meter method, etc., and then the first visual odometer information and the second visual odometer information may be obtained by a corresponding visual odometer calculation method based on the images captured by the first camera and the second camera, and finally the first camera external parameters and the second camera external parameters may be obtained by a corresponding external parameter algorithm (e.g., a preset algorithm based on the hand-eye calibration principle) based on the vehicle body odometer information, the first visual odometer information, and the second visual odometer information.
[0023] In S120, a first position and posture initial value, a second position and posture initial value, a third position and posture initial value, and a fourth position and posture initial value are determined according to the vehicle body odometer information, the first visual odometer information, the second visual odometer information, the external parameters of the first camera, and the external parameters of the second camera.
[0024] In this embodiment, the first position and orientation initial value can be understood as an initial value representing the relative position and orientation between the first camera and the third camera. The second position and orientation initial value can be understood as an initial value representing the relative position and orientation between the first camera and the fourth camera. The third position and orientation initial value is an initial value representing the relative position and orientation between the second camera and the third camera. The fourth position and orientation initial value is an initial value representing the relative position and orientation between the second camera and the fourth camera.
[0025] Here, there is no specific limitation on how to determine the first position and orientation initial value, the second position and orientation initial value, the third position and orientation initial value, and the fourth position and orientation initial value according to the vehicle body odometer information, the first visual odometer information, the second visual odometer information, the external parameters of the first camera, and the external parameters of the second camera. For example, first, map points in the overlapping area of the collection range between the first camera and the third camera, map points in the overlapping area of the collection range between the first camera and the fourth camera, map points in the overlapping area of the collection range between the second camera and the third camera, and map points in the overlapping area of the collection range between the second camera and the fourth camera are determined according to the vehicle body odometer information, the map points in each visual odometer information, and the image collection range of each camera, and then the determined map points are first transformed into the camera coordinate system according to the external parameters of the first camera and the second camera. Then, the map points in the vehicle body coordinate system are converted to obtain map points in the vehicle body coordinate system, and corresponding external parameter initial values of the third and fourth cameras are determined according to the map points in the vehicle body coordinate system and the images captured by each camera by a corresponding external parameter initial value determination algorithm, and finally, a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value are determined according to the external parameters of the first and second cameras and the external parameter initial values corresponding to the third and fourth cameras by a corresponding position and orientation initial value determination algorithm.
[0026] In S130, a first target position / posture initial value, a second target position / posture initial value, a third target position / posture initial value, and a fourth target position / posture initial value are determined according to the first position / posture initial value, the second position / posture initial value, the third position / posture initial value, and the fourth position / posture initial value.
[0027] In this embodiment, the target position and orientation initial value can be understood as a position and orientation initial value for determining the external parameters of the third camera and the fourth camera. Here, there is no specific limitation on how to determine the first target position and orientation initial value, the second target position and orientation initial value, the third target position and orientation initial value, and the fourth target position and orientation initial value. For example, the first position and orientation initial value, the second position and orientation initial value, the third position and orientation initial value, and the fourth position and orientation initial value may be directly determined as the first target position and orientation initial value, the second target position and orientation initial value, the third target position and orientation initial value, and the fourth target position and orientation initial value, respectively, or the first position and orientation initial value, the second position and orientation initial value, the third position and orientation initial value, and the fourth position and orientation initial value may be optimized by a corresponding optimization algorithm, and each optimized position and orientation initial value may be determined as each target position and orientation initial value.
[0028] In S140, the external parameters of the third camera and the external parameters of the fourth camera are determined based on the external parameters of the first camera, the external parameters of the second camera, the first target position and orientation initial value, the second target position and orientation initial value, the third target position and orientation initial value, and the fourth target position and orientation initial value.
[0029] TIFF2024147527000002.tif76170
[0030] TIFF2024147527000003.tif49170
[0031] Fig. 2 is a schematic diagram showing an implementation of a closed loop relationship according to the first embodiment of the present invention. As shown in Fig. 2, taking a front view camera, a left view camera, and a vehicle body as an example, the front view camera (i.e., the first camera) and the left view camera (i.e., the third camera) are adjacent to each other, and the front view camera, the left view camera, and the vehicle body form a closed loop relationship.
[0032] TIFF2024147527000004.tif27170
[0033] The external parameter calibration method for an in-vehicle surround view camera according to a first embodiment of the present invention includes determining external parameters of a first camera and external parameters of a second camera according to vehicle body odometer information, first visual odometer information of a first camera, and second visual odometer information of a second camera, and determining a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value according to the vehicle body odometer information, the first visual odometer information, the second visual odometer information, the external parameters of the first camera, and the external parameters of the second camera. and a fourth position / orientation initial value; a first target position / orientation initial value, a second target position / orientation initial value, a third target position / orientation initial value, and a fourth target position / orientation initial value are determined in accordance with the first position / orientation initial value, the second position / orientation initial value, the third position / orientation initial value, and the fourth position / orientation initial value; and an external parameter of the third camera and an external parameter of the fourth camera are determined in accordance with the external parameters of the first camera, the external parameters of the second camera, the first target position / orientation initial value, the second target position / orientation initial value, the third target position / orientation initial value, and the fourth target position / orientation initial value. This technical aspect first determines corresponding external parameters according to the visual odometer information of the first camera and the second camera, and then determines the external parameters of the third camera and the fourth camera according to the external parameters of the first camera and the second camera. This avoids the problem of large calculations and long time required due to all four cameras performing visual odometer calculations to determine the external parameters, and improves the real-time performance of external parameter calibration. Furthermore, this technical aspect can be applied to external parameter calibration in any scene, avoiding the problem of dependence on specific markers on the road, and improving the versatility of external parameter calibration.
[0034] Example 2 FIG. 4 is a schematic diagram of a flow of an external parameter calibration method for an in-vehicle surround view camera according to a second embodiment of the present invention, and the second embodiment is subdivided based on the above-mentioned embodiments. In the present embodiment, a process of determining an external parameter of a first camera and an external parameter of a second camera according to a vehicle body odometer information of a vehicle, a first visual odometer information of a first camera, and a second visual odometer information of a second camera, and a process of determining a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value according to the vehicle body odometer information, the first visual odometer information, the second visual odometer information, the external parameter of the first camera, and the external parameter of the second camera are specifically described. Note that, for technical details not described in detail in the present embodiment, any of the above-mentioned embodiments may be referred to. As shown in FIG. 4, the method includes the following:
[0035] In S210, vehicle odometer information and images captured by each camera are obtained.
[0036] In this embodiment, the vehicle can obtain the vehicle body odometer information through a corresponding algorithm, and the vehicle can obtain the images captured by each camera of the vehicle-mounted surround view camera.
[0037] At S220, a first visual odometer information and a second visual odometer information are determined based on the images captured by the first camera and the second camera.
[0038] In this embodiment, the vehicle can obtain corresponding first visual odometer information based on an image captured by a first camera through a corresponding algorithm, and the vehicle can obtain corresponding second visual odometer information based on an image captured by a second camera through a corresponding algorithm, and this is not limited thereto.
[0039] In S230, based on the vehicle body odometer information and the determined visual odometer information, the external parameters of the first camera and the external parameters of the second camera are determined by a predetermined hand-eye calibration algorithm.
[0040] In this embodiment, the predetermined hand-eye calibration algorithm can be understood as an external parameter calculation method based on a preset hand-eye calibration principle. The vehicle can obtain the external parameters of the first camera through the predetermined hand-eye calibration algorithm based on the vehicle body odometer information and the first visual odometer information, and the vehicle can obtain the external parameters of the second camera through the predetermined hand-eye calibration algorithm based on the vehicle body odometer information and the second visual odometer information, which is not limited here.
[0041] In S240, a first valid map point, a second valid map point, a third valid map point and a fourth valid map point are determined according to the vehicle body odometer information, the first map point in the first visual odometer information, the second map point in the second visual odometer information and the collection range of each camera.
[0042] In this embodiment, a map point can be understood as a three-dimensional point corresponding to a feature point of an image captured by a camera. Correspondingly, a first map point can be understood as a map point captured by a first camera. A second map point can be understood as a map point captured by a second camera.
[0043] The first valid map point is a map point in an overlapping area between the first camera and the third camera. The second valid map point is a map point in an overlapping area between the first camera and the fourth camera. The third valid map point is a map point in an overlapping area between the second camera and the third camera. The fourth valid map point is a map point in an overlapping area between the second camera and the fourth camera.
[0044] Here, there is no specific limitation on how to determine the first effective map point, the second effective map point, the third effective map point, and the fourth effective map point. For example, a scale factor is first determined according to the vehicle body odometer information and the visual odometer information, and the first map point and the second map point are respectively proportionally converted based on the scale factor to obtain the first real map point and the second real map point on the real world map corresponding to the scale factor. Then, the overlap area between the first camera and the third camera (i.e., the first overlap area), the overlap area between the first camera and the fourth camera (i.e., the second ... second overlap area), the overlap area between the first camera and the fourth camera (i.e., the second overlap area), the overlap area between the first camera and the fourth camera (i.e., the second overlap area), the overlap area between the first camera and the fourth camera (i.e., the second overlap area), the overlap area between the first camera and the third camera (i.e., the first overlap area), the overlap area between the first camera and the fourth camera (i.e., the second overlap area), the overlap area between the first camera and the fourth camera (i.e., the second overlap area), the overlap area between the first camera and the fourth camera (i.e., the second overlap area), the overlap area between the first camera and the fourth camera (i.e., the second overlap area), the overlap area between the first camera and the third camera (i.e., the first overlap area), the overlap area between the first camera a first valid map point, an overlap area between the second camera and the third camera (i.e., a third overlap area), and an overlap area between the second camera and the fourth camera (i.e., a fourth overlap area); and finally, a map point in the first overlap area of the first real map point may be determined as a first valid map point, a map point in the second overlap area of the first real map point may be determined as a second valid map point, a map point in the third overlap area of the second real map point may be determined as a third valid map point, and a map point in the fourth overlap area of the second real map point may be determined as a fourth valid map point.
[0045] In S250, according to the position and attitude of the first visual odometer information and the second visual odometer information, the first valid map point and the second valid map point are transformed into a first camera coordinate system to obtain a first coordinate point and a second coordinate point, and the third valid map point and the fourth valid map point are transformed into a second camera coordinate system to obtain a third coordinate point and a fourth coordinate point.
[0046] In this embodiment, the first coordinate point can be understood as a coordinate point obtained by transforming the first valid map point into the first camera coordinate system. The second coordinate point can be understood as a coordinate point obtained by transforming the second valid map point into the first camera coordinate system. The third coordinate point can be understood as a coordinate point obtained by transforming the third valid map point into the second camera coordinate system. The fourth coordinate point can be understood as a coordinate point obtained by transforming the fourth valid map point into the second camera coordinate system.
[0047] In S260, the first coordinate point, the second coordinate point, the third coordinate point and the fourth coordinate point are respectively transformed into the vehicle body coordinate system according to the external parameters of the first camera and the external parameters of the second camera to obtain the first vehicle body coordinate point, the second vehicle body coordinate point, the third vehicle body coordinate point and the fourth vehicle body coordinate point.
[0048] In this embodiment, the first body coordinate point can be understood as a point obtained by transforming the first valid map point into the body coordinate system, the second body coordinate point can be understood as a point obtained by transforming the second valid map point into the body coordinate system, the third body coordinate point can be understood as a point obtained by transforming the third valid map point into the body coordinate system, and the fourth body coordinate point can be understood as a point obtained by transforming the fourth valid map point into the body coordinate system.
[0049] The external parameters of the first camera represent a position and orientation relationship of the vehicle body coordinate system to the first camera coordinate system, and the inverse of the external parameters of the first camera is obtained to obtain a position and orientation relationship of the first camera coordinate system to the vehicle body coordinate system, and the first coordinate point can be converted to a point in the vehicle body coordinate system, i.e., the first vehicle body coordinate point, and the second coordinate point can be converted to a point in the vehicle body coordinate system, i.e., the second vehicle body coordinate point, based on the position and orientation relationship. Correspondingly, the external parameters of the second camera represent a position and orientation relationship of the vehicle body coordinate system to the second camera coordinate system, and the inverse of the external parameters of the second camera is obtained to obtain a position and orientation relationship of the second camera coordinate system to the vehicle body coordinate system, and the third coordinate point can be converted to a point in the vehicle body coordinate system, i.e., the third vehicle body coordinate point, and the fourth coordinate point can be converted to a point in the vehicle body coordinate system, i.e., the fourth vehicle body coordinate point, based on the position and orientation relationship.
[0050] In S270, the first target external parameter initial value and the second target external parameter initial value of the third camera, and the third target external parameter initial value and the fourth target external parameter initial value of the fourth camera are determined based on the images captured by each camera, the first vehicle body coordinate point, the second vehicle body coordinate point, the third vehicle body coordinate point and the fourth vehicle body coordinate point.
[0051] In this embodiment, the first target external parameter initial value and the second target external parameter initial value can be understood as the first external parameter initial value and the second external parameter initial value after optimization, the first external parameter initial value and the second external parameter initial value can be understood as two initial values representing the external parameters of the third camera, the third target external parameter initial value and the fourth target external parameter initial value can be understood as the third external parameter initial value and the fourth external parameter initial value after optimization, and the third external parameter initial value and the fourth external parameter initial value can be understood as two initial values representing the external parameters of the fourth camera.
[0052] Here, there is no specific limitation on how to determine the initial values of each target external parameter. For example, the images captured by each camera are image-processed by a corresponding algorithm to obtain a corresponding feature point in the image of the third camera at the first vehicle body coordinate point obtained by the first camera and the third camera by matching the feature points, a corresponding feature point in the image of the fourth camera at the second vehicle body coordinate point obtained by the first camera and the fourth camera by matching the feature points, a corresponding feature point in the image of the third camera at the third vehicle body coordinate point obtained by the second camera and the third camera by matching the feature points, a corresponding feature point in the image of the fourth camera at the third vehicle body coordinate point obtained by the second camera and the third camera by matching the feature points, a corresponding feature point in the image of the third camera at the third vehicle body coordinate point obtained by the second camera and the fourth camera by matching the feature points, Extract corresponding feature points in the image of the fourth camera of the determined fourth body coordinate point, where the feature points may represent pixel points having prominent features; and determine initial external parameters of the third camera and the fourth camera according to the extracted feature points and the determined fourth body coordinate points by a corresponding algorithm; and finally, optimize the initial external parameters of the third camera and the fourth camera by a preset optimization algorithm to obtain a first target external parameter initial value and a second target external parameter initial value of the third camera, and a third target external parameter initial value and a fourth target external parameter initial value of the fourth camera.
[0053] In S280, the first position and orientation initial value, the second position and orientation initial value, the third position and orientation initial value, and the fourth position and orientation initial value are determined according to the first target external parameter initial value, the second target external parameter initial value, the third target external parameter initial value, the fourth target external parameter initial value, the external parameters of the first camera, and the external parameters of the second camera.
[0054] In this embodiment, first, according to the first target external parameter initial value, the second target external parameter initial value, the third target external parameter initial value, the fourth target external parameter initial value, the external parameters of the first camera, and the external parameters of the second camera, the first position and orientation initial value, the second position and orientation initial value, the third position and orientation initial value, and the fourth position and orientation initial value can be obtained by a corresponding algorithm.
[0055] In S290, a first target position / posture initial value, a second target position / posture initial value, a third target position / posture initial value, and a fourth target position / posture initial value are determined according to the first position / posture initial value, the second position / posture initial value, the third position / posture initial value, and the fourth position / posture initial value.
[0056] In S2100, the external parameters of the third camera and the external parameters of the fourth camera are determined based on the external parameters of the first camera, the external parameters of the second camera, the first target position / posture initial value, the second target position / posture initial value, the third target position / posture initial value, and the fourth target position / posture initial value.
[0057] The external parameter calibration method for a vehicle-mounted surround view camera according to the second embodiment of the present invention embodies a process of determining external parameters of a first camera and external parameters of a second camera according to vehicle body odometer information, first visual odometer information of a first camera, and second visual odometer information of a second camera, and a process of determining a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value according to the vehicle body odometer information, the first visual odometer information, the second visual odometer information, the external parameters of the first camera, and the external parameters of the second camera. By using this method, the external parameters of the other two cameras can be determined according to the external parameters of the two cameras previously determined, which avoids the problem of large calculations and long calculation times caused by the visual odometer calculations of the cameras for all four cameras, effectively improving the efficiency of the external parameter calibration, and ensuring the real-time performance of the external parameter calibration.
[0058] Preferably, determining the first valid map point, the second valid map point, the third valid map point, and the fourth valid map point according to the vehicle body odometer information, the first map point in the first visual odometer information, the second map point in the second visual odometer information, and the collection range of each camera includes: Determining a scale factor, which is a parameter representing a ratio between a scale of the real world and a scale of a three-dimensional map constructed by a camera, based on the vehicle body motion trajectory information in the vehicle body odometer information and the camera motion trajectory information in the determined visual odometer information; proportionally transforming the first map points and the second map points based on a scale factor to obtain first real map points at a real-world scale of the first map points and second real map points at a real-world scale of the second map points; determining a first overlap area which is an overlap area of the collection range between the first camera and the third camera, a second overlap area which is an overlap area of the collection range between the first camera and the fourth camera, a third overlap area which is an overlap area of the collection range between the second camera and the third camera, and a fourth overlap area which is an overlap area of the collection range between the second camera and the fourth camera according to the collection range of each camera; determining a map point in a first overlap area of the first real map point as a first valid map point, determining a map point in a second overlap area of the first real map point as a second valid map point, determining a map point in a third overlap area of the second real map point as a third valid map point, and determining a map point in a fourth overlap area of the second real map point as a fourth valid map point.
[0059] In this embodiment, the scale of the real world can be understood as a scale in the real world. The scale of the 3D map constructed by the camera can be understood as a scale for constructing the 3D map. The vehicle body motion trajectory information can be understood as information representing the vehicle body motion trajectory. The camera motion trajectory information can be understood as information representing the camera motion trajectory. The vehicle can obtain a corresponding scale factor through a corresponding algorithm based on the vehicle body motion trajectory information in the vehicle body odometer information and the camera motion trajectory information in the determined visual odometer information.
[0060] Preferably, determining the first target external parameter initial value and the second target external parameter initial value of the third camera and the third target external parameter initial value and the fourth target external parameter initial value of the fourth camera according to the images captured by each camera, the first vehicle body coordinate point, the second vehicle body coordinate point, the third vehicle body coordinate point and the fourth vehicle body coordinate point, includes: and determining, according to the images captured by each camera, a first target feature point which is a corresponding feature point in the image of the third camera at a first vehicle body coordinate point obtained by the first camera and the third camera through feature point matching, a second target feature point which is a corresponding feature point in the image of the fourth camera at a second vehicle body coordinate point obtained by the first camera and the fourth camera through feature point matching, a third target feature point which is a corresponding feature point in the image of the third camera at a third vehicle body coordinate point obtained by the second camera and the third camera through feature point matching, and a fourth target feature point which is a corresponding feature point in the image of the fourth camera at a fourth vehicle body coordinate point obtained by the second camera and the fourth camera through feature point matching; In this embodiment, there is no specific limitation on how to determine the first target feature points, the second target feature points, the third target feature points, and the fourth target feature points according to the images captured by each camera. The feature points of the first camera are represented as two-dimensional feature points corresponding to the map points in the first visual odometer information. The feature points of the second camera are represented as two-dimensional feature points corresponding to the map points in the second visual odometer information. The feature points of the first camera are matched with the feature points of the third camera and the fourth camera by a feature matching algorithm to determine the first target feature points and the second target feature points. The feature points of the second camera are matched with the feature points of the third camera and the fourth camera by a feature matching algorithm to determine the third target feature points and the fourth target feature points. Here, the feature matching algorithm is not specifically limited.
[0061] Determine a first external parameter initial value and a second external parameter initial value of the third camera and a third external parameter initial value and a fourth external parameter initial value of the fourth camera according to each vehicle body coordinate point and each target feature point by a perspective-n-point positioning (PNP) method; In this embodiment, the external parameter initial value can be understood as the initial value of the external parameter. Here, there is no specific limitation on how to determine the external parameter initial value of the third camera and the external parameter initial value of the fourth camera according to each vehicle body coordinate point and each target feature point, and for example, a corresponding algorithm (e.g., PNP algorithm) may be used to obtain a first external parameter initial value of the third camera according to the first vehicle body coordinate point and the first target feature point, obtain a second external parameter initial value of the third camera according to the second vehicle body coordinate point and the second target feature point, obtain a first external parameter initial value of the fourth camera according to the third vehicle body coordinate point and the third target feature point, and obtain a second external parameter initial value of the fourth camera according to the fourth vehicle body coordinate point and the fourth target feature point.
[0062] For each camera among the third camera and the fourth camera, for each numerical value in the predetermined area of the camera, update the initial value of the external parameters of the camera to a numerical value, project the corresponding body coordinate point of the camera into the image coordinate system of the camera to obtain a corresponding two-dimensional coordinate point, and determine the luminance error between the corresponding two-dimensional coordinate point of the camera and the target feature point, the predetermined area being related to the initial value of the external parameters of the corresponding camera; In this embodiment, the predetermined area is related to the external parameter initial value of the corresponding camera, and here, the predetermined area is not limited, and may be, for example, one predetermined range area determined with the external parameter initial value as the intermediate value, or one predetermined range area determined with the external parameter initial value as the left interval end point, etc. The image coordinate system can be understood as a coordinate system established by setting the center of the image plane as the coordinate origin and making the X-axis and Y-axis parallel to two vertical sides of the image plane, respectively, and the image coordinate system is considered to be a coordinate system indicating the position of a pixel in an image in physical units (e.g., millimeters). The luminosity error can be understood as a difference value between the luminosity of a two-dimensional coordinate point and the luminosity of a target feature point. Each numerical value in the predetermined area can correspondingly obtain one luminosity error.
[0063] Among the corresponding luminance errors of the camera, the numerical value corresponding to the minimum luminance error is determined as the corresponding target external parameter initial value of the camera.
[0064] In this embodiment, the minimum light intensity error can be understood as the light intensity error having the smallest value.
[0065] Preferably, determining the first target position / posture initial value, the second target position / posture initial value, the third target position / posture initial value, and the fourth target position / posture initial value in response to the first position / posture initial value, the second position / posture initial value, the third position / posture initial value, and the fourth position / posture initial value includes: This includes determining the first position / posture initial value, the second position / posture initial value, the third position / posture initial value, and the fourth position / posture initial value as the first target position / posture initial value, the second target position / posture initial value, the third target position / posture initial value, and the fourth target position / posture initial value.
[0066] Preferably, determining the first target position / posture initial value, the second target position / posture initial value, the third target position / posture initial value, and the fourth target position / posture initial value in response to the first position / posture initial value, the second position / posture initial value, the third position / posture initial value, and the fourth position / posture initial value includes: if a first luminance error value in the first position and orientation initial value, a second luminance error value in the second position and orientation initial value, a third luminance error value in the third position and orientation initial value, and a fourth luminance error value in the fourth position and orientation initial value do not satisfy a first predetermined condition, updating each position and orientation initial value based on a first predetermined step size until each luminance error value in each updated position and orientation initial value satisfies the first predetermined condition, and determining each position and orientation initial value as a target position and orientation initial value; Wherein, the first luminosity error value is an error value between the luminosity of the first projection point and the luminosity of the first target feature point, and the first projection point is a point obtained by projecting a first effective map point of the first camera onto the image coordinate system of the third camera at the first initial position and orientation value; the second luminosity error value is an error value between the luminosity of the second projected point and the luminosity of the second target feature point, the second projected point being a point obtained by projecting the second effective map point of the first camera onto the image coordinate system of the fourth camera at the second initial position and orientation value; the third luminosity error value is an error value between the luminosity of the third projection point and the luminosity of the third target feature point, the third projection point being a point obtained by projecting the third effective map point of the second camera onto the image coordinate system of the third camera at the third initial position and orientation value; the fourth luminosity error value is an error value between the luminosity of the fourth projected point and the luminosity of the fourth target feature point, and the fourth projected point is a point obtained by projecting a fourth effective map point of the second camera onto the image coordinate system of the fourth camera at the fourth initial position and orientation value; The first predetermined condition is that the first intensity error value reaches a first threshold, the second intensity error value reaches a second threshold, the third intensity error value reaches a third threshold, and the fourth intensity error value reaches a fourth threshold.
[0067] In this embodiment, the vehicle can obtain a first position and attitude initial value by a predetermined position and attitude algorithm according to the external parameters of the first camera and the target external parameter initial value of the third camera, and can obtain a second position and attitude initial value by a predetermined position and attitude algorithm according to the external parameters of the first camera and the target external parameter initial value of the fourth camera. Correspondingly, the vehicle can obtain a third position and attitude initial value by a predetermined position and attitude algorithm according to the external parameters of the second camera and the target external parameter initial value of the third camera, and can obtain a fourth position and attitude initial value by a predetermined position and attitude algorithm according to the external parameters of the second camera and the target external parameter initial value of the fourth camera.
[0068] In this embodiment, the first threshold value can be understood as a first preset threshold value, the second threshold value can be understood as a second preset threshold value, the third threshold value can be understood as a third preset threshold value, and the fourth threshold value can be understood as a fourth preset threshold value. Here, the first threshold value, the second threshold value, the third threshold value, and the fourth threshold value are not specifically limited. The first luminance error value reaching the first threshold value is considered to be smaller than or equal to the first threshold value, and correspondingly, the second luminance error value reaching the second threshold value is considered to be smaller than or equal to the second threshold value, the third luminance error value reaching the third threshold value is considered to be smaller than or equal to the third threshold value, and the fourth luminance error value reaching the fourth threshold value is considered to be smaller than or equal to the fourth threshold value.
[0069] The first predetermined step size can be understood as a step size set in advance, and is not limited thereto. Here, how to update the first position and orientation initial value, the second position and orientation initial value, the third position and orientation initial value, and / or the fourth position and orientation initial value based on the first predetermined step size is not specifically limited, and for example, the first position and orientation initial value, the second position and orientation initial value, the third position and orientation initial value, and / or the fourth position and orientation initial value may be increased by the first predetermined step size, or the first position and orientation initial value, the second position and orientation initial value, the third position and orientation initial value, and / or the fourth position and orientation initial value may be decreased by the first predetermined step size. After the first position and orientation initial value is updated, the relative position and orientation between the first camera and the third camera changes, and the corresponding first luminance error changes, and correspondingly, after the second position and orientation initial value is updated, the relative position and orientation between the first camera and the fourth camera changes, and the corresponding second luminance error changes, and it can be understood that an analogy can be made based on this.
[0070] Preferably, after determining the external parameters of the third camera and the external parameters of the fourth camera, and determining an error metric for each camera's extrinsic parameters using a formula such as: TIFF2024147527000005.tif7139, of which E rr is an error index which is a parameter index for weighing the optimization status of the external parameters of each camera, E1 is a reprojection error value obtained by projecting a first effective map point of the first camera onto the image coordinate system of the third camera, E2 is a reprojection error value obtained by projecting a third effective map point of the second camera onto the image coordinate system of the third camera, E3 is a reprojection error value obtained by projecting a second effective map point of the first camera onto the image coordinate system of the fourth camera, E4 is a reprojection error value obtained by projecting a fourth effective map point of the second camera onto the image coordinate system of the fourth camera, E5 is a hand-eye calibration error value determined based on the vehicle body odometer and the first visual odometer of the first camera, and E6 is a hand-eye calibration error value determined based on the vehicle body odometer and the second visual odometer of the second camera, In this embodiment, the reprojection error can be understood as the pixel difference between the point where the valid map point in the camera coordinate system is projected onto the image coordinate system and the true point in the image coordinate system. The hand-eye calibration error value can be understood as the odometer error value between the vehicle body odometer and the visual odometer calculated based on the hand-eye calibration principle.
[0071] TIFF2024147527000006.tif57170
[0072] TIFF2024147527000007.tif180170
[0073] If the error metric reaches an error threshold, determine the extrinsic parameters of each camera as the target extrinsic parameters of each camera, where the target extrinsic parameters are the extrinsic parameters after optimization; If the error index does not reach the error threshold, the external parameters of at least one camera are updated based on a second predetermined step size until the corresponding error index of each camera reaches the error threshold, and the corresponding external parameters of each camera at the time when the error threshold is reached are determined as target external parameters of each camera.
[0074] In this embodiment, the error threshold value can be understood as a threshold value for weighing a preset error indicator, and the present invention is not limited thereto. The second predetermined step size can be understood as a second step size, and the present invention is not limited thereto.
[0075] Here, there is no specific limitation on how to update the external parameters of at least one camera based on the second predetermined step size, and for example, the external parameters of at least one camera may be increased or decreased by the second predetermined step size to obtain new external parameters.
[0076] In this embodiment, after calculating the initial values of the external parameters of the four cameras, the initial values of the external parameters of the four cameras are jointly optimized, thereby further improving the accuracy of the external parameter calibration.
[0077] Preferably, after determining the target extrinsic parameters for each camera, Determining, for each camera, Euler angle information, which is information representing a rotation angle of the camera with respect to the vehicle body coordinate system, and translation vector information, which is information representing a translation amount of the camera with respect to the vehicle body coordinate system, based on the target external parameters of the camera; determining whether the Euler angle information and the translation vector information of the camera satisfy a second predetermined condition, that is, the Euler angle information is within a first threshold range and the translation vector information is within a second threshold range; If so, determining that the camera target external parameter calibration is successful; If not, determining that the camera target extrinsic parameter calibration has failed.
[0078] In this embodiment, the Euler angle information may include a pitch angle α, a yaw angle β, and a roll angle σ of the camera. Here, there is no specific limitation on how to determine the Euler angle information and the translation vector information of the camera based on the target external parameters of the camera. For example, the Euler angle information and the translation vector information of the camera may be obtained by identifying and processing the target external parameters of the camera through a corresponding algorithm.
[0079] The first threshold range can be understood as a first threshold range that is preset, and the second threshold range can be understood as a second threshold range that is preset. Here, the first threshold range and the second threshold range are not specifically limited, and for example, the first threshold range may be 0°<α<90°, -90°<β<90°, -90°<σ<90°.
[0080] Example 3 5 is a structural schematic diagram of an external parameter calibration device for an in-vehicle surround view camera according to a third embodiment of the present invention, which can be realized by software and / or hardware. As shown in FIG. 5, the device is disposed in a vehicle equipped with an in-vehicle surround view camera including a first camera, a second camera, a third camera and a fourth camera, the position of the first camera is adjacent to the position of the third camera and the position of the fourth camera, the position of the second camera is adjacent to the position of the third camera and the position of the fourth camera, and the device: a first external parameter determination module 310 for determining external parameters of the first camera and external parameters of the second camera according to body odometer information of the vehicle, first visual odometer information of the first camera, and second visual odometer information of the second camera; a position and orientation determination module 320 for determining a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value according to the vehicle body odometer information, the first visual odometer information, the second visual odometer information, the external parameters of the first camera, and the external parameters of the second camera; an initial value determination module 330 for determining a first target position / orientation initial value, a second target position / orientation initial value, a third target position / orientation initial value, and a fourth target position / orientation initial value according to the first position / orientation initial value, the second position / orientation initial value, the third position / orientation initial value, and the fourth position / orientation initial value; and a second external parameter determination module 340 for determining the external parameters of the third camera and the external parameters of the fourth camera according to the external parameters of the first camera, the external parameters of the second camera, the first target position and orientation initial value, the second target position and orientation initial value, the third target position and orientation initial value, and the fourth target position and orientation initial value.
[0081] In this embodiment, a first external parameter determination module determines external parameters of the first camera and external parameters of the second camera according to vehicle body odometer information, first visual odometer information of the first camera, and second visual odometer information of the second camera; a position and orientation determination module determines a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value according to the vehicle body odometer information, the first visual odometer information, the second visual odometer information, the external parameters of the first camera, and the external parameters of the second camera; The initial value determination module determines a first target position / posture initial value, a second target position / posture initial value, a third target position / posture initial value, and a fourth target position / posture initial value in accordance with the first position / posture initial value, the second position / posture initial value, the third target position / posture initial value, and the fourth position / posture initial value, and the second external parameter determination module determines an external parameter of the third camera and an external parameter of the fourth camera in accordance with the external parameters of the first camera, the external parameters of the second camera, the first target position / posture initial value, the second target position / posture initial value, the third target position / posture initial value, and the fourth target position / posture initial value. This technical aspect first determines corresponding external parameters according to the visual odometer information of the first camera and the second camera, and then determines the external parameters of the third camera and the fourth camera according to the external parameters of the first camera and the second camera. This avoids the problem of large calculations and long time required due to all four cameras performing visual odometer calculations to determine the external parameters, and improves the real-time performance of external parameter calibration. Furthermore, this technical aspect can be applied to external parameter calibration in any scene, avoiding the problem of dependence on specific markers on the road, and improving the versatility of external parameter calibration.
[0082] Preferably, the first external parameter determination module 310 comprises: an image capture unit for capturing the vehicle odometer information and images captured by each camera; an odometer determination unit for determining the first visual odometer information and the second visual odometer information based on images captured by the first camera and the second camera; and an external parameter determining unit for determining external parameters of the first camera and external parameters of the second camera according to the vehicle body odometer information and the determined visual odometer information through a predetermined hand-eye calibration algorithm.
[0083] Preferably, the position determination module 320 is a map point determining unit for determining a first valid map point, a second valid map point, a third valid map point and a fourth valid map point according to the vehicle body odometer information, a first map point in the first visual odometer information, a second map point in the second visual odometer information and a capturing range of each camera; a first conversion unit for converting the first and second effective map points into a first camera coordinate system to obtain first and second coordinate points, and converting the third and fourth effective map points into a second camera coordinate system to obtain third and fourth coordinate points, according to positions and attitudes of the first and second visual odometer information; a second transformation unit for transforming the first coordinate point, the second coordinate point, the third coordinate point, and the fourth coordinate point into a vehicle body coordinate system according to an external parameter of the first camera and an external parameter of the second camera, respectively, to obtain a first vehicle body coordinate point, a second vehicle body coordinate point, a third vehicle body coordinate point, and a fourth vehicle body coordinate point; an external parameter initial value determination unit for determining a first target external parameter initial value and a second target external parameter initial value of the third camera and a third target external parameter initial value and a fourth target external parameter initial value of the fourth camera according to images captured by each camera, the first vehicle body coordinate point, the second vehicle body coordinate point, the third vehicle body coordinate point, and the fourth vehicle body coordinate point; and a position and orientation initial value determination unit for determining a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value in accordance with the first target external parameter initial value, the second target external parameter initial value, the third target external parameter initial value, the fourth target external parameter initial value, the external parameters of the first camera, and the external parameters of the second camera.
[0084] Preferably, the map point determining unit comprises: a factor determining subunit for determining a scale factor, which is a parameter representing a ratio between a scale of a real world and a scale of a three-dimensional map constructed by a camera, according to the vehicle body motion trajectory information in the vehicle body odometer information and the camera motion trajectory information in the determined visual odometer information; a transformation subunit for proportionally transforming the first map points and the second map points based on the scale factor to obtain first real map points at a real-world scale of the first map points and second real map points at a real-world scale of the second map points; A region determination unit for determining, according to the collection range of each camera, a first overlap region which is an overlap region of the collection range between the first camera and the third camera, a second overlap region which is an overlap region of the collection range between the first camera and the fourth camera, a third overlap region which is an overlap region of the collection range between the second camera and the third camera, and a fourth overlap region which is an overlap region of the collection range between the second camera and the fourth camera; a map point determination subunit for determining map points in the first overlap area of the first real map points as first valid map points, determining map points in the second overlap area of the first real map points as second valid map points, determining map points in the third overlap area of the second real map points as third valid map points, and determining map points in the fourth overlap area of the second real map points as fourth valid map points.
[0085] Preferably, the external parameter initial value determination unit comprises: a feature point determination subunit for determining, according to the images captured by each camera, a first target feature point which is a corresponding feature point in the third camera image at a first vehicle body coordinate point obtained by the first camera and the third camera through feature point matching, a second target feature point which is a corresponding feature point in the fourth camera image at a second vehicle body coordinate point obtained by the first camera and the fourth camera through feature point matching, a third target feature point which is a corresponding feature point in the third camera image at a third vehicle body coordinate point obtained by the second camera and the third camera through feature point matching, and a fourth target feature point which is a corresponding feature point in the fourth camera image at a fourth vehicle body coordinate point obtained by the second camera and the fourth camera through feature point matching; a first initial value determination subunit for determining a first external parameter initial value and a second external parameter initial value of the third camera and a third external parameter initial value and a fourth external parameter initial value of the fourth camera according to each vehicle body coordinate point and each target feature point by a PNP method; an error determination subunit for each of the third and fourth cameras, for each numerical value in a predetermined area of the camera related to an initial external parameter value of the corresponding camera, updating the initial external parameter value of the camera to the numerical value, projecting the body coordinate points corresponding to the camera into an image coordinate system of the camera to obtain corresponding two-dimensional coordinate points, and determining a luminance error between the corresponding two-dimensional coordinate points of the camera and a target feature point; and a second initial value determining subunit for determining a numerical value corresponding to a minimum luminance error among the corresponding luminance errors of the camera as a corresponding target external parameter initial value of the camera.
[0086] Preferably, the initial value determination module 330 comprises: The system further includes a first initial value determination unit for determining the first position / posture initial value, the second position / posture initial value, the third position / posture initial value, and the fourth position / posture initial value as a first target position / posture initial value, a second target position / posture initial value, a third target position / posture initial value, and a fourth target position / posture initial value.
[0087] Preferably, the initial value determination module 330 comprises: a second initial value determination unit for updating each of the position and orientation initial values based on a first predetermined step size until each of the luminance error values in each of the updated position and orientation initial values satisfies a first predetermined condition if a first luminance error value in the first position and orientation initial value, a second luminance error value in the second position and orientation initial value, a third luminance error value in the third position and orientation initial value, and a fourth luminance error value in the fourth position and orientation initial value do not satisfy a first predetermined condition, and determining each of the position and orientation initial values as each of the target position and orientation initial values; wherein the first luminosity error value is an error value between a luminosity of a first projection point and a luminosity of a first target feature point, and the first projection point is a point obtained by projecting a first effective map point of the first camera onto an image coordinate system of the third camera at a first initial position and orientation value; the second luminosity error value is an error value between the luminosity of a second projected point and the luminosity of a second target feature point, and the second projected point is a point obtained by projecting a second effective map point of the first camera onto the image coordinate system of the fourth camera at a second initial position and orientation value; the third luminosity error value is an error value between a luminosity of a third projected point and a luminosity of a third target feature point, the third projected point being a point obtained by projecting a third effective map point of the second camera onto an image coordinate system of the third camera at a third initial position and orientation value; the fourth luminosity error value is an error value between a luminosity of a fourth projected point and a luminosity of a fourth target feature point, and the fourth projected point is a point obtained by projecting a fourth effective map point of the second camera onto an image coordinate system of the fourth camera at a fourth initial position and orientation value; The first predetermined condition is that the first luminance error value reaches a first threshold, the second luminance error value reaches a second threshold, the third luminance error value reaches a third threshold, and the fourth luminance error value reaches a fourth threshold.
[0088] Preferably, the apparatus comprises: After determining the external parameters of the third camera and the external parameters of the fourth camera, an error index is determined for each camera's external parameters using the following formula: TIFF2024147527000008.tif7148 Of these, E rr an index determining module, where E is the error index, which is a parameter index for weighing the optimization status of the external parameters of each camera; E1 is a reprojection error value obtained by projecting a first effective map point of the first camera onto the image coordinate system of the third camera; E2 is a reprojection error value obtained by projecting a third effective map point of the second camera onto the image coordinate system of the third camera; E3 is a reprojection error value obtained by projecting a second effective map point of the first camera onto the image coordinate system of the fourth camera; E4 is a reprojection error value obtained by projecting a fourth effective map point of the second camera onto the image coordinate system of the fourth camera; E5 is a hand-eye calibration error value determined based on the vehicle body odometer and the first visual odometer of the first camera; and E6 is a hand-eye calibration error value determined based on the vehicle body odometer and the second visual odometer of the second camera; a third external parameter determination module for determining the external parameters of each camera as target external parameters, which are the external parameters after optimization of each camera, if the error index reaches an error threshold; and a fourth external parameter determination module for updating the external parameters of at least one camera based on a second predetermined step size until the corresponding error indicator of each camera reaches the error threshold if the error indicator does not reach the error threshold, and determining the corresponding external parameters of each camera when the error threshold is reached as target external parameters of each camera.
[0089] Preferably, the apparatus comprises: an information determination module for determining, for each camera, Euler angle information representing a rotation angle of the camera relative to a vehicle body coordinate system and translation vector information representing a translation amount of the camera relative to the vehicle body coordinate system, based on the target external parameters of the camera after determining the target external parameters of the camera; a determining module for determining whether the Euler angle information and the translation vector information of the camera satisfy a second predetermined condition, that is, the Euler angle information is within a first threshold range and the translation vector information is within a second threshold range; a first calibration module for determining that the target external parameter calibration of the camera is successful if the first calibration module is satisfied; If not, a second calibration module is provided for determining that the target extrinsic parameter calibration of the camera has failed.
[0090] The external parameter calibration device for a vehicle-mounted surround view camera according to an embodiment of the present invention is capable of executing the external parameter calibration method for a vehicle-mounted surround view camera according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the implementation of the method.
[0091] Example 4 FIG. 6 is a structural schematic diagram of a vehicle according to a fourth embodiment of the present invention. As shown in FIG. 6, the vehicle 10 includes an in-vehicle surround-view camera 20, at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., in which a computer program executable by the at least one processor is stored in the memory, and the processor 11 can perform various appropriate operations and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. The RAM 13 further stores various programs and data required for the operation of the vehicle 10. The in-vehicle surround-view camera 20, the processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0092] The I / O interface 15 connects to several components in the vehicle 10, including input units 16, e.g. a keyboard, a mouse, etc., output units 17, e.g. various types of displays, speakers, etc., storage units 18, e.g. a magnetic disk, an optical disk, etc., and a communication unit 19, e.g. a network card, a modem, a radio communication transceiver, etc. The communication unit 19 allows the vehicle 10 to exchange information / data with other devices, e.g. via a computer network of the Internet and / or various telecommunication networks.
[0093] The processor 11 may be a general-purpose and / or special-purpose processing component having various processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphic processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors that execute algorithms of machine learning models, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 executes each of the methods and processes described above, such as the external parameter calibration method for an in-vehicle surround view camera.
[0094] In some embodiments, the external parameter calibration method for an in-vehicle surround view camera can be realized as a computer program, which is tangibly included in a computer-readable storage medium, such as storage unit 18. In some embodiments, the computer program can be partially or completely loaded and / or installed in vehicle 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, it can perform one or more steps of the external parameter calibration method for an in-vehicle surround view camera described above. Alternatively, in other embodiments, processor 11 is configured to perform the external parameter calibration method for an in-vehicle surround view camera in any other suitable manner (e.g., by firmware).
[0095] Various embodiments of the systems and techniques described herein may be implemented in digital electronic circuitry systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific general purpose products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include being embodied in one or more computer programs that can be executed and / or interpreted by a programmable system including at least one programmable processor, which may be a special purpose or general purpose programmable processor that can receive data and instructions from a memory system, at least one input device, and at least one output device, and transmit data and instructions to the memory system, the at least one input device, and the at least one output device.
[0096] Computer programs for implementing the methods of the present invention may be written employing any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, a special purpose computer or other programmable data processing apparatus, such that when the computer programs are executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are performed. The computer programs may be executed entirely on the device, partially on the device, as a separate software package, partially on the device and partially on a remote device, or entirely on a remote device or server.
[0097] In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain or store a computer program for use in or in combination with an instruction execution system, device or apparatus. A computer-readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any suitable combination of the above. Optionally, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include an electrical connection by one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical memory device, a magnetic memory device, or any suitable combination of the above.
[0098] To provide interaction with a user, the systems and techniques described herein can be implemented in a vehicle that has a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user, and a keyboard and pointing device (e.g., a mouse or trackball) by which the user can provide input to the vehicle. Other types of devices can be used to provide interaction with a user, for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or haptic feedback), and input from the user can be received in any form (including sound input, speech input, or tactile input).
[0099] The systems and techniques described herein may be implemented in a computing system that includes background components (e.g., as a data server), or in a computing system that includes middleware components (such as an application server), or in a computing system that includes a front-end component (a user computer having a graphical user interface or network browser through which a user can interact with embodiments of the systems and techniques described herein), or in a computing system that includes any combination of such background components, middleware components, or front-end components. The components of the system may be connected to each other by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0100] The computing system may include a client terminal and a server. The client terminal and the server are generally remote from each other and usually interact with each other via a communication network. The relationship between the client terminal and the server is established by a computer program running on a corresponding computer and having a client terminal-server relationship with each other. The server may be a cloud server, also called a cloud computing server or cloud host, which is a hosting product in a cloud computing service system to solve the defects of large management difficulty and weak business deployment that exist in traditional physical host and VPS services.
[0101] It should be understood that the various types of flows shown above can be used, and steps can be rearranged, added, or removed. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical aspects of the present invention can be achieved, and are not limited hereto.
[0102] The above specific embodiments do not limit the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions are possible based on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. The present invention is applied to a vehicle equipped with an in-vehicle surround view camera including a first camera, a second camera, a third camera, and a fourth camera, wherein the position of the first camera is adjacent to the position of the third camera and the position of the fourth camera, the position of the second camera is adjacent to the position of the third camera and the position of the fourth camera, determining external parameters of the first camera and external parameters of the second camera according to body odometer information of the vehicle, first visual odometer information of the first camera, and second visual odometer information of the second camera; determining a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value according to the vehicle body odometer information, the first visual odometer information, the second visual odometer information, the external parameters of the first camera, and the external parameters of the second camera; determining a first target position / posture initial value, a second target position / posture initial value, a third target position / posture initial value, and a fourth target position / posture initial value according to the first position / posture initial value, the second position / posture initial value, the third position / posture initial value, and the fourth position / posture initial value; determining the external parameters of the third camera and the external parameters of the fourth camera according to the external parameters of the first camera, the external parameters of the second camera, the first target position and orientation initial value, the second target position and orientation initial value, the third target position and orientation initial value, and the fourth target position and orientation initial value; The present invention relates to a method for calibrating external parameters of an in-vehicle surround view camera.
2. determining a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value in accordance with the vehicle body odometer information, the first visual odometer information, the second visual odometer information, an external parameter of the first camera, and an external parameter of the second camera, determining a first valid map point, a second valid map point, a third valid map point and a fourth valid map point according to the vehicle body odometer information, a first map point in the first visual odometer information, a second map point in the second visual odometer information and a capturing range of each camera; transforming the first and second effective map points into a first camera coordinate system to obtain first and second coordinate points, and transforming the third and fourth effective map points into a second camera coordinate system to obtain third and fourth coordinate points, according to the positions and attitudes of the first and second visual odometer information; transforming the first coordinate point, the second coordinate point, the third coordinate point, and the fourth coordinate point into a vehicle body coordinate system according to an external parameter of the first camera and an external parameter of the second camera, respectively, to obtain a first vehicle body coordinate point, a second vehicle body coordinate point, a third vehicle body coordinate point, and a fourth vehicle body coordinate point; determining a first target external parameter initial value and a second target external parameter initial value of the third camera, and a third target external parameter initial value and a fourth target external parameter initial value of the fourth camera, according to the images captured by each camera, the first vehicle body coordinate point, the second vehicle body coordinate point, the third vehicle body coordinate point, and the fourth vehicle body coordinate point; determining a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value according to the first target external parameter initial value, the second target external parameter initial value, the third target external parameter initial value, the fourth target external parameter initial value, the external parameters of the first camera, and the external parameters of the second camera; 2. The method of claim 1 .
3. determining a first target position / posture initial value, a second target position / posture initial value, a third target position / posture initial value, and a fourth target position / posture initial value according to the first position / posture initial value, the second position / posture initial value, the third position / posture initial value, and the fourth position / posture initial value; determining the first position / posture initial value, the second position / posture initial value, the third position / posture initial value, and the fourth position / posture initial value as a first target position / posture initial value, a second target position / posture initial value, a third target position / posture initial value, and a fourth target position / posture initial value; 2. The method of claim 1 .
4. determining a first target position / posture initial value, a second target position / posture initial value, a third target position / posture initial value, and a fourth target position / posture initial value according to the first position / posture initial value, the second position / posture initial value, the third position / posture initial value, and the fourth position / posture initial value; if a first luminance error value in the first position / posture initial value, a second luminance error value in the second position / posture initial value, a third luminance error value in the third position / posture initial value, and a fourth luminance error value in the fourth position / posture initial value do not satisfy a first predetermined condition, updating each of the position / posture initial values based on a first predetermined step size until each luminance error value in each of the updated position / posture initial values satisfies a first predetermined condition, and determining each of the position / posture initial values as each of the target position / posture initial values; the first luminosity error value is an error value between a luminosity of a first projection point and a luminosity of a first target feature point, the first projection point being a point obtained by projecting a first effective map point of the first camera onto an image coordinate system of the third camera at a first initial position and orientation value; the second luminosity error value is an error value between a luminosity of a second projected point and a luminosity of a second target feature point, and the second projected point is a point obtained by projecting a second effective map point of the first camera onto an image coordinate system of the fourth camera at a second initial position and orientation value; the third luminosity error value is an error value between a luminosity of a third projection point and a luminosity of a third target feature point, the third projection point being a point obtained by projecting a third effective map point of the second camera onto an image coordinate system of the third camera at a third initial position and orientation value; the fourth luminosity error value is an error value between a luminosity of a fourth projected point and a luminosity of a fourth target feature point, and the fourth projected point is a point obtained by projecting a fourth effective map point of the second camera onto an image coordinate system of the fourth camera at a fourth initial position and orientation value; the first predetermined condition is that the first luminosity error value reaches a first threshold, the second luminosity error value reaches a second threshold, the third luminosity error value reaches a third threshold, and the fourth luminosity error value reaches a fourth threshold.
3. The method of claim 2 .
5. determining a first valid map point, a second valid map point, a third valid map point, and a fourth valid map point according to the vehicle body odometer information, the first map point in the first visual odometer information, the second map point in the second visual odometer information, and the capturing range of each camera; Determining a scale factor, which is a parameter representing a ratio between a scale of the real world and a scale of a three-dimensional map constructed by a camera, based on the vehicle body motion trajectory information in the vehicle body odometer information and the camera motion trajectory information in the determined visual odometer information; proportionally transforming the first map point and the second map point based on the scale factor to obtain a first real map point at a real world scale for the first map point and a second real map point at a real world map scale for the second map point; determining a first overlap area, which is an overlap area of the collection range between the first camera and the third camera, a second overlap area, which is an overlap area of the collection range between the first camera and the fourth camera, a third overlap area, which is an overlap area of the collection range between the second camera and the third camera, and a fourth overlap area, which is an overlap area of the collection range between the second camera and the fourth camera, according to the collection range of each camera; determining a map point in the first overlap area of the first real map point as a first valid map point, determining a map point in the second overlap area of the first real map point as a second valid map point, determining a map point in the third overlap area of the second real map point as a third valid map point, and determining a map point in the fourth overlap area of the second real map point as a fourth valid map point.
3. The method of claim 2 .
6. determining a first target external parameter initial value and a second target external parameter initial value of the third camera and a third target external parameter initial value and a fourth target external parameter initial value of the fourth camera according to the images captured by each camera, the first vehicle body coordinate point, the second vehicle body coordinate point, the third vehicle body coordinate point, and the fourth vehicle body coordinate point; According to the images captured by each camera, determining a first target feature point which is a corresponding feature point in the image of the third camera at a first body coordinate point obtained by the first camera and the third camera through feature point matching, a second target feature point which is a corresponding feature point in the image of the fourth camera at a second body coordinate point obtained by the first camera and the fourth camera through feature point matching, a third target feature point which is a corresponding feature point in the image of the third camera at a third body coordinate point obtained by the second camera and the third camera through feature point matching, and a fourth target feature point which is a corresponding feature point in the image of the fourth camera at a fourth body coordinate point obtained by the second camera and the fourth camera through feature point matching; determining a first external parameter initial value and a second external parameter initial value of the third camera, and a third external parameter initial value and a fourth external parameter initial value of the fourth camera according to each vehicle body coordinate point and each target feature point by a perspective n-point positioning PNP method; For each of the third and fourth cameras, for each numerical value in a predetermined area of the camera that is related to an initial external parameter value of the corresponding camera, update the initial external parameter value of the camera to the numerical value, project the body coordinate point corresponding to the camera into an image coordinate system of the camera to obtain a corresponding two-dimensional coordinate point, and determine a luminance error between the corresponding two-dimensional coordinate point of the camera and a target feature point; determining a numerical value corresponding to a minimum luminance error among the luminance errors corresponding to the camera as a corresponding target external parameter initial value of the camera; 3. The method of claim 2 .
7. After determining the external parameters of the third camera and the external parameters of the fourth camera according to the external parameters of the first camera, the external parameters of the second camera, the first target position and orientation initial value, the second target position and orientation initial value, the third target position and orientation initial value, and the fourth target position and orientation initial value, For the external parameters of each camera, the error index is determined by the following formula: E rr is the error index, which is a parameter index that evaluates the optimization status of the external parameters of each camera, and E 1 is a reprojection error value obtained by projecting the first effective map point of the first camera onto the image coordinate system of the third camera, and E 2 is a reprojection error value obtained by projecting a third valid map point of the second camera onto the image coordinate system of the third camera, and E 3 is a reprojection error value obtained by projecting the second effective map point of the first camera onto the image coordinate system of the fourth camera, and E 4 is a reprojection error value obtained by projecting the fourth valid map point of the second camera onto the image coordinate system of the fourth camera, and E 5 is a hand-eye calibration error value determined based on the vehicle odometer and the first visual odometer of the first camera, and E 6 is a hand-eye calibration error value determined based on the vehicle body odometer and a second visual odometer of the second camera; If the error index reaches an error threshold, determine the extrinsic parameters of each camera as target extrinsic parameters of each camera, and the target extrinsic parameters are the extrinsic parameters after optimization; If the error indicator does not reach the error threshold, updating the extrinsic parameters of at least one camera based on a second predetermined step size until the corresponding error indicator of each camera reaches the error threshold, and determining the corresponding extrinsic parameters of each camera as target extrinsic parameters of each camera when the error threshold is reached.
2. The method of claim 1 .
8. After determining the target external parameters of each camera, determining, for each camera, Euler angle information representing a rotation angle of the camera relative to a vehicle body coordinate system and translation vector information representing an amount of translation of the camera relative to the vehicle body coordinate system, based on the target external parameters of the camera; determining whether the Euler angle information and the translation vector information of the camera satisfy a second predetermined condition, that is, the Euler angle information is within a first threshold range and the translation vector information is within a second threshold range; If so, determining that the target extrinsic parameter calibration of the camera is successful; If not, determining that the target extrinsic parameter calibration of the camera has failed.
7. The method of claim 6.
9. The vehicle is provided with an in-vehicle surround view camera having a first camera, a second camera, a third camera, and a fourth camera, the position of the first camera is adjacent to the position of the third camera and the position of the fourth camera, the position of the second camera is adjacent to the position of the third camera and the position of the fourth camera, a first external parameter determination module for determining external parameters of the first camera and external parameters of the second camera according to body odometer information of the vehicle, first visual odometer information of the first camera, and second visual odometer information of the second camera; a position and orientation determination module for determining a first position and orientation initial value, a second position and orientation initial value, a third position and orientation initial value, and a fourth position and orientation initial value according to the vehicle body odometer information, the first visual odometer information, the second visual odometer information, an external parameter of the first camera, and an external parameter of the second camera; an initial value determination module for determining a first target position / posture initial value, a second target position / posture initial value, a third target position / posture initial value, and a fourth target position / posture initial value according to the first position / posture initial value, the second position / posture initial value, the third position / posture initial value, and the fourth position / posture initial value; a second external parameter determination module for determining external parameters of the third camera and external parameters of the fourth camera according to the external parameters of the first camera, the external parameters of the second camera, the first target position and orientation initial value, the second target position and orientation initial value, the third target position and orientation initial value, and the fourth target position and orientation initial value; The present invention relates to an external parameter calibration device for an in-vehicle surround view camera.
10. An in-vehicle surround view camera, At least one processor; a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the external parameter calibration method for an in-vehicle surround view camera according to any one of claims 1 to 8. A vehicle characterized by:
11. A processor is stored with computer instructions for implementing the external parameter calibration method for an in-vehicle surround view camera according to any one of claims 1 to 8 when executed. A computer-readable storage medium comprising:
Citation Information
Patent Citations
Device, method, and program for calibration of in-vehicle camera
JP2011087308A
Calibration device and calibration method
JP2020060976A
