A method and device for online calibration of external parameters

By using point cloud registration and fusion algorithms in autonomous driving and robotic equipment for simultaneous merging and feature extraction of lidar and camera data, the problem of external parameter changes and out-of-synchronization of timestamps in the equipment is solved, and the perception and positioning of the equipment are improved. Accuracy.

CN116524014BActive Publication Date: 2024-09-24SIQIAN (SHANGHAI) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310581790.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-23
Publication Date
2024-09-24
Estimated Expiration
2043-05-23

AI Technical Summary

Technical Problem

In the existing technology, the spatiotemporal external parameters between lidar and cameras in autonomous driving equipment and robotic equipment are difficult to maintain accurate for a long time, and the problem of out-of-synchronization of timestamps cannot be effectively solved, resulting in a decrease in positioning and mapping accuracy.

Method used

By acquiring camera data and lidar data, point cloud registration and fusion algorithms are used for synchronous merging, static object features are extracted, contour coincidence matching is performed, and external parameters of lidar and camera are calculated to achieve real-time updates and timestamp synchronization.

Benefits of technology

It achieves more accurate time synchronization, more complete lidar data and more accurate external parameter calculations, improving the perception and positioning performance of autonomous driving and robotic equipment in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116524014B
    Figure CN116524014B
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and machine-readable storage medium for online calibration of external parameters, the method comprising: acquiring camera data and first-category laser radar data; for each frame of the camera data, finding the first-category laser radar data with the closest time distance to its timestamp, and synchronously merging it with the first-category laser radar data of N historical frames to obtain a frame of second-category laser radar data; wherein the method for realizing synchronous merging comprises a point cloud registration algorithm and a point cloud fusion algorithm; performing feature extraction on static objects in the second-category laser radar data and the camera data; overlapping and matching the contours of the static objects in the second-category laser radar data with the contours of the static objects in the camera data, and calculating the external parameters of the laser radar and the camera.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer vision technology, and in particular to a method, device, electronic device and machine-readable storage medium for online calibration of external parameters. Background Art

[0002] At present, there are many types of sensors commonly installed on autonomous driving devices or robotic devices, among which the most common ones are laser radar and camera. When the laser radar and camera are used together, the spatiotemporal external parameters between them need to be calibrated. The more popular calibration scheme is to perform it offline, use a calibration plate for common view in a specific scene, extract the edge features of the calibration plate for PnP solution (i.e. perspective n-point problem solution, Perspective-n-Point solution); or use the hand-eye calibration method to calculate the position and posture of the motion trajectory of the laser radar and camera respectively, and use the classic AX=XB hand-eye calibration equation to solve the external parameters. These calibration schemes are all performed offline and need to be operated in a specific layout scene. With the long-term movement of the autonomous driving or robotic equipment, the laser radar and the camera will move relative to each other, resulting in changes in the external parameters. The external parameters previously calibrated offline will not be accurately applied, so recalibration may be required. In addition, the currently popular hand-eye calibration method cannot solve the problem of asynchronous timestamps between the laser radar and the camera. Due to the instability of timestamps, online calibration methods must be used to deal with this situation.

[0003] Therefore, how to effectively solve the problem that offline calibration cannot be used for a long time and solve the problem of timestamp asynchrony are technical problems that need to be solved urgently by those skilled in the art. Summary of the invention

[0004] The present application provides a method for online calibration of external parameters, the method comprising:

[0005] Get camera data and first-class lidar data;

[0006] For each frame of the camera data, find the first-category laser radar data with the closest time distance to its timestamp, and synchronously merge it with the first-category laser radar data of the historical N frames to obtain a frame of the second-category laser radar data; wherein the method for realizing synchronous merging includes a point cloud registration algorithm and a point cloud fusion algorithm

[0007] Performing feature extraction on static objects in the second type of laser radar data and the camera data;

[0008] The outline of the static object in the second type of laser radar data and the outline of the static object in the camera data are overlapped and matched, and the external parameters of the laser radar and the camera are calculated.

