Calibration method, device and vehicle

By acquiring component type and location information from images of vehicle-mounted sensors, and using predictive models to automatically correct sensor extrinsic parameters, the problems of high cost and poor accuracy in online calibration are solved, enabling high-precision calibration in various scenarios and ensuring vehicle safety.

CN120451277BActive Publication Date: 2026-11-24YINWANG INTELLIGENT TECHNOLOGIES CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410149390.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-01
Publication Date
2026-11-24
Estimated Expiration
2044-02-01

AI Technical Summary

Technical Problem

Existing online calibration solutions suffer from high calibration costs, poor calibration accuracy, and limited application scenarios. They also fail to update sensor extrinsic parameters in a timely manner, leading to a decrease in vehicle perception accuracy and endangering driving safety.

Method used

By acquiring images from vehicle-mounted sensors, the type and location information of components are determined. Using pre-configured correspondences and prediction models, sensor extrinsic parameters are automatically detected and corrected. Multi-frame filtering is used to improve calibration accuracy and stability, making it suitable for various scenarios.

Benefits of technology

This improves the accuracy of online sensor calibration and reduces costs, ensuring that sensors maintain good working condition in different scenarios and enhancing vehicle driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120451277B_ABST
    Figure CN120451277B_ABST
Patent Text Reader

Abstract

This application provides a calibration method, apparatus, and vehicle. The method, applicable to the field of intelligent vehicles, includes: acquiring a first image collected by an onboard sensor; determining first type information of a first component in the first image; determining a first extrinsic parameter based on the first type information and a first correspondence, wherein the first correspondence is a correspondence between component type and calibrable extrinsic parameters, and the calibrable extrinsic parameter includes the first extrinsic parameter; and performing online calibration of the first component based on the first extrinsic parameter. This method improves the accuracy of online sensor calibration in vehicles, reduces the cost of online sensor calibration, and is applicable to different scenarios, exhibiting good generalization ability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent vehicles, and more specifically, to a calibration method, apparatus, and vehicle. Background Technology

[0002] Autonomous driving technology has become a new direction for vehicle development and is gaining increasing popularity. Accurate sensor extrinsic parameters are essential for achieving high-precision fusion perception in the process of realizing autonomous driving. With vehicle use, collisions, or aging, the actual extrinsic parameters of sensors will inevitably deviate from their initial values. Failure to update these parameters in a timely manner will cause a decrease in the vehicle's perception accuracy or even its failure, endangering driving safety and potentially leading to serious accidents.

[0003] Currently, online calibration solutions can update sensor extrinsic parameters in a timely manner, ensuring vehicle driving safety. However, current online calibration solutions suffer from high calibration costs, poor calibration accuracy, and limited application scenarios, which urgently need to be addressed. Summary of the Invention

[0004] This application provides a calibration method, apparatus, and vehicle that can improve the accuracy of online sensor calibration in vehicles and reduce the cost of online sensor calibration.

[0005] In a first aspect, a calibration method is provided, characterized in that the method includes: acquiring a first image collected by an on-board sensor; determining first type information of a first component in the first image; determining a first external parameter based on the first type information and a first correspondence, wherein the first correspondence is a correspondence between component type and calibrable external parameter, and the calibrable external parameter includes the first external parameter; and performing online calibration based on the first external parameter.

[0006] In one possible implementation, the vehicle sensor can be a camera device or radar, wherein the camera device can be a front-view camera, a surround-view camera, a rear-view camera, a side-view camera, or a built-in camera.

[0007] In one possible implementation, the first component may include one or more of the following: door seam, door handle, wheel arch, wheel arch outline, sign, lower edge of vehicle, and license plate.

[0008] In one possible implementation, the first type of information may include either feature point type information or contour line type information. For example, when the first component is a license plate, the first type of information may indicate that the first component is a license plate and that the license plate includes one or more feature points. As another example, when the first component is the lower edge of a vehicle, the first type of information may indicate that the first component is the lower edge of the vehicle and that the lower edge includes a contour line.

[0009] In one possible implementation, the vehicle can be pre-configured offline for the first correspondence before executing the calibration method.

[0010] In this embodiment, the first type information of the first component can be determined based on the image collected by the vehicle-mounted sensor, and the first external parameter can be determined based on the first type information and the first correspondence. Then, online calibration can be performed based on the first external parameter. In this way, the accuracy of online calibration of sensors in the vehicle can be improved, the cost of online calibration of sensors can be reduced, and the method can be applied to different scenarios, with good generalization.

[0011] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: determining first position information of the first component in the first image; the online calibration based on the first extrinsic parameter includes: determining a first compensation value corresponding to the first extrinsic parameter based on the first position information and the second position information, wherein the second position information indicates a preset reference position of the first component in the first image; and performing online calibration based on the first compensation value.

[0012] In one possible implementation, the vehicle can be pre-configured offline for the aforementioned second location information before performing the calibration method.

[0013] In this embodiment, a first compensation value for a first external parameter can be determined using the first position information of the first component in the first image and the second preset position information of the first component in the first image, and online calibration can be performed based on the first compensation value. In this way, even if the vehicle sensor experiences a large angular deviation, it can still be corrected based on the first compensation value, thus ensuring that the vehicle sensor always maintains a good working condition.

[0014] In conjunction with the first aspect, in some implementations of the first aspect, the first type information and the first location information are obtained by inputting the first image into a first prediction model, the first prediction model being obtained based on training samples, the training samples including: a first sample image, first sample type information and first sample location information.

[0015] In one possible implementation, the first predictive model can be a neural network model, such as a convolutional neural network (CNN) or a recurrent neural network (RNN). Alternatively, the first predictive model can be a machine learning algorithm, such as a support vector machine (SVM).

[0016] In one possible implementation, a first prediction model can be pre-trained based on training samples and configured in the vehicle before the calibration method is executed.

[0017] In this embodiment of the application, the first type information and the first location information are obtained through the first prediction model, which enables the detection of the type and location of the first component to be automated, thereby improving processing efficiency and the reliability of detection results.

[0018] In conjunction with the first aspect, in some implementations of the first aspect, the first location information includes: location information of N feature points, where N is an integer greater than 1; the step of determining the first compensation value corresponding to the first extrinsic parameter based on the first location information and the second location information includes: performing noise removal processing on the location information of the N feature points to obtain location information of Q feature points, where Q is less than or equal to N; and determining the first compensation value based on the location information of the Q feature points and the second location information.

[0019] In one possible implementation, noise removal of the location information of N feature points may include: clustering the feature points and / or calculating the mean, etc.