[0009] Optionally, the acquiring of camera data and first-category lidar data includes:

[0010] The camera data and the first type of laser radar data are acquired, a SLAM operation is performed on the first type of laser radar data, and a position and posture of each frame of the first type of laser radar data is calculated, where the position and posture includes rotation information and displacement information.

[0011] Optionally, the overlapping and matching the outline of the static object in the second-type laser radar data with the outline of the static object in the camera data includes:

[0012] Matching the outline of the static object in the second type of laser radar data with the outline of the static object in the camera data to find corresponding feature points;

[0013] Based on the corresponding feature points, calculating the external parameter information between the laser radar and the camera, including rotation and displacement;

[0014] According to the calculated extrinsic parameter information, the outline of the static object in the second type of laser radar data is transformed and aligned to the outline of the static object in the camera data.

[0015] Optionally, the extracting features of static objects in the second type of laser radar data and the camera data includes:

[0016] Feature extraction is performed on the lane lines in the second type of laser radar data and the camera data.

[0017] The present application provides a device for online calibration of external parameters, the device comprising:

[0018] A data acquisition module, used to acquire camera data and first-class lidar data;

[0019] A data fusion module is used to find the first-category laser radar data with the closest time distance to the timestamp of each frame of the camera data, and synchronously merge the first-category laser radar data with the first-category laser radar data of N historical frames to obtain a frame of second-category laser radar data;

[0020] A feature extraction module, used for extracting features of static objects in the second type of laser radar data and the camera data;

[0021] The external parameter calculation module is used to overlap and match the outline of the static object in the second type of laser radar data with the outline of the static object in the camera data, and calculate the external parameters of the laser radar and the camera.

[0022] Optionally, the acquiring of camera data and first-category lidar data includes:

[0023] The camera data and the first type of laser radar data are acquired, a SLAM operation is performed on the first type of laser radar data, and a position and posture of each frame of the first type of laser radar data is calculated, where the position and posture includes rotation information and displacement information.

[0024] Optionally, the overlapping and matching the outline of the static object in the second-type laser radar data with the outline of the static object in the camera data includes:

[0025] Matching the outline of the static object in the second type of laser radar data with the outline of the static object in the camera data to find corresponding feature points;

[0026] Based on the corresponding feature points, calculating the external parameter information between the laser radar and the camera, including rotation and displacement;

[0027] According to the calculated extrinsic parameter information, the outline of the static object in the second type of laser radar data is transformed and aligned to the outline of the static object in the camera data.

[0028] Optionally, the extracting features of static objects in the second type of laser radar data and the camera data includes:

[0029] Feature extraction is performed on the lane lines in the second type of laser radar data and the camera data.

[0030] The present application also provides an electronic device, including:

[0031] processor;

[0032] a memory for storing processor-executable instructions;

[0033] The processor implements the steps of the above method by running the executable instructions.

[0034] The present application also provides a machine-readable storage medium on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the above method are implemented.

[0035] By finding the first-class lidar data with the closest timestamp time distance, time synchronization between the camera and lidar can be achieved to ensure that the data they obtain at the same time can correspond; by extracting features of static objects in the second-class lidar data and camera data and matching their contours, the correspondence between the lidar and the camera can be obtained, thereby calculating the external parameter relationship between them, and reducing the impact of dynamic objects on feature contour alignment.

[0036] The above embodiments can bring more accurate time synchronization, more complete lidar data, and more precise external parameter calculation, thereby improving the perception and positioning performance of autonomous driving, robots and other equipment in complex environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is a flow chart of an online extrinsic parameter calibration method shown in an exemplary embodiment;

[0038] Figure 2 is a block diagram of an online extrinsic parameter calibration device shown in an exemplary embodiment;

[0039] Figure 3 The figure is a hardware structure diagram of an electronic device in which an online calibration external parameter device is located, showing an exemplary embodiment. DETAILED DESCRIPTION

[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0041] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

[0042] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of this specification, the relevant technologies involved in the embodiments of this specification are briefly described below.

[0043] Point cloud data: Laser pulses emitted by the lidar are reflected from the ground or the surface of an object, forming multiple echoes that return to the lidar sensor. The processed reflection data is called point cloud data.

[0044] Posture: The transformation matrix corresponding to the relative relationship between the posture of a robot, vehicle, etc. and the global coordinate system is used to describe the position and orientation of the robot, vehicle, etc.

[0045] Iterative Least Squares Algorithm (ICP): A registration method based on iterative closest point matching, which is widely used in LiDAR point cloud matching, 3D model matching and other fields.

[0046] Perspective-n-Point (PnP): An algorithm used to estimate the position and attitude of a camera in computer vision and image processing. It is a camera attitude estimation method based on feature points, which can calculate the position and attitude of a camera from the correspondence between a set of known 3D points and their corresponding 2D image points. The basic idea of ​​PnP solution is to calculate the external parameters of the camera, that is, the rotation and translation matrix of the camera, through the correspondence between the feature points detected in the image and their corresponding 3D points in the real world. This can be used to achieve camera positioning, target tracking, 3D reconstruction and other applications. There are many PnP solution methods, including Efficient Perspective-n-Point (EPnP), Direct Linear Transformation (DLT) and Uncalibrated Perspective-n-Point (UPnP), among which EPnP is an efficient and widely used PnP solution method. PnP solving has a wide range of applications in computer vision and image processing, including augmented reality (AR), autonomous navigation, robotic vision, medical image processing and other fields.

[0047] Extrinsic Parameters: refers to the position and attitude information of the camera or laser sensor in the world coordinate system (or global coordinate system). It describes the position, rotation and scale relationship of the camera or laser sensor relative to the world coordinate system. Extrinsic parameters usually include translation vectors (or displacement vectors) and rotation matrices (or quaternions), which are used to align the coordinate system of the camera or laser sensor with the world coordinate system. In the joint processing of laser and camera data, the calculation of extrinsic parameters is very important to achieve accurate alignment and registration between laser point clouds and camera images. Extrinsic parameters can be obtained in many ways, such as using calibration plates to calibrate cameras and laser sensors, using position and attitude information provided by external sensors such as the Global Positioning System (GPS) and Inertial Measurement Unit (IMU), or using specific algorithms to estimate from data. The accuracy and stability of extrinsic parameters are crucial to the accuracy and robustness of fusion and registration.

[0048] Simultaneous Localization and Mapping (SLAM): A technology used in applications such as mobile robots and autonomous vehicles. SLAM achieves autonomous positioning and mapping of robots in unknown environments by simultaneously estimating the robot's posture (position and orientation) and building a map of the environment. SLAM technology usually uses sensor data, such as lidar, camera, IMU, etc., to perceive the environment around the robot, and achieves autonomous positioning and mapping of the robot in the environment by processing and fusing these sensor data. The basic idea of ​​SLAM is to infer the robot's position in an unknown environment by using the robot's sensor data, and use these position estimates for map construction. Map construction can be further used to improve the robot's positioning estimate, forming a closed-loop positioning and map update cycle. SLAM has a wide range of applications in autonomous driving, unmanned aerial vehicles, robot navigation, augmented reality and other fields. It provides mobile robots and autonomous vehicles with the ability to autonomously locate and map in unknown environments, thereby achieving autonomous navigation and positioning in complex and unknown environments.

[0049] Calibration board: A calibration board is a special board or object used for camera and lidar calibration, which usually has known geometric structures and feature points, and is used to measure and calculate the external parameter relationship between the camera and lidar. The calibration board usually includes some known geometric structures, such as a two-dimensional or three-dimensional checkerboard, dot grid, sphere or cube. These geometric structures can be used to extract feature points and used for the calculation of the calibration algorithm. The working principle of the calibration board is usually to place the calibration board between the camera and the lidar, and observe the feature points of the calibration board by the camera and the lidar at the same time in a specific scene, so as to obtain the external parameter relationship between the camera and the lidar. For example, suppose a camera and a lidar are installed on an autonomous vehicle, and the external parameters between them need to be calibrated. In actual operation, a calibration board can be selected, such as a checkerboard board with a known grid structure. Then, the checkerboard board is placed in a specific scene, such as on the ground in front of the vehicle. Next, the checkerboard board is observed by the camera and the lidar at the same time to extract the feature points of the camera and the lidar, such as the checkerboard corner points and the grid points in the laser point cloud. Through these feature points, the calibration algorithm can be used to calculate the external parameter relationship between the camera and the lidar, including information such as position, rotation, and scale. This completes the external parameter calibration process of the camera and lidar, so that this external parameter relationship can be used for data fusion and perception processing in subsequent applications.