[0020] In this embodiment, noise removal processing can be performed on the position information of N feature points to obtain relatively accurate first position information. Then, a first compensation value is determined based on the first and second position information. In this way, a more accurate first compensation value can be obtained, thereby further improving the accuracy of online calibration of sensors in vehicles.

[0021] In conjunction with the first aspect, in some implementations of the first aspect, the step of removing noise from the position information of the N feature points to obtain the position information of the Q feature points includes: fitting a first curve based on the position information of the N feature points; when the distance between the M feature points and the first curve is greater than or equal to a preset threshold, removing the position information of the M feature points from the first position information to obtain the position information of the Q feature points, wherein the N feature points include the M feature points, M is greater than or equal to 1, and M is less than N.

[0022] In this embodiment of the application, when the first type of information is feature information of the contour line type, the first curve can be fitted by N feature points on the contour line, and the M feature points that are far away from the first curve can be removed. In this way, the position information of the N feature points can achieve the purpose of good noise removal, thereby obtaining a more accurate first compensation value.

[0023] In conjunction with the first aspect, in some implementations of the first aspect, the online calibration based on the first compensation value includes: performing multi-frame filtering on the first compensation value to obtain a second compensation value; and performing online calibration based on the second compensation value.

[0024] In one possible implementation, multi-frame filtering of the first compensation value may include: accumulating n first compensation values ​​to obtain a set of statistical data, sorting the n first compensation values ​​in the statistical data to remove outliers, and obtaining the second compensation value when the standard deviation of the statistical data is less than a preset threshold.

[0025] In this embodiment, the first compensation value can be filtered through multiple frames to obtain the second compensation value, and then online calibration can be performed based on the second compensation value. In this way, a stable online calibration result (i.e., the second compensation value) can be output, and the accuracy of the sensor online calibration can be further improved.

[0026] In conjunction with the first aspect, in some implementations of the first aspect, the first type of information includes: feature information of the contour line type, and the step of determining the first extrinsic parameter according to the first type of information and the first correspondence includes: selecting at least one Euler angle from a plurality of Euler angles as the first extrinsic parameter according to the feature information of the contour line type and the first correspondence.

[0027] For example, when the first type of information is the lower edge of the vehicle body, the yaw and roll angles can be selected as the first extrinsic parameters.

[0028] In this embodiment of the application, when the first type of information is contour line type feature information, at least one Euler angle can be selected from multiple Euler angles as the first extrinsic parameter. In this way, the application of contour features is supported, and the calibration method can be applied to more application scenarios.

[0029] Secondly, a calibration device is provided, the device comprising an acquisition unit and a processing unit; the acquisition unit is configured to acquire a first image collected by an on-board sensor; the processing unit is configured to: determine a first type information of a first component in the first image; determine a first extrinsic parameter based on the first type information and a first correspondence, wherein the first correspondence is a correspondence between component type and calibrable extrinsic parameter, the calibrable extrinsic parameter including the first extrinsic parameter; and perform online calibration based on the first extrinsic parameter.

[0030] In conjunction with the second aspect, in some implementations of the second aspect, the processing unit is further configured to: determine the first position information of the first component in the first image; the processing unit is specifically configured to: determine the first compensation value corresponding to the first extrinsic parameter based on the first position information and the second position information, wherein the second position information is used to indicate a preset reference position of the first component in the first image; and perform online calibration based on the first compensation value.

[0031] In conjunction with the second aspect, in some implementations of the second aspect, the first type information and the first location information are obtained by inputting the first image into a first prediction model, the first prediction model being obtained based on training samples, the training samples including: a first sample image, first sample type information and first sample location information.

[0032] In conjunction with the second aspect, in some implementations of the second aspect, the first location information includes: location information of N feature points, where N is an integer greater than 1; the processing unit is specifically used to: perform noise removal processing on the location information of the N feature points to obtain location information of Q feature points, where Q is less than or equal to N; and determine the first compensation value based on the location information of the Q feature points and the second location information.

[0033] In conjunction with the second aspect, in some implementations of the second aspect, the processing unit is specifically used to: fit a first curve based on the position information of the N feature points; when the distance between the M feature points and the first curve is greater than or equal to a preset threshold, remove the position information of the M feature points from the first position information to obtain the position information of the Q feature points, wherein the N feature points include the M feature points, M is greater than or equal to 1, and M is less than N.

[0034] In conjunction with the second aspect, in some implementations of the second aspect, the processing unit is specifically used for: performing multi-frame filtering on the first compensation value to obtain a second compensation value; and performing online calibration based on the second compensation value.

[0035] In conjunction with the second aspect, in some implementations of the second aspect, the first type of information includes: feature information of the contour line type; the processing unit is specifically used to select at least one Euler angle from multiple Euler angles as the first extrinsic parameter based on the feature information of the contour line type and the first correspondence.

[0036] Thirdly, a calibration apparatus is provided, comprising: at least one processor and a memory, wherein the at least one processor is coupled to the memory for reading and executing instructions in the memory, such that the apparatus implements the method in any of the implementations of the first aspect described above.

[0037] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium storing program code, which, when run on a computer, causes the computer to perform the method in any of the implementations of the first aspect described above.

[0038] Fifthly, a chip is provided, the chip including circuitry for performing the method in any of the implementations of the first aspect described above.

[0039] Sixthly, a computer program product is provided, the computer product including a computer program that, when the computer program is run, causes a computer to perform the method in any of the implementations of the first aspect described above.

[0040] In a seventh aspect, a vehicle is provided, comprising: a calibration device as described in any of the implementations of the second aspect above. Attached Figure Description

[0041] Figure 1 This is a functional schematic diagram of a vehicle provided in an embodiment of this application;

[0042] Figure 2 This is the system architecture to which the calibration method provided in the embodiments of this application is applicable;

[0043] Figure 3 This is a schematic flowchart of a calibration method provided in an embodiment of this application;

[0044] Figure 4 This is a schematic flowchart illustrating another calibration method provided in an embodiment of this application;

[0045] Figure 5 This is a schematic diagram of a vehicle feature obtained from a side-view fisheye camera according to an embodiment of this application;

[0046] Figure 6 This is a schematic diagram illustrating inference using a vehicle feature network according to an embodiment of this application;

[0047] Figure 7 This is a schematic diagram of the license plate point features of a vehicle acquired by a forward-looking fisheye camera, provided in an embodiment of this application.

[0048] Figure 8 This is a schematic flowchart of a multi-frame filtering method provided in an embodiment of this application;

[0049] Figure 9 This is a schematic flowchart illustrating another calibration method provided in an embodiment of this application;

[0050] Figure 10 This is a schematic diagram illustrating how the edge of a vehicle changes with the angle of a sensor, according to an embodiment of this application.

[0051] Figure 11 This is a schematic diagram of a vehicle outline fitting and noise reduction method provided in an embodiment of this application;

[0052] Figure 12 This is a schematic diagram of a calibration device provided in an embodiment of this application;

[0053] Figure 13 This is a schematic diagram of another calibration device provided in the embodiments of this application. Detailed Implementation

[0054] The technical solutions in this application will now be described with reference to the accompanying drawings.

[0055] In the description of the embodiments of this application, unless otherwise stated, " / " means "or", for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. In this application, "at least one" means one or more, and "more" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0056] The use of prefixes such as "first" and "second" in this application embodiment is solely for distinguishing different descriptive objects and does not limit the position, order, priority, quantity, or content of the described objects. The use of ordinal numbers and other prefixes to distinguish descriptive objects in this application embodiment does not constitute a limitation on the described objects. The description of the described objects is found in the claims or the context of the embodiments, and the use of such prefixes should not constitute unnecessary restrictions.

[0057] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0058] Figure 1 This is a functional schematic diagram of the vehicle 100 provided in the embodiments of this application.

[0059] Vehicle 100 may include multiple subsystems, such as perception system 120 and computing platform 130. Optionally, vehicle 100 may include more or fewer subsystems, and each subsystem may include one or more components. In addition, each subsystem and component of vehicle 100 may be interconnected via wired or wireless means.

[0060] The perception system 120 may include several types of sensors for sensing information about the environment surrounding the vehicle 100. For example, the perception system 120 may include a positioning system, which may be a global positioning system (GPS), a BeiDou system, or another positioning system. The perception system 120 may include one or more of the following: an inertial measurement unit (IMU), lidar, millimeter-wave radar, ultrasonic radar, and a camera device.

[0061] Some or all of the functions of vehicle 100 can be controlled by computing platform 130. Computing platform 130 may include processors 131 to 13n (n being a positive integer). A processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction read and execute capabilities, such as a central processing unit (CPU), microprocessor, graphics processing unit (GPU) (which can be understood as a type of microprocessor), or digital signal processor (DSP). In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. These logical relationships are fixed or reconfigurable. For example, the processor may be a hardware circuit implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), such as an FPGA. In reconfigurable hardware circuits, the process of the processor loading a configuration document and configuring the hardware circuit can be understood as the process of the processor loading instructions to implement some or all of the functions of the aforementioned units. Furthermore, the processor can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (NPU), tensor processing unit (TPU), deep learning processing unit (DPU), etc. In addition, the computing platform 130 may also include a memory for storing instructions. Some or all of the processors 131 to 13n can call the instructions in the memory to implement the corresponding functions.

[0062] The computing platform 130 can control the functions of the vehicle 100 based on inputs received from various subsystems (e.g., the sensing system 120). In some embodiments, the computing platform 130 can be used to provide control over many aspects of the vehicle 100 and its subsystems.

[0063] Optionally, the above components are just an example. In actual applications, the components in each of the above modules may be added or deleted as needed.

[0064] The vehicle 100 in this application may include: road vehicles, water vehicles, air vehicles, industrial equipment, agricultural equipment, or entertainment equipment, etc. For example, vehicle 100 may be a means of transportation (such as commercial vehicles, passenger cars, motorcycles, flying cars, trains, etc.), industrial vehicles (such as forklifts, trailers, tractors, etc.), engineering vehicles (such as excavators, bulldozers, cranes, etc.), agricultural equipment (such as lawnmowers, harvesters, etc.), amusement equipment, toy vehicles, etc. The embodiments of this application do not specifically limit the type of vehicle.

[0065] The following uses vehicle 100 as an example of an autonomous vehicle to illustrate the technical problems that this application needs to solve and the technical solutions adopted.

[0066] Autonomous driving technology has become a new direction for vehicle development and is gaining increasing popularity. Accurate sensor extrinsic parameters are essential for achieving high-precision fusion perception in the process of realizing autonomous driving. With vehicle use, collisions, or aging, the actual extrinsic parameters of sensors will inevitably deviate from their initial values. Failure to update these parameters in a timely manner will lead to a decrease in vehicle perception accuracy or even vehicle failure, endangering driving safety and potentially causing serious accidents. While traditional calibration methods using targets offer high accuracy, the cost of building calibration workshops is high for manufacturers; for users, sending their vehicles to 4S dealerships for recalibration also incurs significant time and financial costs. Therefore, online vehicle calibration solutions are essential.

[0067] Currently, online calibration solutions suffer from problems such as high calibration costs, poor calibration accuracy, and limited application scenarios, which urgently need to be addressed.

[0068] For example, one online calibration scheme can acquire lane line images using an onboard camera, derive the world coordinate straight line equation of the lane lines based on the acquired images, and then optimize the extrinsic parameters of the onboard camera based on the world coordinate straight line equation to achieve extrinsic parameter calibration of the onboard camera. However, the application scenarios for this online calibration scheme are very limited; that is, when the lane lines are not parallel or the number of lane lines in the field of view is insufficient, this scheme cannot be used for online calibration.

[0069] For example, one online calibration scheme can detect the pose of an in-vehicle camera. When the pose of the in-vehicle camera changes, it retrieves matching calibration parameters from preset calibration data based on the amount of pose change, and uses these calibration parameters to update the extrinsic parameters of the in-vehicle camera. This calibration method requires pre-establishing a mapping relationship between images and calibration parameters, resulting in a large amount of data collection and high application costs. On the other hand, the multiple extrinsic parameters being calibrated are often coupled together, while the aforementioned mapping relationship is discrete. It is difficult for the images and calibration parameters in the mapping relationship to present a one-to-one correspondence, which limits the accuracy of the finally determined calibration parameters.

[0070] This application provides a calibration method, apparatus, and vehicle that can improve the accuracy of online sensor calibration in vehicles, reduce the cost of online sensor calibration, and the method is applicable to different scenarios, exhibiting good generalization.

[0071] Figure 2 This is the system architecture to which the calibration method provided in the embodiments of this application is applicable, and this system architecture can be applied to Figure 1 Of the 100 vehicles.

[0072] like Figure 2 As shown, the system architecture may include: onboard sensors and an onboard computing platform. The onboard sensors may include: radar and camera devices, etc. After the vehicle starts, the onboard sensors can acquire sensor data in real time and input the sensor data to the onboard computing platform. The onboard computing platform may be the computing platform 130 in vehicle 100. After acquiring sensor data, the onboard computing platform can use a pre-trained vehicle feature detection network to detect the sensor data and extract the vehicle feature category and location. Then, the onboard computing platform can perform feature preprocessing and filtering on the vehicle features and locations to select calibrable extrinsic parameters. Next, the onboard computing platform optimizes the calibrable extrinsic parameters to ensure that the pre-stored vehicle feature locations coincide with the real-time feature locations, thereby outputting the vehicle features. Finally, the onboard computing platform can obtain stable sensor extrinsic parameter values ​​or extrinsic parameter compensation values ​​by accumulating multiple frames of vehicle features.