[0050] Application Scenario Overview

[0051] In autonomous driving equipment or robotic equipment, multiple sensors such as lidar and cameras are often used for perception and positioning. The spatiotemporal external parameters between these sensors need to be calibrated to ensure that their relative position and attitude information are accurate.

[0052] Currently popular calibration schemes are usually performed offline, such as using a calibration plate to perform common view in a specific scene, extracting the edge features of the calibration plate to solve the perspective n-point problem (PnP solution), or using the hand-eye calibration method to solve the external parameters by calculating the position and posture of the motion trajectory of the laser radar and camera. These methods need to be operated in a specific scene and the equipment needs to be arranged specifically.

[0053] However, with the long-term movement of autonomous driving equipment or robotic equipment, relative movement will occur between the lidar and the camera, causing changes in external parameters, thus affecting the accuracy of positioning and mapping. In addition, the timestamps between sensors may not be synchronized, resulting in inconsistent timestamps during data processing. Therefore, traditional offline calibration methods may not be able to handle these dynamic changes and timestamp asynchrony, and online calibration methods are needed to solve these problems.

[0054] The online calibration method can update and calibrate the external parameters between sensors in real time to adapt to the changes of the equipment during movement. At the same time, the online calibration method can solve the problem of inconsistent timestamps during data processing by synchronizing timestamps in real time, ensuring accurate alignment and fusion of sensor data.

[0055] In summary, the use of online calibration methods can effectively deal with the changes in spatiotemporal extrinsic parameters and timestamp asynchrony between lidar and cameras in autonomous driving equipment or robotic equipment, thereby improving the accuracy and reliability of positioning and mapping.

[0056] Invention Concept

[0057] As mentioned above, the offline calibration method has the problem that the external parameters cannot be used for a long time and the timestamp is not synchronized.

[0058] In view of this, the present specification aims to propose a solution for realizing external parameter calculation by synchronously merging camera and lidar data and extracting static object features.

[0059] The core concept of this manual is:

[0060] First, data can be obtained from the camera and the first-class lidar, and they can be synchronously merged into a frame of second-class lidar data through timestamp matching, which includes the lidar data of N frames in history. Next, the contour information of static objects in the second-class lidar data and camera data can be obtained by feature extraction. Then, the contours of static objects in the second-class lidar data can be overlapped and matched with the contours of static objects in the camera data, so as to calculate the external parameter relationship between the lidar and the camera.

[0061] The present application is described below through specific embodiments and in combination with specific application scenarios.

[0062] See also Figure 1 , Figure 1 FIG. 1 is a flowchart of an online calibration method for external parameters shown in an exemplary embodiment. The method performs the following steps:

[0063] Step 102: Obtain camera data and first-category lidar data.

[0064] Step 104: For each frame of the camera data, find the first-category lidar data with the closest time distance to its timestamp, and synchronously merge it with the first-category lidar data of the historical N frames to obtain a frame of second-category lidar data; wherein the method for realizing synchronous merging includes a point cloud registration algorithm and a point cloud fusion algorithm.

[0065] Step 106: extract features of static objects in the second type of lidar data and the camera data.

[0066] Step 108: Overlap and match the outline of the static object in the second type of laser radar data with the outline of the static object in the camera data, and calculate the external parameters of the laser radar and the camera.

[0067] In order to meet the positioning needs, autonomous vehicles, robots, etc. can usually carry LiDAR. LiDAR is a sensor commonly used in autonomous vehicles, robots and other equipment. It obtains information such as the distance, position and shape of the surrounding environment by emitting laser pulses and receiving echoes. LiDAR usually scans the current scene through multiple scanning beams. The laser pulses reflected from the ground or the surface of the object return to the sensor and are processed to form laser data. These laser data can be used for applications such as environmental perception, obstacle detection, map construction, and positioning, thereby meeting the needs of tasks such as autonomous driving and robot navigation. The high precision, high speed, and large-range scanning characteristics of LiDAR make it one of the indispensable sensors in autonomous driving and robotics. Combining camera and LiDAR data can achieve more accurate and robust environmental perception and positioning, thereby improving the safety and reliability of the system.

[0068] Data is obtained from the camera and the first-class lidar sensor, including image data and point cloud data. After obtaining the image data and the first-class lidar data, for each frame of camera data, by comparing its timestamp with the timestamp of the first-class lidar data, the frame of the first-class lidar data with the closest time distance can be found, and this frame of lidar data can be point cloud registered and fused with the first-class lidar data of the historical N frames to achieve synchronous merging; next, the feature information of static objects can be extracted from the second-class lidar data and the camera data, such as the outline, shape, color, etc. of the object; then, the outline of the static object in the second-class lidar data can be overlapped and matched with the outline of the static object in the camera data, and its external parameters (extrinsic parameters), that is, the relative position and posture relationship between the lidar and the camera, can be calculated.

[0069] In one embodiment shown, camera data and first-category lidar data are obtained, and a SLAM operation may be performed on the first-category lidar data to calculate the position and posture of each frame of the first-category lidar data, wherein the position and posture include rotation information and displacement information.

[0070] For example, each frame of the first-class laser radar data can be preprocessed, including removing outliers, filtering data, removing duplicate laser points, etc. These preprocessing operations help improve the accuracy and efficiency of SLAM operations; next, feature extraction can be performed through the first-class laser radar data, such as information such as corner points and surface points of the laser point cloud, to reduce the matching search range; then, the initial pose of the first-class laser radar data of the current frame can be estimated through the pose of the previous frame of laser radar data, IMU (inertial measurement unit) data, odometer data, etc.; the features of the current frame of laser radar data can also be matched with existing features in the map to find the best matching features, and the pose of the current frame can be corrected according to the matching results; finally, the pose can be optimized by minimizing the reprojection error or maximizing the posterior probability, and the information of the first-class laser radar data of the current frame can be fused and updated with the map to obtain new map information.

[0071] In one embodiment shown, the outline of the static object in the second category of lidar data and the outline of the static object in the camera data can be matched to find corresponding feature points; then, based on the corresponding feature points, the extrinsic parameter information between the lidar and the camera can be calculated, including rotation and displacement; finally, based on the calculated extrinsic parameter information, the outline of the static object in the second category of lidar data can be transformed and aligned to the outline of the static object in the camera data.

[0072] First, we can extract the outline of static objects from the second-class lidar data and camera data to obtain corresponding feature points. This can be achieved through some feature extraction algorithms, such as edge detection, corner detection, etc. The role of feature point matching is to find the correspondence between static objects in the lidar data and camera data, providing a basis for subsequent pose estimation and data alignment; next, we can calculate the external parameter information between the lidar and the camera based on the corresponding feature points, including rotation and displacement. The role of external parameter estimation is to determine the relative position relationship between the lidar and the camera, so that the data of the two can be aligned; finally, according to the calculated external parameter information, the outline of the static object in the second-class lidar data can be transformed and aligned to the outline of the static object in the camera data. The role of data alignment is to compare and fuse the two types of sensor data in the same coordinate system, so as to more accurately understand the static object information in the environment.

[0073] For example, the points in the point cloud of the outline of a static object can be Projected onto the camera's image plane:

[0074]

[0075] Where R and t are the initial values ​​of the laser-camera extrinsic parameters, and Z is the depth of point P converted to the corresponding point in the camera coordinate system using RP+t.