[0073] Figure 3 This is a schematic flowchart illustrating a calibration method provided in an embodiment of this application. The execution subject of method 300 can be a vehicle. When the execution subject of method 300 is vehicle 100, it can be executed by computing platform 130 in vehicle 100, or by system-on-chip (SoC) in computing platform 130, or by processor in computing platform 130. The following describes method 300 with vehicle as the execution subject. Method 300 can include steps S301 to S304.

[0074] S301, acquire the first image collected by the vehicle-mounted sensor.

[0075] Optionally, the vehicle-mounted sensor can be a camera device or radar, wherein the camera device can be a front-view camera, a surround-view camera, a rear-view camera, a side-view camera, or a built-in camera. More optionally, the camera device can be a side-view fisheye camera.

[0076] S302, determine the first type information of the first component in the first image.

[0077] Optionally, the first component may include one or more of the following: door seam, door handle, wheel arch, wheel arch outline, sign, lower edge of vehicle, and license plate.

[0078] Optionally, the first type of information may include: feature point type information or contour line type information. For example, when the first component is a license plate, the first type of information may indicate that the first component is a license plate and that the license plate includes one or more feature points. As another example, when the first component is the lower edge of a vehicle, the first type of information may indicate that the first component is the lower edge of a vehicle and that the lower edge includes a contour line.

[0079] S303, determine the first external parameter based on the first type of information and the first correspondence.

[0080] The first correspondence is the correspondence between component type and calibrable external parameters, and the calibrable external parameters include the first external parameter.

[0081] Optionally, before step S303, the vehicle can configure the first correspondence offline. For example, the vehicle obtains a configuration file before leaving the factory or during maintenance at a 4S store, and the configuration file includes the aforementioned first correspondence.

[0082] S304, online calibration is performed based on the first external parameter.

[0083] In this embodiment, the first type information of the first component can be determined based on the image collected by the vehicle-mounted sensor, and the first external parameter can be determined based on the first type information and the first correspondence. Then, online calibration can be performed based on the first external parameter. In this way, the accuracy of online calibration of sensors in the vehicle can be improved, the cost of online calibration of sensors can be reduced, and the method can be applied to different scenarios, with good generalization.

[0084] In one possible implementation, before step S304, method 300 further includes: determining first position information of the first component in the first image. Then, in step S304, the vehicle can determine a first compensation value corresponding to the first extrinsic parameter based on the first and second position information, and perform online calibration based on the first compensation value. The second position information is used to indicate a preset reference position of the first component in the first image. In this way, even if the vehicle sensor experiences a large angular deviation, the vehicle sensor can be corrected based on the first compensation value, thereby ensuring that the vehicle sensor always maintains a good working condition.

[0085] Optionally, the vehicle can be pre-configured with the aforementioned second location information offline.

[0086] In one possible implementation, the first type information and the first location information are obtained by inputting the first image into a first prediction model. This first prediction model is trained based on training samples, which include: a first sample image, first sample type information, and first sample location information. Thus, by using the first prediction model, the detection of the type and location of the first component can be automated, improving processing efficiency and the reliability of the detection results, and further enhancing the efficiency of sensor calibration.

[0087] Optionally, the specific process of training the first prediction model based on the training samples can be as follows: input the first sample image into the first prediction model to obtain the predicted first type information and first position information; train the first prediction model based on the first type information, first position information, first sample type information and first sample position information; when the first type information finally output by the first prediction model is close to the first sample type information and the first position information is close to the first sample position information, the first prediction model is trained.

[0088] Optionally, the pre-trained first prediction model can be configured in the vehicle before applying the first prediction model.

[0089] In one possible implementation, the first predictive model can be a neural network model, such as a CNN or RNN. Alternatively, the first predictive model can be a machine learning algorithm, such as an SVM.

[0090] In one possible implementation, the first position information includes: position information of N feature points, where N is an integer greater than 1. Based on the first position information and the second position information, a first compensation value corresponding to a first extrinsic parameter is determined. This includes performing noise removal processing on the position information of the N feature points to obtain position information of Q feature points, where Q is less than or equal to N. The first compensation value is then determined based on the position information of the Q feature points and the second position information. This approach yields a more accurate first compensation value, thereby further improving the accuracy of online sensor calibration in the vehicle.

[0091] For example, when the first component is a license plate, the first position information may include: the position information of the left license plate corner point, the position information of the left license plate nail corner point, the position information of the right license plate corner point, and the position information of the right license plate nail corner point.

[0092] Optionally, noise removal processing of the location information of N feature points may include: clustering the feature points and / or calculating the mean, etc.

[0093] In one possible implementation, when the first type of information includes: noise removal processing of the position information of N feature points to obtain the position information of Q feature points, the process includes: fitting a first curve based on the position information of the N feature points; and removing the position information of the M feature points from the first position information when the distance between the M feature points and the first curve is greater than or equal to a preset threshold, thus obtaining the position information of the Q feature points. The N feature points include M feature points, where M is greater than or equal to 1 and less than N. In this way, for contour line type feature information, good noise removal can be achieved, resulting in a more accurate first compensation value.

[0094] In one possible implementation, the first type of information includes: feature information of the contour line type. Determining the first extrinsic parameter based on the first type of information and the first correspondence includes: selecting at least one Euler angle from multiple Euler angles as the first extrinsic parameter based on the feature information of the contour line type and the first correspondence. This supports the application of contour features, making the calibration method applicable to more application scenarios.

[0095] For example, when the first type of information is the lower edge of the vehicle body, the yaw and roll angles can be selected as the first extrinsic parameters.

[0096] In one possible implementation, the vehicle performs online calibration based on a first compensation value, including: performing multi-frame filtering on the first compensation value to obtain a second compensation value; and performing online calibration based on the second compensation value. This allows for the output of a stable online calibration result (i.e., the second compensation value), further improving the accuracy of sensor online calibration.

[0097] Optionally, performing multi-frame filtering on the first compensation value may include: accumulating n first compensation values ​​to obtain a set of statistical data, sorting the n first compensation values ​​in the statistical data to remove outliers, and obtaining the second compensation value when the standard deviation of the statistical data is less than a preset threshold.

[0098] It should be understood that, in the various embodiments of this application, unless otherwise specified or in case of logical conflict, the terms and / or descriptions between the various embodiments are consistent and can be referenced by each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.

[0099] Figure 4 This is a schematic flowchart of a calibration method provided in an embodiment of this application. Method 400 can be a specific description of steps S301 to S303 in method 300.

[0100] like Figure 4 As shown, method 400 can be divided into steps executed by the offline module and steps executed by the online module. The offline module can be used to configure basic parameters and neural networks. The purpose of setting the offline module is to configure different vehicle features and calibrable extrinsic parameters for different sensors. The online module can obtain sensor extrinsic parameter values ​​by comparing the real-time vehicle feature position with the reference feature position provided by the offline module, thereby completing the calibration.

[0101] The offline module can execute steps S401 to S404.

[0102] S401, determine the available vehicle features in the images acquired by the sensors.

[0103] Optionally, the available vehicle features may include: available vehicle features acquired by the sensor at a fixed position and available vehicle features acquired after the sensor undergoes a large angular deviation. When the sensor undergoes a large angular deviation, the vehicle features sensed by the sensor at the fixed position will be lost, while other available vehicle features will be added. Therefore, when performing sensor extrinsic parameter calibration, it is necessary to consider acquiring available vehicle features after the sensor undergoes a large angular deviation. The fixed position of the sensor can be the sensor's initial position, and a large angular deviation can be understood as: the angle of deflection of the sensor relative to the fixed position exceeds a preset threshold (e.g., the yaw angle deflection is greater than or equal to 5°).

[0104] Optionally, the aforementioned sensor may be an on-board sensor, such as a camera device and radar; further optionally, the camera device may be a side-view fisheye camera.

[0105] For example, such as Figure 5As shown, available vehicle features in the image acquired by the side-view fisheye camera include: door seams, signs, front wheel arches, lower edge of the vehicle, door handles, and rear wheel arch contours. The image acquired by this side-view fisheye camera can be the first image in method 300.

[0106] S402, equipped with a vehicle feature network.

[0107] For example, such as Figure 6 As shown, data collected by sensors (e.g., images) can be input into the vehicle feature network to obtain the vehicle feature category and location. The training data for the vehicle feature network can be data collected by sensors, simulated images generated through mathematical modeling or 3D reconstruction, or images obtained by enhancing basic data (e.g., selection, cropping, or viewpoint transformation).

[0108] Among them, the vehicle feature category can be indicated by the first type information in method 300, the vehicle feature location can be indicated by the first location information in method 300, and the vehicle feature network can be the first prediction model in method 300.

[0109] It should be understood that the methods for acquiring data and training the model in the embodiments of this application are not unique, and those skilled in the art can make corresponding substitutions according to actual needs.

[0110] S403, the reference position corresponding to the vehicle feature category.

[0111] For example, configuring the reference position corresponding to the vehicle feature category may include: the reference position of the vehicle feature category after the sensor is in a fixed position and after a large angular deviation. The aforementioned reference position may refer to the position in the vehicle coordinate system. The reason for choosing the vehicle coordinate system is that the basic position of the vehicle feature in the vehicle coordinate system remains essentially unchanged, which facilitates stable online calibration of the sensor even after a large angular deviation. This reference position may be indicated by the second position information in method 300.

[0112] Optionally, the reference position can be obtained from the vehicle's digital model information or 3D reconstruction information.

[0113] Alternatively, the vehicle feature position in the reference coordinate system corresponding to the sensor, or the vehicle feature position in the image coordinate system, can be used as the reference position.

[0114] S404, configured with identifiable external parameters corresponding to the vehicle feature category.

[0115] Since the vehicle features within the sensor may not fully support the calibration of all six degrees of freedom (DOFs), forcibly calibrating all six DDFs will lead to a deterioration in the accuracy of the extrinsic parameters. Therefore, to ensure the accuracy of the sensor extrinsic parameters during online calibration, a calibrable extrinsic parameter table can be pre-configured for each type of vehicle feature in the sensor, and the calibrable extrinsic parameters can be determined based on this table.

[0116] The labelable extrinsic parameter table can be an example of the first correspondence in method 300, and the labelable extrinsic parameter quantity can correspond to the first extrinsic parameter in method 300.

[0117] Optionally, the external parameter table can be as shown in Table 1.

[0118] Table 1

[0119]

[0120] For example, such as Figure 7 As shown, the forward-looking fisheye camera's field of view includes four types of feature points: the left license plate corner point, the left license plate nail corner point, the right license plate corner point, and the right license plate nail corner point. According to the correspondence in Table 1, the calibrable extrinsic parameters are: roll angle, pitch angle, and yaw angle. If the fisheye camera experiences a large angular deviation, only the left license plate corner point can be observed within the fisheye camera's field of view. Based on the correspondence in Table 1, the calibrable extrinsic parameters are then determined to be the pitch angle and yaw angle.

[0121] The online module can execute steps S411 to S415.

[0122] S411, Vehicle Feature Extraction.

[0123] For example, the online module can extract vehicle feature categories and sensor locations through a vehicle feature network for subsequent online calibration. The point set corresponding to the extracted feature categories is denoted as S. i-t(k) ={p i1 ,…,p ini}, where i represents the feature category, t(k) represents the time when the feature is acquired, and ni represents the number of feature points. If the current feature is a single-point feature, such as the left license plate point, then ni = 1.

[0124] S412, Feature preprocessing.

[0125] For example, when extracting vehicle features in step S411, the extracted features may contain noise. In order to remove noise or avoid false detection, the extracted features can be preprocessed.

[0126] Optionally, since the position of the vehicle features is relatively fixed, the detection results of multiple frames can be accumulated, and noise can be removed by clustering the feature points based on the feature category and calculating the mean.

[0127] For example, the mean of a single-point feature can be calculated by accumulating m frames, i.e., S i-t(k) ,S i-t(k) ,…,S i-t(k+m) Combined into a large point set S im Calculate the mean of points within the set or consider the center point of the set as the location of the real point.

[0128] S413, sensor pose optimization.

[0129] For example, after obtaining the point set after feature preprocessing, the positions of reference feature points of the corresponding category and the optimizable extrinsic parameters corresponding to the effective feature combinations can be identified. By projecting the reference feature points into the current sensor feature space, the sensor extrinsic parameters are optimized (the specific optimization type can be determined by the feature combination) so that the distance from the projected point to the actual feature point is minimized, i.e.:

[0130]