[0076] Find distances in contours extracted from an image The three nearest points p0, p1, p2, fit these three points into a straight line:

[0077] l=ax+by+c

[0078] Calculate P c Distance from line l:

[0079]

[0080] Construct the least squares equation:

[0081]

[0082] Where k is the number of point clouds of the static object’s contour, and x = [R t], which is the external parameter between the lidar and the camera;

[0083] By optimizing and solving the least squares equation constructed through the above steps, the optimal external parameters can be obtained.

[0084] In one illustrated embodiment, feature extraction may be performed on the lane lines in the second type of lidar data and the camera data.

[0085] For example, the lane line contour can be extracted by grayscale processing and canny edge detection on the machine image data. Grayscale processing and Canny edge detection are common image processing techniques, which are often used to extract edge information in images. Grayscale processing can convert color camera image data into grayscale images. Grayscale images only contain one kind of brightness information, but not color information, so they can reduce the complexity of processing and are usually sufficient to provide sufficient edge information in lane line detection. Grayscale processing can be obtained by weighted averaging the pixel values ​​of the red, green, and blue channels of the color image according to certain weights. Canny edge detection is a classic edge detection algorithm that extracts edge information in the image by detecting areas with large brightness changes in the image. The Canny edge detection algorithm has a certain resistance to noise and can extract edges with clearer details.

[0086] Next, the second type of lidar data can be used to perform ground fitting to find the parameters of the ground plane, such as the normal vector of the ground plane, and then the lane line contour can be feature extracted through the inconsistent reflection caused by the paint on the lane line and the inconsistent reflection of the road surface around the lane line. Since the lane line is usually painted with reflective paint, it has different reflection characteristics from other areas of the road surface in the laser point cloud. By setting a certain reflection intensity threshold, the point cloud with a reflection intensity higher than the threshold can be extracted as a lane line candidate point; on the other hand, the lane line is usually located on the road surface, and the reflection characteristics on the road surface may vary due to different road surface materials, humidity and other factors, resulting in inconsistent reflection characteristics between the lane line and the surrounding road surface. By setting a certain reflection consistency threshold, the point cloud that is inconsistent with the reflection characteristics of the surrounding road surface can be extracted as a lane line candidate point. Through the above steps, a lane line candidate point cloud can be obtained. Some point cloud processing techniques, such as clustering and filtering, can be used to further process the candidate point cloud to extract the contour feature point cloud of the lane line.

[0087] See also Figure 2 , Figure 2 is a block diagram of an online calibration external parameter shown in an exemplary embodiment, and the above-mentioned device includes:

[0088] A data acquisition module 210, for acquiring camera data and first-type laser radar data;

[0089] A data fusion module 220 is used to find the first-category laser radar data with the closest time distance to the timestamp of each frame of the camera data, and synchronously merge the first-category laser radar data with the first-category laser radar data of N historical frames to obtain a frame of second-category laser radar data;

[0090] A feature extraction module 230, configured to extract features of static objects in the second type of laser radar data and the camera data;

[0091] The external parameter calculation module 240 is used to overlap and match the outline of the static object in the second type of laser radar data with the outline of the static object in the camera data, and calculate the external parameters of the laser radar and the camera.

[0092] Optionally, the acquiring of camera data and first-category lidar data includes:

[0093] The camera data and the first type of laser radar data are acquired, a SLAM operation is performed on the first type of laser radar data, and a position and posture of each frame of the first type of laser radar data is calculated, where the position and posture includes rotation information and displacement information.

[0094] Optionally, the overlapping and matching the outline of the static object in the second-type laser radar data with the outline of the static object in the camera data includes:

[0095] Matching the outline of the static object in the second type of laser radar data with the outline of the static object in the camera data to find corresponding feature points;

[0096] Based on the corresponding feature points, calculating the external parameter information between the laser radar and the camera, including rotation and displacement;

[0097] According to the calculated extrinsic parameter information, the outline of the static object in the second type of laser radar data is transformed and aligned to the outline of the static object in the camera data.