[0131] Where, p ik p represents the k-th point in the currently detected i-th feature category. ik-ref p ik The corresponding reference point (whose 3D position coordinates can be written by the offline module) This indicates that the reference point is projected onto the projection point in the sensor-acquired image through extrinsic parameters; ||.|| 2 This represents the L2 norm calculation, which is the square of the distance between two points. Projection is the process of transforming a reference point's coordinates to those in the current sensor coordinate system using intrinsic and extrinsic parameters.

[0132] The above process corresponds to the process of obtaining the first compensation value in method 300.

[0133] When the sensor is a camera, the specific steps are as follows:

[0134] (1) Calculate the position of the reference feature point in the camera coordinate system using the following formula:

[0135] p ik-cam =R v2c (p ik-car -t xyz (1-2)

[0136] Where, p ik-car (x v ,y v ,z v ) represents the position of the reference feature point in the vehicle coordinate system, and is a three-dimensional vector. t xyz (t x ,t y ,t zR represents the position of the camera center in the vehicle coordinate system. v2c It is a 3×3 matrix representing the rotation matrix from the vehicle body to the camera coordinate system. Since the rotation matrix has 3 degrees of freedom, it can also be represented using Euler angles (yaw, pitch, roll). One possible transformation relationship is:

[0137] When the rotation angle during the transformation from the vehicle coordinate system to the camera coordinate system is R, Euler angles are used to calculate that the z-axis of the vehicle coordinate system is upward, the x-axis is forward, and the y-axis is leftward. Therefore, the angle of rotation around the z-axis is the yaw angle, the angle of rotation around the y-axis is the pitch angle, and the angle of rotation around the x-axis is the roll angle. The rotation sequence is yaw → pitch → roll. From this, we can conclude that:

[0138]

[0139] (2) Project the position of the reference point in the camera coordinate system onto the image acquired by the camera.

[0140] Since the image lacks depth information, the points in the camera coordinate system need to be normalized using the following formula:

[0141]

[0142] Where, p ik-cam (x ik-cam ,y ik-cam ,z ik-cam ) represents the position of a point in the camera coordinate system, z ik-cam Indicates depth.

[0143] (3) The normalized points are transformed into the image coordinate system through intrinsic parameters, which can be achieved through formulas.

[0144]

[0145] Where K represents a 3×3 intrinsic parameter matrix, specifically in the form of: fx and fy represent the focal length, and cx and cy represent the center position of the image. These are the position coordinates of the reference feature points in the final image. The homogeneous representation of the expression, dist() indicates the distortion processing.

[0146] S414, multi-frame filtering processing.

[0147] In step S413, the calibration data accumulated over a period of time can be filtered to obtain online calibration results. The specific filtering process will be described in method 800.

[0148] S415 outputs the calibrated external parameters.

[0149] Specifically, after obtaining the multi-frame filtering results in step S414, the compensation value of the extrinsic parameters (i.e., the second compensation value in method 300) can be output to update the sensor extrinsic parameters or to trigger a sensor abnormality alarm.

[0150] In this embodiment, since the reference position of the vehicle's features has already been written into the offline module, the vehicle supports the deviation detection and compensation capability of the vehicle sensors immediately after it leaves the production line, without the need for calibration in a calibration room, thereby reducing the calibration cost of the sensors. Furthermore, the combined use of the offline and online modules can improve the accuracy of online sensor calibration in the vehicle, enabling calibration to be performed whether the vehicle is stationary or in motion.

[0151] Figure 8 This is a schematic flowchart of a multi-frame filtering method provided in an embodiment of this application. Method 800 can be applied to step S414 of method 400. Method 800 may include steps S801 to S805.

[0152] S801, obtain the result of a single external parameter calibration.

[0153] S802, accumulate n calibration results to obtain a set of statistical data.

[0154] Where n can be a positive integer.

[0155] S803 sorts the statistical data and removes outliers.

[0156] S804 determines whether the standard deviation of statistical data is less than or equal to a preset threshold.

[0157] S805 outputs online calibration results.

[0158] Specifically, in step S804, when the standard deviation of the statistical data is less than or equal to a preset threshold, in step S805, the online calibration result of the statistical data (e.g., the second compensation value in method 300) can be output.

[0159] In this embodiment, by performing multi-frame filtering on the results of a single external parameter calibration, relatively accurate online calibration results can be obtained, thereby further improving the accuracy of sensor calibration.

[0160] Figure 9 This is a schematic flowchart of another calibration method provided in the embodiments of this application. Method 900 can be a specific description of steps S301 to S303 in method 300.

[0161] like Figure 9As shown, method 900 can be divided into steps executed by the offline module and steps executed by the online module. The offline module can be used to configure basic parameters and network. The purpose of the offline module is to configure different vehicle features and calibrable extrinsic parameters for different sensors. The online module can obtain the actual sensor extrinsic parameter values ​​by comparing the real-time vehicle feature position with the reference feature position provided by the offline module, thereby completing the calibration.

[0162] The offline module can execute steps S901 to S904.

[0163] S901, determine the available vehicle features in the images acquired by the sensor.

[0164] Optionally, the vehicle feature can be a contour-type vehicle feature, which may include one or more of the following: vehicle edge, door seam, door handle, front bumper, and license plate. The vehicle edge can be understood as the area below the door, at the lower edge of the vehicle body.

[0165] S902, equipped with vehicle feature network.

[0166] Alternatively, you can use Figure 6 The vehicle feature network shown processes the vehicle features to obtain the vehicle feature location and category.

[0167] Among them, the vehicle feature category can be indicated by the first type information in method 300, the vehicle feature location can be indicated by the first location information in method 300, and the vehicle feature network can be the first prediction model in method 300.

[0168] S903 processes the location and category of vehicle features.

[0169] Since contour-type features have many feature points, it is not appropriate to set all contours as feature points. Furthermore, since contour-type features have obvious curve forms, the contour features can be fitted to 3D lines in the vehicle coordinate system (curve fitting or piecewise fitting), and the curves and some key 3D feature points (e.g., contour start points, turning points, etc.) can be stored.

[0170] S904, determine the calibrable angle corresponding to the contour feature.

[0171] like Figure 10 As shown, taking the lower edge of the vehicle body (referred to as the lower edge) as an example, we can first obtain the positional changes projected onto the image after the deviation of the three Euler angles (yaw pitch roll) of the lower edge contour. Figure 10It can be seen that the contour feature is more sensitive to changes in yaw and roll, that is, when deviation occurs, there will be obvious vertical changes. It is relatively insensitive to changes in pitch angle, which only changes in the direction of the vehicle edge extension (in practical applications, it is difficult to determine the starting position of the contour due to changes in the viewing angle), while the vertical position changes are not obvious. Therefore, the calibrable angles corresponding to this contour feature can be yaw and roll angles.

[0172] The online module can execute steps S911 to S915.

[0173] S911, vehicle feature extraction.

[0174] For example, the online module can extract the vehicle feature category and location through the vehicle feature network for subsequent online calibration.

[0175] S912, Feature Preprocessing.

[0176] For example, when extracting vehicle features in step S911, the extracted features may contain noise. In order to remove noise or avoid false detection, the extracted features can be preprocessed.

[0177] Optionally, since the position of the vehicle features is relatively fixed, the detection results of multiple frames can be accumulated to remove noise. That is, after accumulating multiple frames, feature points that are far from the line can be removed by line fitting.

[0178] For example, for the contour feature S of the line type m-1 Fit a curve f to the points within the set. l (p) can calculate the distance from each point to the fitted curve. If the distance exceeds a certain threshold, it is considered noise and removed. For example... Figure 11 As shown, taking a left fisheye camera as an example, the noise removal method is as follows:

[0179] (1) Fit the feature point curve L (corresponding to) along the vehicle edge using the x-axis and y-axis of the image. Figure 11 (The black line in the diagram), the curve L can be the first curve in method 300.

[0180] (2) For a point p(x) in the extracted car edge image j ,y j ), its x-axis coordinate can be set j Substituting into the function yields the nearest point y. j-est =f(x) j ), then p j-est (x j ,y j-est ) can be regarded as p(x) j ,y j (to the corresponding point on the fitted line)

[0181] (3) The distance from point p to curve f is defined as Dist(p,L)=(y j-est -y j ) 2 If the distance exceeds a certain value, the viewpoint p is removed as a noise point; otherwise, the viewpoint p can be retained.

[0182] S913, sensor pose optimization.

[0183] For example, point sampling is performed on the reference position curve corresponding to the vehicle edge to obtain reference points of the vehicle edge contour. These reference points are then projected onto the image of the fisheye camera using the extrinsic parameters of the sensor. The calibrable extrinsic parameters are optimized to minimize the distance between these reference points and the vehicle edge curve extracted from the real-time image. This can be achieved using the following formula:

[0184]

[0185] in, This indicates that extrinsic parameter optimization is performed on feature points other than the vehicle edge feature points. The specific calculation method is the same as that in formula (1-1), and will not be repeated here. If there are no feature points other than the vehicle edge feature points, this term in the formula is 0. This represents the points in the image projected from the reference feature points. Fit curve L to the image j The distance.

[0186] S914, multi-frame filtering processing.

[0187] In step S913, the calibration data accumulated over a period of time can be filtered to obtain online calibration results. The specific filtering process has been described in method 800 and will not be repeated here.

[0188] S915 outputs the calibrated external parameters.

[0189] Specifically, after obtaining the multi-frame filtering results in step S915, external parameters can be output to update sensor external parameters or to trigger sensor anomaly alarms.

[0190] In this embodiment of the application, when obtaining contour line type features based on images acquired by sensors, the use of offline and online modules together can more efficiently determine calibrable extrinsic parameters and enable the calibration method to be used in more application scenarios.

[0191] Figure 12This is a schematic diagram of a calibration device 1200 provided in an embodiment of this application. The device 1200 may include an acquisition unit 1210, a storage unit 1220, and a processing unit 1230. The acquisition unit 1210 is used to acquire instructions and / or data; the storage unit 1220 is used to implement corresponding storage functions and store corresponding instructions and / or data; the processing unit 1230 is used to perform data processing so that the device 1200 can implement the aforementioned calibration method.

[0192] The device 1200 includes: an acquisition unit 1210 and a processing unit 1230; the acquisition unit 1210 is used to acquire a first image collected by an on-board sensor; the processing unit 1230 is used to: determine a first type information of a first component in the first image; determine a first external parameter based on the first type information and a first correspondence, wherein the first correspondence is a correspondence between component type and calibrable external parameter, wherein the calibrable external parameter includes the first external parameter; and perform online calibration based on the first external parameter.

[0193] In one possible implementation, the processing unit 1230 is further configured to: determine first position information of the first component in the first image; specifically, the processing unit 1230 is configured to: determine a first compensation value corresponding to the first external parameter based on the first position information and the second position information, wherein the second position information is used to indicate a preset reference position of the first component in the first image; and perform online calibration based on the first compensation value.

[0194] In one possible implementation, the first type information and the first location information are obtained by inputting the first image into a first prediction model. The first prediction model is obtained based on training samples, which include: a first sample image, first sample type information, and first sample location information.

[0195] In one possible implementation, the first location information includes: location information of N feature points, where N is an integer greater than 1; the processing unit 1230 is specifically used to: perform noise removal processing on the location information of the N feature points to obtain location information of Q feature points; and determine a first compensation value based on the location information of the Q feature points and the second location information.

[0196] In one possible implementation, the processing unit 1230 is specifically used to: fit a first curve based on the position information of N feature points; when the distance between M feature points and the first curve is greater than or equal to a preset threshold, remove the position information of M feature points from the first position information to obtain the position information of Q feature points, where the N feature points include M feature points, M is greater than or equal to 1, and M is less than N.

[0197] In one possible implementation, the first type of information includes: feature information of the contour line type; the processing unit 1230 is specifically used to select at least one Euler angle from multiple Euler angles as the first extrinsic parameter according to the feature information of the contour line type and the first correspondence.

[0198] In one possible implementation, the processing unit 1230 is specifically used for: performing multi-frame filtering on the first compensation value to obtain a second compensation value; and performing online calibration based on the second compensation value.

[0199] Optionally, if the device 1200 is located in the vehicle 100, the processing unit 1230 may be... Figure 1 The processor 131 shown.

[0200] Figure 13 This is a schematic diagram of another calibration device 1300 provided in an embodiment of this application.

[0201] The device 1300 includes a memory 1310, a processor 1320, and a communication interface 1330. The memory 1310, processor 1320, and communication interface 1330 are connected via an internal connection path. The memory 1310 stores instructions, and the processor 1320 executes the instructions stored in the memory 1310 to control the communication interface 1330 to acquire information, enabling the device 1300 to implement the aforementioned calibration method. Optionally, the memory 1310 can be coupled to the processor 1320 via an interface, or it can be integrated with the processor 1320.

[0202] It should be noted that the communication interface 1330 described above uses a transceiver device, such as, but not limited to, a transceiver. The communication interface 1330 may also include an input / output interface.

[0203] The processor 1320 stores one or more computer programs, which include instructions. When the instructions are executed by the processor 1320, the calibration device 1300 performs the calibration methods described in the above embodiments.