[0098] Optionally, the extracting features of static objects in the second type of laser radar data and the camera data includes:

[0099] Feature extraction is performed on the lane lines in the second type of laser radar data and the camera data.

[0100] See also Figure 3 , Figure 3 It is a hardware structure diagram of an electronic device where an online calibration external parameter device is located, which is shown as an exemplary embodiment. At the hardware level, the device includes a processor 302, an internal bus 304, a network interface 306, a memory 308, and a non-volatile memory 310, and of course may also include hardware required for other services. One or more embodiments of this specification can be implemented based on software, such as the processor 302 reading the corresponding computer program from the non-volatile memory 310 into the memory 308 and then running it. Of course, in addition to software implementation, one or more embodiments of this specification do not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0101] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Ordinary technicians in this field can understand and implement it without paying creative work.

[0102] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0103] In a typical configuration, a computer includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0104] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0105] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0106] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0107] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0108] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "one", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0109] It should be understood that although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0110] The above description is merely a preferred embodiment of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be included in the scope of protection of one or more embodiments of the present specification.

Claims

1. A method for online calibration of external parameters, characterized in that: The method comprises: Get camera data and first-class lidar data; For each frame of the camera data, find the first-category laser radar data with the closest time distance to its timestamp, and synchronously merge it with the first-category laser radar data of the historical N frames to obtain a frame of the second-category laser radar data; wherein the method for realizing synchronous merging includes a point cloud registration algorithm and a point cloud fusion algorithm; Performing feature extraction on static objects in the second type of laser radar data and the camera data; Matching the outline of the static object in the second type of laser radar data with the outline of the static object in the camera data to find corresponding feature points; Based on the corresponding feature points, calculating external parameter information between the laser radar and the camera, the external parameter information including rotation parameters and displacement parameters; According to the calculated extrinsic parameter information, the outline of the static object in the second type of laser radar data is transformed and aligned to the outline of the static object in the camera data.

2. The method according to claim 1, characterized in that: The acquiring of camera data and first-category laser radar data includes: The camera data and the first type of laser radar data are acquired, a SLAM operation is performed on the first type of laser radar data, and a position and posture of each frame of the first type of laser radar data is calculated, where the position and posture includes rotation information and displacement information.

3. The method according to claim 1, characterized in that The extracting features of the static objects in the second type of laser radar data and the camera data includes: Feature extraction is performed on the lane lines in the second type of laser radar data and the camera data.

4. A device for online calibration of external parameters, characterized in that: The device comprises: A data acquisition module, used to acquire camera data and first-class lidar data; A data fusion module is used to find the first-category laser radar data with the closest time distance to the timestamp of each frame of the camera data, and synchronously merge the first-category laser radar data with the first-category laser radar data of N historical frames to obtain a frame of second-category laser radar data; A feature extraction module, used for extracting features of static objects in the second type of laser radar data and the camera data; An extrinsic parameter calculation module is used to match the outline of the static object in the second-category laser radar data with the outline of the static object in the camera data to find corresponding feature points; based on the corresponding feature points, calculate the extrinsic parameter information between the laser radar and the camera, the extrinsic parameter information including rotation parameters and displacement parameters; according to the calculated extrinsic parameter information, transform the outline of the static object in the second-category laser radar data and align it to the outline of the static object in the camera data.

5. The device according to claim 4, characterized in that The acquiring of camera data and first-category laser radar data includes: The camera data and the first type of laser radar data are acquired, a SLAM operation is performed on the first type of laser radar data, and a position and posture of each frame of the first type of laser radar data is calculated, where the position and posture includes rotation information and displacement information.

6. The device according to claim 4, characterized in that The extracting features of the static objects in the second type of laser radar data and the camera data includes: Feature extraction is performed on the lane lines in the second type of laser radar data and the camera data.

7. A machine-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 3.

8. An electronic device, comprising: processor; a memory for storing processor-executable instructions; The processor implements the steps of the method according to any one of claims 1 to 3 by running the executable instructions.