[0204] In implementation, each step of the above method can be completed by the integrated logic circuitry of the hardware in the processor 1320 or by instructions in software form. The method disclosed in the embodiments of this application can be directly implemented by a hardware processor, or by a combination of hardware and software modules in the processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory 1310, and the processor 1320 reads the information in memory 1310 and, in conjunction with its hardware, completes the steps of the above method. To avoid repetition, detailed descriptions are not provided here.

[0205] Optionally, Figure 13 The communication interface 1330 in the middle can achieve Figure 12 The acquisition unit 1210 in the middle, Figure 13 The memory 1310 in the middle can achieve Figure 12 Storage unit 1230 in the middle, Figure 13 The processor 1320 in the middle can achieve Figure 12 The processing unit 1230 in the middle.

[0206] Optionally, the device 1200 or device 1300 may be located in Figure 1 Of the 100 vehicles in the list.

[0207] Optionally, the device 1200 or device 1300 can be Figure 1 The computing platform 130 in the vehicle.

[0208] This application also provides a computer-readable storage medium storing program code that, when executed on a computer, causes the computer to perform the above-described... Figures 3 to 4 ,or Figures 8 to 9 Any of the methods mentioned above.

[0209] This application also provides a computer program product, which includes a computer program that, when run, causes the computer to perform the above-described actions. Figures 3 to 4 ,or Figures 8 to 9 Any of the methods mentioned above.

[0210] This application embodiment also provides a chip, including: a circuit, the circuit being used to perform the above... Figures 3 to 4 ,or Figures 8 to 9 Any of the methods mentioned above.

[0211] This application embodiment also provides a vehicle, including as follows: Figure 12 or Figure 13 Any of the calibration devices shown.

[0212] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0213] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0214] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0215] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0216] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0217] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0218] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A calibration method, characterized in that, The method includes: Acquire the first image captured by the vehicle-mounted sensor; Determine the first type information of the first component in the first image and the first position information of the first component in the first image; Based on the first type information and the first correspondence, a first external parameter is determined. The first correspondence is the correspondence between component type and calibrable external parameter, and the calibrable external parameter includes the first external parameter. Online calibration is performed based on the first extrinsic parameter, including: Based on the first position information and the second position information, a first compensation value corresponding to the first external parameter is determined, and the second position information indicates the preset reference position of the first component in the first image; Online calibration is performed based on the first compensation value.

2. The method as described in claim 1, characterized in that, The first type information and the first location information are the first image The first prediction model is obtained by inputting the first sample into the first prediction model, which is based on the training samples, including: the first sample image, the first sample type information and the first sample location information.

3. The method as described in claim 1 or 2, characterized in that, The first location information includes: location information of N feature points, where N is an integer greater than 1. The step of determining the first compensation value corresponding to the first extrinsic parameter based on the first location information and the second location information includes: The position information of the N feature points is processed to remove noise, resulting in the position information of Q feature points, where Q is less than or equal to N. The first compensation value is determined based on the position information of the Q feature points and the second position information.

4. The method as described in claim 3, characterized in that, The step of removing noise from the position information of the N feature points to obtain the position information of Q feature points includes: Based on the position information of the N feature points, a first curve is fitted; When the distance between M feature points and the first curve is greater than or equal to a preset threshold, the position information of the M feature points is removed from the first position information to obtain the position information of the Q feature points. The N feature points include the M feature points, where M is greater than or equal to 1 and M is less than N.

5. The method as described in claim 1 or 2, characterized in that, The online calibration based on the first compensation value includes: The first compensation value is subjected to multi-frame filtering to obtain the second compensation value; Online calibration is performed based on the second compensation value.

6. The method as described in claim 1 or 2, characterized in that, The first type of information includes: feature information of contour line type. The step of determining the first extrinsic parameter based on the first type of information and the first correspondence includes: Based on the feature information of the contour line type and the first correspondence, at least one Euler angle is selected from multiple Euler angles as the first extrinsic parameter.

7. A calibration device, characterized in that, The device includes an acquisition unit and a processing unit; The acquisition unit is used to acquire the first image collected by the vehicle-mounted sensor; The processing unit is used for: Determine the first type information of the first component in the first image and the first position information of the first component in the first image; Based on the first type information and the first correspondence, a first external parameter is determined. The first correspondence is the correspondence between component type and calibrable external parameter, and the calibrable external parameter includes the first external parameter. Perform online calibration based on the first external parameter; The processing unit is specifically used for: Based on the first position information and the second position information, a first compensation value corresponding to the first external parameter is determined, and the second position information indicates the preset reference position of the first component in the first image; Online calibration is performed based on the first compensation value.

8. The apparatus as claimed in claim 7, characterized in that, The first type information and the first location information are the first image The first prediction model is obtained by inputting the first sample into the first prediction model, which is based on the training samples, including: the first sample image, the first sample type information and the first sample location information.

9. The apparatus as claimed in claim 7 or 8, characterized in that, The first location information includes: the location information of N feature points, where N is an integer greater than 1; The processing unit is specifically used for: The position information of the N feature points is processed to remove noise, resulting in the position information of Q feature points, where Q is less than or equal to N. The first compensation value is determined based on the position information of the Q feature points and the second position information.

10. The apparatus as claimed in claim 9, characterized in that, The processing unit is specifically used for: Based on the position information of the N feature points, a first curve is fitted; When the distance between M feature points and the first curve is greater than or equal to a preset threshold, the position information of the M feature points is removed from the first position information to obtain the position information of the Q feature points. The N feature points include the M feature points, where M is greater than or equal to 1 and M is less than N.

11. The apparatus as claimed in claim 7 or 8, characterized in that, The processing unit is specifically used for: The first compensation value is subjected to multi-frame filtering to obtain the second compensation value; Online calibration is performed based on the second compensation value.

12. The apparatus as claimed in claim 7 or 8, characterized in that, The first type of information includes: feature information of the contour line type; The processing unit is specifically used to select at least one Euler angle from multiple Euler angles as the first extrinsic parameter based on the feature information of the contour line type and the first correspondence.

13. A control device, characterized in that, The device includes a processor and a memory, the processor being coupled to the memory, the memory being used to store computer programs or instructions, and the processor being used to execute the computer programs or instructions in the memory, such that the method of any one of claims 1 to 6 is performed.

14. A chip comprising circuitry for performing the method as claimed in any one of claims 1 to 6.

15. A computer-readable storage medium storing program code that, when executed on a computer, causes the computer to perform the method as described in any one of claims 1 to 6.

16. A vehicle, characterized in that, Includes the apparatus according to any one of claims 7 to 13.

Citation Information

Patent Citations

  • Static Camera Calibration Using Motion of Vehicle Portion

    US20200134869A1