Point cloud dedistortion method, device, electronic device and readable storage medium

By tracking the dynamic points of the target and estimating the motion state in the global coordinate system, and combining the transformation matrix of the vehicle coordinate system for motion compensation, the problem of low laser point cloud dedistortion accuracy caused by the relative motion of the vehicle and the moving target is solved. , improving the accuracy of lidar point cloud data and the perception capabilities of the autonomous driving system.

CN118608435BActive Publication Date: 2024-10-11CHENGDU CELIS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411081488.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-10-11
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

In the existing technology, the laser point cloud de-distortion algorithm ignores the distortion caused by the relative motion of the vehicle and the moving target, resulting in low de-distortion accuracy.

Method used

By acquiring multiple consecutive frames of laser point cloud data, the pose information of the target dynamic point in the vehicle coordinate system is determined, and converted into the global coordinate system for target tracking, calculating the motion state, and using the global coordinate system and the vehicle coordinate system. The transformation matrix between them performs motion compensation and eliminates distortion.

Benefits of technology

It improves the accuracy and availability of laser point cloud data, provides high-quality environmental perception information, and enhances the perception and decision-making capabilities of the autonomous driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608435B_ABST
    Figure CN118608435B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of vehicle-mounted laser radar, and provides a method, device, electronic device and readable storage medium for dedistortion of point cloud. The method includes: determining the position and posture information of the target dynamic point in the dynamic point cloud data of the current frame in the vehicle coordinate system; converting the target dynamic point into the global coordinate system, and tracking the target dynamic point, calculating the motion state of the target dynamic point at each moment of the current frame; determining the global position and posture information of the target dynamic point at the target moment in the global coordinate system based on the motion state of the target dynamic point at each moment of the current frame; obtaining the target dynamic point data at the target moment in the vehicle coordinate system based on the conversion matrix and global position and posture information at the target moment to achieve dedistortion of the dynamic point cloud, solving the problem of poor dedistortion effect of laser point cloud due to the relative motion of the vehicle and the moving target in the prior art, thereby eliminating the distortion effect of the motion of the dynamic object on the point cloud data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle-mounted laser radar technology, and in particular to a point cloud dedistortion method, device, electronic device and readable storage medium. Background Art

[0002] With the development of autonomous driving technology, on-board LiDAR is widely used in autonomous vehicles because it can accurately measure the depth information of the surrounding environment. However, due to the physical characteristics of LiDAR, the laser point cloud in a moving scene will have motion distortion. Point cloud distortion is caused by the fact that the points in a frame of point cloud are not collected at the same time as the vehicle moves during the data collection process of LiDAR, thus affecting the performance of the autonomous driving system. Therefore, how to effectively remove the motion distortion of laser point clouds and improve the quality of point cloud data is an urgent problem to be solved in the current field of on-board LiDAR technology.

[0003] The laser point cloud dedistortion algorithm in the existing technology usually only considers removing the distortion caused by the movement of the vehicle, and uses the motion information of the vehicle for dedistortion processing, ignoring the distortion caused by the relative motion of the vehicle and the moving target, resulting in the low accuracy of laser point cloud dedistortion in the current technology. Summary of the invention

[0004] In view of this, the present application provides a point cloud dedistortion method, device, electronic device and readable storage medium to solve the problem of low accuracy of laser point cloud dedistortion caused by the relative motion between the vehicle and the moving target in the prior art.

[0005] In a first aspect of the present application, a point cloud dedistortion method is provided, comprising: obtaining dynamic point cloud data from a plurality of continuous frames of laser point cloud data, wherein the plurality of continuous frames of laser point cloud data are collected by a laser radar on a vehicle, and the dynamic point cloud data are data of dynamic points corresponding to dynamic objects; determining the position and posture information of target dynamic points in the dynamic point cloud data of the current frame in the vehicle coordinate system; based on the position and posture information of the target dynamic points in the vehicle coordinate system, converting the target dynamic points into the global coordinate system, and tracking the target dynamic points to calculate the motion state of the target dynamic points at each moment of the current frame; based on the motion state of the target dynamic points at each moment of the current frame, determining the global position and posture information of the target dynamic points at the target moment in the global coordinate system; based on the pre-acquired conversion matrix and global position and posture information at the target moment between the global coordinate system and the vehicle coordinate system, converting the target dynamic points into the vehicle coordinate system at the target moment to obtain the target dynamic point data at the target moment in the vehicle coordinate system; determining all the target dynamic point data at the target moment in the vehicle coordinate system as the dedistorted dynamic point cloud data.

[0006] In a second aspect of the present application, a point cloud dedistortion device is provided, comprising: an acquisition module, used to acquire dynamic point cloud data in a plurality of continuous frames of laser point cloud data, wherein the plurality of continuous frames of laser point cloud data are acquired by a laser radar on a vehicle, and the dynamic point cloud data are data of dynamic points corresponding to dynamic objects; a first determination module, used to determine the position and posture information of a target dynamic point in the current frame of dynamic point cloud data in a vehicle coordinate system; a prediction module, used to convert the target dynamic point into a global coordinate system based on the position and posture information of the target dynamic point in the vehicle coordinate system, and to track the target dynamic point, and calculate the target dynamic point. a coordinate conversion module, for determining the global pose information of the target dynamic point at the target moment in the global coordinate system based on the motion state of the target dynamic point at each moment in the current frame; a correction module, for converting the target dynamic point to the vehicle coordinate system at the target moment based on the pre-acquired conversion matrix and the global pose information at the target moment between the global coordinate system and the vehicle coordinate system, to obtain the target dynamic point data at the target moment in the vehicle coordinate system; a second determination module, for determining all target dynamic point data at the target moment in the vehicle coordinate system as dedistorted dynamic point cloud data.

[0007] According to a third aspect of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0008] According to a fourth aspect of the present application, a readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0009] Compared with the prior art, the present application has the following beneficial effects: by determining the position and posture information of the target dynamic point in the dynamic point cloud data of the current frame in the vehicle coordinate system, the target dynamic point cloud can be corrected and dedistorted in the subsequent steps; based on the position and posture information of the target dynamic point in the vehicle coordinate system, the target dynamic point is converted to the global coordinate system, so that the target dynamic point data can be processed in a unified reference frame, namely the global coordinate system, which is convenient for target tracking and motion state estimation; the target dynamic point is tracked, and the motion state of the target dynamic point at each moment of the current frame is calculated to provide a basis for subsequent motion compensation of the target dynamic point; according to the motion state of the target dynamic point at each moment of the current frame, the target dynamic point at the target moment of the current frame is calculated. The target dynamic point is precisely positioned and the global pose information of the target dynamic point at the target time in the global coordinate system is obtained, and the target dynamic point cloud is unified to the same timestamp to eliminate motion distortion; the target dynamic point is converted from the global coordinate system back to the vehicle coordinate system at the target time using the pre-acquired transformation matrix between the global coordinate system and the vehicle coordinate system, and the target dynamic point data at the target time in the vehicle coordinate system is obtained, so as to realize motion compensation of the target dynamic point data and eliminate the distortion caused by the vehicle's own motion and the target object's motion; the target dynamic point data at the target time in the vehicle coordinate system is determined as the de-distorted dynamic point cloud data, and the final de-distorted dynamic point cloud data is output, which can be used by the autonomous driving system to improve the system's perception and decision-making capabilities. In this way, the point cloud dedistortion method proposed in the present application more accurately predicts the motion state of the dynamic object by tracking the target dynamic points and estimating the motion state in the global coordinate system, and uses the motion state of the dynamic object to compensate the target dynamic points, and then converts them back to the vehicle coordinate system, thereby solving the problem of poor laser point cloud dedistortion effect caused by the relative motion between the vehicle and the moving target in the prior art, thereby eliminating the distortion effect of the motion of the dynamic object on the point cloud data, improving the accuracy and availability of the lidar point cloud data, and providing high-quality environmental perception information for the vehicle's autonomous driving. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0011] Figure 1 It is a flowchart of a point cloud dedistortion method provided in an embodiment of the present application;

[0012] Figure 2It is a schematic diagram of the result of performing static and dynamic division of laser point cloud data provided by an embodiment of the present application;

[0013] Figure 3 is a schematic diagram of the structure of a target detection model provided in an embodiment of the present application;

[0014] Figure 4 It is a structural schematic diagram of a point cloud dedistortion device provided in an embodiment of the present application;

[0015] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0016] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0017] Figure 1 FIG. 1 is a flow chart of a method for dedistorting a point cloud provided in an embodiment of the present application. Figure 1 As shown, the dedistortion method of the point cloud includes:

[0018] Step 101, obtaining dynamic point cloud data from a plurality of continuous frames of laser point cloud data, wherein the plurality of continuous frames of laser point cloud data are collected by a laser radar on a vehicle, and the dynamic point cloud data are data of dynamic points corresponding to dynamic objects.

[0019] In some embodiments, a vehicle-mounted laser radar or other 3D sensing device can be used to continuously capture point cloud data in the surrounding environment to obtain multiple continuous frames of point cloud data. Each point in each frame of the point cloud contains pose and timestamp information, and the number of multiple continuous frames can be set as needed, which is not specifically limited here.

[0020] Dynamic point cloud data is information reflecting dynamic objects in the environment (such as moving vehicles, pedestrians, animals, etc.). Specifically, the laser radar can emit laser pulses at a certain frequency (such as ten frames per second) and receive light reflected from the surrounding environment to generate continuous frames of point cloud data. The continuous frames of point cloud data include static point cloud data and dynamic point cloud data.

[0021] It should be noted that some machine learning algorithms can be used to classify and identify laser point cloud data and split them into dynamic point cloud data. The acquired dynamic point cloud data can be used to compensate for point cloud distortion caused by the movement of dynamic objects, which helps the vehicle obtain a more accurate environmental model.

[0022] Step 102, determining the position and posture information of the target dynamic point in the current frame dynamic point cloud data in the vehicle coordinate system.

[0023] Specifically, the position and posture information of the target dynamic point in the vehicle coordinate system includes the position information and posture information of the target dynamic point in the vehicle coordinate system.

[0024] In addition, the current frame may be any frame in a plurality of continuous frames, that is, the dynamic point cloud data of the current frame is the dynamic point cloud data of any frame, that is, this embodiment executes the current step and subsequent steps for each frame of dynamic point cloud data.

[0025] In addition, the target dynamic point can be any point in the dynamic point corresponding to the dynamic point cloud data. Of course, the target dynamic point can also be a dynamic point in the dynamic point cloud data that meets specific conditions. The specific conditions can be that the same dynamic point can be located by two different detection methods, or that the confidence of the dynamic point is greater than a preset value, thereby ensuring the reliability and effectiveness of the target dynamic point.

[0026] By determining the position and posture information of the target dynamic points in each frame of dynamic point cloud data in the vehicle coordinate system, the target dynamic points can be converted to the global coordinate system, so that the target dynamic point cloud can be corrected and dedistorted in subsequent steps.

[0027] Step 103, based on the position and posture information of the target dynamic point in the vehicle coordinate system, the target dynamic point is converted into the global coordinate system, and the target dynamic point is tracked to calculate the motion state of the target dynamic point at each moment of the current frame.

[0028] In some embodiments, the vehicle coordinate system is a coordinate system established with the vehicle itself as the reference system, the origin can be selected at the center point of the rear axle of the vehicle, the direction of the vehicle's forward movement is defined as the positive x-axis, the vehicle's width to the right is defined as the positive y-axis, and the direction perpendicular to the ground and toward the ground is defined as the positive z-axis. The global coordinate system can be established with the earth as the reference system, such as the Earth-Centered, Earth-Fixed (ECEF) coordinate system.

[0029] Various sensors installed on the vehicle (such as cameras, laser radars, etc.) can obtain the position and posture information of target dynamic points (such as pedestrians, other vehicles, etc.) in the surrounding environment in real time in the vehicle coordinate system. This information is expressed in the form of coordinates, reflecting the position relationship of the target dynamic point relative to the vehicle. The vehicle coordinate system changes with the movement of the vehicle, and since a frame of dynamic point cloud data includes point cloud data acquired at different times, in order to uniformly represent and process the position and posture information of the target dynamic points acquired at different times, the position and posture information of the target dynamic points in the vehicle coordinate system is converted to the global coordinate system to obtain the position and posture information of the target dynamic points in the global coordinate system. In this way, the relative position and posture of the target dynamic point is converted into an absolute position and posture, so that the target dynamic point data can be processed in a unified reference frame, namely the global coordinate system, which is convenient for target tracking and motion state estimation, thereby providing convenience for removing the distortion caused by the relative motion between the vehicle and the moving object.

[0030] In addition, since the timestamps of different points in each frame of the point cloud are different, after the target dynamic points are converted to the global coordinate system, the target dynamic points can be tracked in the global coordinate system, so as to calculate the motion state of the target dynamic points at each moment of the current frame, and realize the mapping of target dynamic points with frames as time units to processing with each moment of the current frame as the time unit, which provides a basis for subsequent motion compensation of the target dynamic points, thereby providing data support for removing point cloud distortion caused by dynamic point motion.

[0031] For example, taking a laser radar with a speed of 10 frames per second as an example, each frame of point cloud takes 100 milliseconds, and the difference between the first point and the last point in each frame of point cloud is about 100 milliseconds. Assuming that each moment of the current frame is a time point with an equal interval of time in 100 milliseconds, for example, each moment is the 10th millisecond, 20th millisecond, ..., 100 milliseconds in 100 milliseconds, then the motion state of each target dynamic point in the global coordinate system at the 10th millisecond, 20 milliseconds, ..., 100 milliseconds can be calculated.

[0032] Step 104, based on the motion state of the target dynamic point at each moment in the current frame, determine the global pose information of the target dynamic point at the target moment in the global coordinate system.

[0033] In some embodiments, the target time is a reference time point selected when processing point cloud data, and the reference time point is a point in the laser radar data collection cycle. For example, the time point can be a time point determined based on a certain strategy, or a pre-set time point. Continuing with the above example, the time point can be directly set to the 50th millisecond.

[0034] Specifically, the time difference between the timestamp of the target dynamic point and the target moment and the motion state of the target dynamic point at each moment of the current frame can be integrated in time to obtain the global pose information of the target dynamic point at the target moment in the global coordinate system, thereby unifying the target dynamic point cloud to the same timestamp, thereby eliminating motion distortion. The global pose information of the target dynamic point at the target moment in the global coordinate system is the pose that the target dynamic point should have at the target moment, that is, the global pose information is obtained by calculation and prediction.

[0035] In addition, one of the reasons for the motion distortion of the LiDAR point cloud data is the motion of dynamic objects in the environment, that is, the LiDAR data acquisition requires a certain amount of time, and during this time, both the vehicle and the dynamic object may move, causing distortion of the point cloud data. Through the above-mentioned target tracking, the motion state of the target dynamic point at each moment of the current frame can be obtained. Based on the motion state of the target dynamic point at each moment of the current frame, its point cloud data at each moment can be compensated, and the point cloud data is converted from the actual position of the dynamic object at the timestamp to its predicted position at the target moment, that is, the global pose information of the target dynamic point at the target moment in the global coordinate system, thereby eliminating the point cloud distortion caused by the motion of the dynamic object.

[0036] Step 105, based on the pre-acquired conversion matrix and global pose information at the target time between the global coordinate system and the vehicle coordinate system, the target dynamic point is converted to the vehicle coordinate system at the target time to obtain the target dynamic point data at the target time in the vehicle coordinate system.

[0037] In some embodiments, according to the transformation matrix at the target moment between the global coordinate system and the vehicle coordinate system, the global pose information of the target dynamic point at the target moment in the global coordinate system is transformed to obtain the target dynamic point data at the target moment in the vehicle coordinate system. The target dynamic point data at the target moment is used to represent the state of the dynamic object.

[0038] By applying the transformation matrix, the target dynamic point data in the global coordinate system can be converted to the vehicle coordinate system to achieve motion compensation for the target dynamic point data and eliminate the distortion caused by the vehicle's own motion and the target object's motion. This allows the vehicle to understand the surrounding environment with itself as the center, helping the vehicle to make more accurate autonomous driving decisions based on the dynamic point data in the vehicle coordinate system.

[0039] Step 106: determine all target dynamic point data at the target time in the vehicle coordinate system as dedistorted dynamic point cloud data.

[0040] In some embodiments, the target dynamic point data at the target moment in the vehicle coordinate system has been transformed accordingly according to the motion state and posture information of the dynamic object. The transformation takes into account the impact of the motion of the dynamic object on the point cloud data, removes motion distortion to a certain extent, and determines the target dynamic point data at the target moment in the vehicle coordinate system as de-distorted data, which means that the distortion caused by the relative motion between the dynamic object and the vehicle has been removed by the above-mentioned de-distortion method. The obtained target dynamic point data at the target moment in the vehicle coordinate system is closer to the state of the dynamic object in the real environment, and can more accurately reflect the environmental information around the vehicle.

[0041] The embodiments of the present application perform target dynamic point tracking and motion state estimation in a global coordinate system, thereby more accurately predicting the motion state of a dynamic object, using the motion state of the dynamic object to perform motion compensation on the target dynamic point, and then converting it back to the vehicle coordinate system, thereby solving the problem of poor laser point cloud dedistortion due to the relative motion between the vehicle and the moving target in the prior art, thereby eliminating the distortion effect of the motion of the dynamic object on the point cloud data, improving the accuracy and availability of the lidar point cloud data, providing high-quality environmental perception information for the vehicle's autonomous driving, and avoiding the problem of low precision of point cloud information obtained through clustering algorithms and inability to accurately know the target type, and reducing computing resources.

[0042] In some embodiments, when acquiring dynamic point cloud data from multiple continuous frames of laser point cloud data, multiple continuous frames of laser point cloud data collected by the vehicle through a laser radar can be acquired; each frame of laser point cloud data is divided into static point cloud data and dynamic point cloud data through a pre-set point cloud segmentation model.

[0043] Specifically, LiDAR is a common sensor used to capture three-dimensional information about the vehicle's surroundings. The point cloud data collected by LiDAR is the key to the autonomous driving system's perception of the environment. It contains information about static objects and dynamic objects. Static objects can be buildings, trees, etc., and dynamic objects can be pedestrians, other vehicles, animals, etc. Processing the laser point cloud data and dividing each frame of laser point cloud data into static point cloud data and dynamic point cloud data is crucial to achieving safe and reliable autonomous driving.

[0044] Specifically, when each frame of laser point cloud data is divided into static point cloud data and dynamic point cloud data through a pre-set point cloud segmentation model, the point cloud segmentation model can predict the dynamic and static states of each point and output a prediction value, wherein when the prediction value is greater than a preset threshold, the point is determined to be a dynamic point, and when the prediction value is less than or equal to the preset threshold, the point is determined to be a static point.

[0045] The above point cloud segmentation model can be a Sparse Point Voxel Network with Neural Architecture Search (SPVNAS). As an example, refer to Figure 2 , Figure 2 The results of using SPVNAS to perform static and dynamic division of laser point cloud data are obtained by using SPVNAS to perform static and dynamic division of each frame of laser point cloud data to obtain the predicted value of each point. Points with predicted values ​​greater than the preset threshold are determined as dynamic point clouds and output. Figure 2 In the figure, the dark point cloud represents the dynamic point cloud corresponding to the dynamic object (such as vehicles, pedestrians, etc.), and the light point cloud other than the dark point cloud represents the static point cloud corresponding to the static object.

[0046] The distortion of LiDAR point cloud data mainly comes from two aspects: one is the movement of the LiDAR (or vehicle) itself, and the other is the movement of dynamic objects in the environment. Since LiDAR data collection takes a certain amount of time, and vehicles and dynamic objects may move during this time, causing distortion of point cloud data. The laser point cloud data is divided into static point cloud data and dynamic point cloud data. Static point cloud data is dedistorted using the corresponding method of static point cloud dedistortion, and dynamic point cloud data is dedistorted using the corresponding method of dynamic point cloud dedistortion, which improves the accuracy of dedistortion.

[0047] In some embodiments, determining the position and posture information of the target dynamic point in the current frame dynamic point cloud data in the vehicle coordinate system includes:

[0048] Acquire vehicle motion data collected by the vehicle through an inertial measurement unit, and acquire multiple continuous frame panoramic images collected by a camera, wherein the multiple continuous frame laser point cloud data and the multiple continuous frame panoramic images correspond one to one in time, and the acquisition period of the vehicle motion data is the same as the acquisition period of the multiple continuous frame laser point cloud data;

[0049] Determine the position and posture information of the vehicle within a first preset number of frames in a global coordinate system based on the vehicle motion data and the static point cloud data in the laser point cloud data of a first preset number of frames; wherein the frames corresponding to the first preset number of frames belong to a plurality of continuous frames;

[0050] Filtering the posture information of the second preset number of frames from the posture information within the first preset number of frames to obtain the posture information of the second preset number of frames, and fusing the dynamic point cloud data of the second preset number of frames based on the posture information of the second preset number of frames to obtain fused point cloud data; wherein the dynamic point cloud data of the second preset number of frames includes the dynamic point cloud data of the current frame and the dynamic point cloud data of the historical frames before the dynamic point cloud data of the current frame;

[0051] Through the preset target detection model, point cloud features are extracted from the fused point cloud data, and image features are extracted from the panoramic image of the current frame. Based on the point cloud features and image features, the coordinate information of the target detection frame is obtained.

[0052] Based on the coordinate information of the target detection frame and the pose information of the dynamic points in the dynamic point cloud data of the current frame, the target detection frame is aligned with the dynamic points in the dynamic point cloud data of the current frame to obtain the dynamic points in the target detection frame;

[0053] The dynamic point in the target detection frame is determined as the target dynamic point, and the coordinate information of the target detection frame corresponding to the target dynamic point is determined as the pose information of the target dynamic point in the vehicle coordinate system; wherein the pose information includes the position information and the posture information of the target dynamic point in the vehicle coordinate system.

[0054] Specifically, the vehicle collects vehicle motion data through an inertial measurement unit, which may include the acceleration and angular velocity of the vehicle. The sampling frequency of the inertial measurement unit is usually high, such as 100 Hz or higher, so the inertial measurement unit can almost continuously record the dynamic behavior of the carrier (i.e., the vehicle) and provide rich motion information.

[0055] The vehicle collects panoramic images of continuous frames through the camera. The collection period of the vehicle motion data is the same as the collection period of multiple continuous frames of laser point cloud data. The laser point cloud data and the panoramic image correspond one to one in time to ensure the synchronization of the data. It should be noted that the camera, inertial measurement unit and lidar are based on the same time standard (unified clock source) to avoid mismatching due to time offset or inconsistency. The temporal synchronization of laser point cloud data, panoramic images and vehicle motion data is crucial for subsequent data fusion and target positioning. In addition, these data source devices are common devices in vehicle systems, which are easy to obtain and do not require additional hardware investment.

[0056] In addition, this embodiment can calculate the posture information of the vehicle in the time period corresponding to the first preset frame number in the global coordinate system through an integral or optimization algorithm based on the vehicle motion data, and the posture information includes position information and attitude information. In some embodiments, the static point cloud data of the first preset frame number and the vehicle motion data can also be combined to output the posture information of the vehicle in the time period corresponding to the first preset frame number in the global coordinate system through an open source algorithm. The open source algorithm can be, for example, a tightly coupled Lidar InertialOdometry via Smoothing and Mapping (LIO-SAM). This embodiment only needs to process the first preset frame number to calculate the relative posture, and obtains a very accurate effect, and avoids complex large-scale offline modeling, so that the processing efficiency of laser point cloud de-distortion is improved under limited computing resources, and when processing large laser point cloud data with more than 200,000 points, the real-time and high efficiency of the processing are guaranteed.

[0057] As an example, the first preset number of frames may be 10 frames, that is, the corresponding time period is 1 second, and the calculation process may be offline. In this way, by determining the position information of the vehicle within the first preset number of frames in the global coordinate system, for example, in the offline processing process, only 10 consecutive frames within the first 1 second need to be processed offline, which reduces the consumption of computing resources and achieves a balance between processing speed and accuracy.

[0058] The posture information of the vehicle within the first preset number of frames in the global coordinate system reflects the position and posture of the vehicle at the time point corresponding to each frame in the first preset number of frames. The posture information of the vehicle within the second preset number of frames is filtered out from the posture information of the vehicle within the first preset number of frames, and the posture information of the vehicle within the second preset number of frames will be used for subsequent point cloud data fusion. The second preset number of frames is less than or equal to the first preset number of frames. Specifically, the second preset number of frames can be 5 frames, and the first preset number of frames can be 10 frames.

[0059] In addition, the dynamic point cloud data of the second preset number of frames includes the dynamic point cloud data of the current frame and the dynamic point cloud data of the historical frames before the dynamic point cloud data of the current frame. For example, assuming that the second preset number of frames is 5 frames, the dynamic point cloud data of the second preset number of frames includes the dynamic point cloud data of the current frame and the point cloud data of the adjacent 4 frames of historical frames. By intercepting the second preset number of frames from the first preset number of frames, the previously calculated data can be used, and the number of frames required for fusion can be selected according to actual needs.

[0060] Based on the posture information of the vehicle within the two preset frames obtained by screening, the dynamic point cloud data of the second preset frame number is fused to obtain fused point cloud data, which can be used to eliminate or reduce point cloud distortion caused by vehicle movement. The fused point cloud data provides a more complete and accurate scene representation, and improves the continuity and integrity of the dynamic point cloud data. Specifically, when the first preset frame number can be 10 frames and the second preset frame number can be 5 frames, the dynamic point cloud data of the second preset frame number can be the dynamic point cloud data of the 6th to 10th frames.

[0061] Based on the pose information of the second preset number of frames, the dynamic point cloud data of the second preset number of frames are fused to obtain fused point cloud data. Specifically, the fusion can be performed according to the following formula:

[0062]

[0063] in, Represents the dynamic point cloud data of the i-th frame. In this example, when i is 0, it represents the current frame. The value range of i is from -4 to 0, which means that this formula takes into account the point cloud data of the current frame and the previous four frames; Represents the transformation matrix from the vehicle coordinate system to the global coordinate system at the current frame time (i.e., the kth frame time), represents the transformation matrix from the vehicle coordinate system to the global coordinate system at the i-th frame, Represents the fused point cloud data, Express The inversion of . Calculate the relative position transformation of the vehicle's position information of the i-th frame relative to the vehicle's position information of the current frame, unify the vehicle's position information of the historical frame (i.e., the vehicle's position information of the previous i frames) into the coordinate system of the vehicle's position information, and ensure that the vehicle's position information of the second preset number of frames is compared and fused in the same coordinate system. Multiply the above calculation by , thus The original coordinate system (the vehicle coordinate system at the current frame and the historical frame) is transformed into the coordinate system of the point cloud of the current frame, so as to superimpose these point cloud data to form a fused point cloud data P.

[0064] In addition, through the pre-set target detection model, point cloud features are extracted from the fused point cloud data, and image features are extracted from the panoramic image of the current frame. These two features are combined to obtain the coordinate information of the detection box for locating dynamic objects.

[0065] Specifically, the fused point cloud data and the panoramic image of the previous frame can be input into a pre-set target detection model, and the fused point cloud data can be feature extracted by the 3D convolutional neural network in the target detection model to capture the spatial relationship and local structure of the target in the point cloud, and obtain the point cloud features. The panoramic image of the current frame can be feature extracted by the 2D convolutional neural network in the target detection model to obtain the image features. The point cloud features and the image features are feature fused to obtain a fused feature map; the fused feature map is input into the detection head in the target detection model to perform three-dimensional target detection to obtain a detection frame based on the vehicle coordinate system, and the output detection frame includes the center point coordinates, width, height, length and rotation angle. Based on the detection frame, the dynamic points in the dynamic point cloud data of the current frame are aligned, and the roiaware_pool3d_cuda algorithm can be used for graphics processing unit (GPU) acceleration to improve the speed of processing large-scale point cloud data, and the dynamic points in the detection frame are determined as target dynamic points. The position information of the target dynamic points in the vehicle coordinate system is determined from the target dynamic point data. The above target dynamic point data is the point cloud data that is finally determined to belong to the dynamic object.

[0066] For example, Figure 3As shown, the target detection model can be a bird's-eye view fusion (Bevfusion) algorithm model, and the target detection model 300 includes: a 3D convolutional neural network 301, a 2D convolutional neural network 302, a flattening processing module 303, a bird's-eye view conversion module 304, a splicing module 305, and a detection head 306. The 3D convolutional neural network 301 in the target detection model 300 extracts point cloud features from the fused point cloud data, extracts geometric features, spatial layout, and possible object shapes from the fused point cloud data, and obtains point cloud features. The 3D convolutional neural network can be PointNet++, VoxelNet, etc. The 2D convolutional neural network 302 extracts visual features from the panoramic image of the current frame, captures the color, texture, edge, and high-level semantic features in the panoramic image of the current frame, and obtains image features. The flattening processing module 303 aggregates the point cloud features in the Z-axis direction to obtain a two-dimensional point cloud feature map, and the bird's-eye view conversion module 304 converts the image features to a bird's-eye view to obtain a target panoramic image feature map, and converts the point cloud features and image features to a unified BEV perspective for subsequent fusion and analysis. The two-dimensional point cloud feature map and the target panoramic image feature map are spliced ​​by the splicing module 305, and the features from the camera and the lidar are fused, and the information from different sensors is combined to obtain a more accurate and comprehensive understanding of the scene to obtain a fused feature map. The fused feature map is input into the detection head 306 of the target detection model 300. The detection head 306 includes a series of convolutional layers, pooling layers, fully connected layers, etc., which can be used to further process and analyze the features. The detection head 306 predicts the category, position (including x, y, z coordinates), size (such as width, height, length) and possible orientation information of the dynamic objects in the scene based on the input BEV fusion feature map, that is, the coordinate information of the target detection frame. In practical applications, the target detection model will output a large number of candidate detection frames, which can be combined with the non-maximum suppression algorithm and set a suitable confidence threshold. When the confidence of the candidate detection frame output by the target detection model is greater than the confidence threshold, the candidate detection frame is considered reliable and can be determined as the target detection frame. The target detection frame is aligned with the dynamic points in the dynamic point cloud data of the current frame to obtain the dynamic points in the target detection frame, that is, the target dynamic points. The coordinate information of the target detection frame corresponding to the target dynamic points is determined as the pose information of the target dynamic points in the vehicle coordinate system, where the pose information includes the position information and the pose information of the target dynamic points in the vehicle coordinate system.

[0067] In this way, the coordinate information of the target detection frame is obtained by using the image and the fused point cloud data, which improves the detection accuracy of the position and pose information of the target dynamic point compared to obtaining the position and pose information of the point only through the point cloud data. In addition, through experiments, it is found that the position and pose information of the target dynamic point in the vehicle coordinate system determined by the above method has an improvement of more than 20% in detection accuracy compared to obtaining the position and pose information of the point only through the point cloud data, thereby improving the reliability and accuracy of the determined data.

[0068] In some embodiments, based on the pose information of the target dynamic point in the vehicle coordinate system, converting the target dynamic point into the global coordinate system includes:

[0069] Based on the current frame pose information of the vehicle in the global coordinate system, a transformation matrix corresponding to the current frame between the global coordinate system and the vehicle coordinate system is obtained;

[0070] The position and posture information of the target dynamic point in the vehicle coordinate system is transformed based on the transformation matrix, and the target dynamic point is transformed from the vehicle coordinate system to the global coordinate system to obtain the position and posture information of the target dynamic point in the global coordinate system.

[0071] Specifically, various sensors installed on the vehicle (such as cameras, lidar, etc.) obtain real-time position information of target dynamic points in the surrounding environment (such as pedestrians, other vehicles, etc.) in the vehicle coordinate system. This information is expressed in the form of coordinates, reflecting the position relationship of the target dynamic points relative to the vehicle. The vehicle coordinate system changes with the movement of the vehicle.

[0072] In order to uniformly represent and process the pose information of the target dynamic point obtained at different times, the pose information of the target dynamic point in the vehicle coordinate system is converted to the global coordinate system to obtain the pose information of the target dynamic point in the global coordinate system. The global coordinate system is a fixed coordinate system. The origin, positive x-axis, positive y-axis and positive z-axis of the global coordinate system will not change with time.

[0073] The vehicle motion data collected by the inertial measurement unit and the static point cloud data of the current frame can be used to calculate the position information of the vehicle in the current frame in the global coordinate system, and the vehicle coordinate system of the current frame can be obtained based on the position information of the vehicle in the current frame in the global coordinate system. Based on the vehicle coordinate system of the current frame and the global coordinate system, the transformation matrix of the current frame between the global coordinate system and the vehicle coordinate system of the current frame can be determined, and the transformation matrix can represent the rotation and translation relationship from the vehicle coordinate system of the current frame to the global coordinate system.

[0074] The transformation matrix of the current frame is used to transform the position and posture information of the target dynamic point in the vehicle coordinate system, including the transformation of the position coordinates and the corresponding adjustment of the attitude (heading angle), to obtain the position and posture information of the target dynamic point in the global coordinate system.

[0075] It should be noted that this embodiment converts the pose information of the target dynamic point in the vehicle coordinate system based on the transformation matrix of the current frame. When the target dynamic point is converted from the vehicle coordinate system to the global coordinate system, the point cloud can be grouped according to the lateral angle at intervals of a preset angle, and the difference between the timestamps of the point clouds in the group is within a preset time. Then, all the point clouds in the group are batch converted and accelerated using the GPU.

[0076] In this way, since a point cloud frame may contain hundreds of thousands of point cloud points, it is slow to convert the coordinate system of hundreds of thousands of point clouds in sequence. Therefore, according to the physical principle of laser radar, the point cloud can be grouped according to the horizontal angle at intervals of a preset angle (for example, 1°), and the time stamps of the point clouds in the group are within a preset time (for example, 0.3ms), so that the motion error is small, so that all point clouds in the group can be batch converted, and the GPU is used to accelerate the calculation, which greatly improves the conversion efficiency and ensures real-time performance. In addition, combined with the processing of the first preset number of frames to calculate the relative pose, for example, only 10 consecutive frames within the first second need to be processed offline, so that the computing resource consumption is low, and in the offline processing process, the point cloud is grouped and batch processed, achieving a balance between processing speed and accuracy, which can not only improve processing efficiency, but also ensure real-time performance, and solve the problems of low processing efficiency and poor real-time performance that may occur in existing algorithms when processing large-scale laser point cloud data.

[0077] In addition, if the position of the target dynamic point is expressed as a target detection box, the target detection box can be transferred to the global coordinate system by the following formula:

[0078] ;

[0079] ;in, Represents the center point coordinates of the target detection box in the global coordinate system;

[0080] represents the transformation matrix from the vehicle coordinate system to the global coordinate system at the i-th frame, Represents the center point coordinates of the target detection box in the vehicle coordinate system;

[0081] Indicates the size of the target detection box in the global coordinate system, Indicates the size of the target detection box in the vehicle coordinate system.

[0082] In some embodiments, the present embodiment further includes:

[0083] Obtain static point cloud data from multiple continuous frames of laser point cloud data;

[0084] For the static point cloud data of the current frame, determine the position and posture information of the static point in the vehicle coordinate system;

[0085] Convert the pose information of the static point in the vehicle coordinate system to the global coordinate system to obtain the global pose information of the static point in the global coordinate system;

[0086] Based on the pre-acquired conversion matrix between the global coordinate system and the vehicle coordinate system at the target time and the global pose information of the static point in the global coordinate system, the static point is converted to the vehicle coordinate system at the target time to obtain the static point data at the target time in the vehicle coordinate system;

[0087] The static point data at the target time in the vehicle coordinate system is determined as the dedistorted static point cloud data.

[0088] Specifically, the static point cloud data of the current frame may include the position information of the static point of the current frame in the vehicle coordinate system and the timestamp information of the static point of the current frame.

[0089] In addition, specifically, by combining the static point cloud of continuous frames before the current frame and the vehicle motion data output by the inertial measurement unit, a short-term laser odometer based on relative posture can be obtained, that is, the posture information of the static point in the vehicle coordinate system can be obtained.

[0090] The pose information of the static point of the current frame in the vehicle coordinate system is transformed to obtain the global pose information of the static point of the current frame in the global coordinate system, and a unified reference frame is established so that the pose information of static points from different time points can be compared in the same coordinate system.

[0091] The transformation matrix corresponding to each moment of the current frame includes the transformation matrix of the target moment. The target moment is the reference time point selected when processing the point cloud data. The time point is a point in the lidar data acquisition cycle and can be a time point determined based on a certain strategy. For example, continuing with the embodiment of the above-mentioned dynamic point cloud processing method, the time point can be directly set to the 50th millisecond in a frame.

[0092] Based on the transformation matrix between the global coordinate system and the vehicle coordinate system at the target moment and the global pose information of the static point in the global coordinate system, the static point is converted to the vehicle coordinate system at the target moment to obtain the pose information of the static point in the vehicle coordinate system, thereby obtaining the static point data at the target moment in the vehicle coordinate system, eliminating the influence of vehicle motion, and making the static point data of the same frame consistent in time.

[0093] The static point data at the target time in the vehicle coordinate system obtained after the above steps refer to the influence of vehicle motion on the static point data, and make corresponding corrections. The static point data at the target time in the vehicle coordinate system can be determined as the static point cloud data after de-distortion. The static point cloud data after de-distortion can provide more accurate and reliable environmental information for applications such as autonomous driving, which helps to improve the safety and stability of the vehicle.

[0094] It should be noted that when converting the position information of the static point in the vehicle coordinate system to the global coordinate system, the point cloud can be grouped according to the lateral angle with a preset angle as the interval. The timestamps of the point clouds in the group differ by a preset time, and the motion error is small. Therefore, all the point clouds in the group can be batch converted, and the GPU can be used to accelerate the calculation, which greatly improves the conversion efficiency.

[0095] In some embodiments, converting the pose information of the static point in the vehicle coordinate system to the global coordinate system to obtain the global pose information of the static point in the global coordinate system includes:

[0096] Interpolate the position and posture information of the vehicle in the current frame in the global coordinate system to obtain the position and posture information of the vehicle at each moment in the current frame;

[0097] Based on the position information of the vehicle at each moment of the current frame, the transformation matrix between the global coordinate system and the vehicle coordinate system at each moment of the current frame is obtained;

[0098] Based on the transformation matrix between the global coordinate system and the vehicle coordinate system at each moment of the current frame, the pose information of the static point in the vehicle coordinate system is transformed to obtain the global pose information of the static point in the global coordinate system.

[0099] Specifically, the vehicle's current frame posture information in the global coordinate system can be calculated using the vehicle motion data collected by the inertial measurement unit and the static point cloud data of the current frame. During actual driving, the vehicle's posture information changes continuously, but the posture information of consecutive frames of the vehicle in the global coordinate system calculated in the above manner is the posture information at discrete time points. By interpolating the posture information of the vehicle in the current frame in the global coordinate system, the posture information of the vehicle at each moment in the current frame can be estimated, thereby improving the accuracy and continuity of the vehicle's posture information. The interpolated posture information of the vehicle at each moment in the current frame will serve as the basic data for the subsequent conversion of static points from the vehicle coordinate system to the global coordinate system.

[0100] Through the posture information of the vehicle at each moment of the current frame, the transformation matrix between the global coordinate system and the vehicle coordinate system at each moment of the current frame can be calculated, so as to establish the transformation relationship between the two. The transformation matrix can represent the rotation and translation relationship from the vehicle coordinate system to the global coordinate system at each moment of the current frame, of course, each moment includes the target moment. Through the transformation matrix between the global coordinate system and the vehicle coordinate system at each moment of the current frame, the posture information of the static point in the vehicle coordinate system is transformed to obtain the specific position and direction of the static point in the global coordinate system, that is, the global posture information of the static point in the global coordinate system, so as to realize the global positioning of the static point.

[0101] In some embodiments, the position information of the vehicle in the current frame in the global coordinate system includes the position information of the vehicle in the current frame and the posture information of the vehicle in the current frame;

[0102] Interpolate the position and posture information of the vehicle in the current frame in the global coordinate system to obtain the position and posture information of the vehicle at each moment in the current frame, including:

[0103] Perform linear interpolation on the position information of the vehicle in the current frame to obtain the position information of the vehicle at each moment in the current frame; perform spherical linear interpolation on the posture information of the vehicle in the current frame to obtain the posture information of the vehicle at each moment in the current frame;

[0104] The position information of the vehicle at each moment in the current frame and the posture information of the vehicle at each moment in the current frame are determined as the position and posture information of the vehicle at each moment in the current frame.

[0105] Specifically, the vehicle's position and posture information in the global coordinate system includes the vehicle's position information in the current frame and the vehicle's posture information in the current frame. The vehicle's position information in the current frame can be represented by the vehicle's three-dimensional coordinates (X, Y, Z) in the global coordinate system, and the vehicle's posture information in the current frame can be represented by Euler angles.

[0106] For the processing of vehicle position information, the starting position information and ending position information of the vehicle in the current frame are determined. According to the starting position information and ending position information of the vehicle in the current frame and the number of time points that need linear interpolation, the linear interpolation method is used to calculate the position information of the vehicle at each moment in the current frame. Linear interpolation can obtain a smooth trajectory of vehicle position changes, making the vehicle's position information more continuous and accurate in the time dimension.

[0107] For the processing of vehicle posture information, the starting posture information and ending posture information of the vehicle in the current frame are determined. According to the starting posture information and ending posture information of the vehicle in the current frame and the number of time points that require spherical linear interpolation, the posture information of the vehicle at each moment of the current frame is calculated using the spherical linear interpolation method. Spherical linear interpolation can maintain the rotation characteristics of the vehicle posture and avoid unnatural distortion or mutation during the interpolation process.

[0108] Through the linear interpolation of the vehicle's position information, the precise position of the vehicle at each moment can be obtained, which helps to compensate and correct the laser point cloud data in the same frame according to the actual position of the vehicle, thereby eliminating the position deviation caused by vehicle movement. Through the spherical linear interpolation of the vehicle's attitude information, the precise attitude of the vehicle at each moment can be obtained, which helps to compensate and correct the laser point cloud data in the same frame according to the actual attitude of the vehicle, thereby eliminating the point cloud distortion caused by the change of vehicle attitude.

[0109] In some embodiments, target tracking is performed on the target dynamic point to calculate the motion state of the target dynamic point at each moment of the current frame, including:

[0110] Obtaining position and posture information of the target dynamic point a third preset number of frames before the current frame in the global coordinate system;

[0111] According to the pose information of the target dynamic point of the third preset frame number and the pose information of the target dynamic point of the current frame, the initial Kalman filter is forward updated to obtain the forward updated Kalman filter; according to the pose information of the target dynamic point of the third preset frame number and the pose information of the target dynamic point of the current frame, the forward updated Kalman filter is reversely updated to obtain the Kalman filter;

[0112] Based on the Kalman filter, multiple target dynamic points are tracked to obtain the initial motion trajectory of the target dynamic points in the current frame;

[0113] The initial motion trajectory of the target dynamic point in the current frame is smoothed in a fixed interval to obtain the motion trajectory of the target dynamic point in the current frame; the motion trajectory of the target dynamic point in the current frame is linearly fitted to obtain the motion state of the target dynamic point at each moment in the current frame.

[0114] Specifically, target tracking calculation is performed on the target dynamic point to obtain the motion state of the target dynamic point at each moment in the current frame. Actually, target tracking calculation can be performed on the target detection frame to which the target dynamic point belongs to obtain the motion state of the target detection frame at each moment in the current frame. Subsequently, the motion state of the target detection frame at each moment in the current frame is used as an example to illustrate the motion state of the target dynamic point at each moment in the current frame.

[0115] In some embodiments, the pose information of the target detection frame of the third preset frame number before the current frame in the global coordinate system is obtained to provide a data basis for the subsequent Kalman filter update. The pose information of the target detection frame of the third preset frame number before the current frame is the historical pose information of the target detection frame.

[0116] The Kalman filter is an efficient recursive filter that can predict the pose information of the target detection frame in the next frame. Specifically, this embodiment can use the historical pose information of the target detection frame and the pose information of the target detection frame of the current frame to perform a forward update on the initial Kalman filter: in each frame, the Kalman filter predicts the pose information of the target detection frame of the current frame based on the pose information of the target detection frame of the previous frame, and uses the pose information of the target detection frame of the current frame as an observation, and compares it with the predicted pose information of the Kalman filter. The observation and the predicted state are matched through the Hungarian algorithm to find the corresponding observation and prediction pair. After determining the match between the observation and the prediction, the Kalman filter pose estimate is updated using the observation data, and the estimated covariance matrix is ​​corrected to reflect the uncertainty of the state estimate, until the Kalman filter is obtained after the forward update.

[0117] The Kalman filter after the forward update is reversely updated using the historical pose information of the target detection frame and the pose information of the target detection frame of the current frame, including: starting from the pose information of the target detection frame of the current frame, the Kalman filter reversely predicts the pose information of the target detection frame of the previous frame according to the pose information of the target detection frame of the current frame, takes the pose information of the target detection frame of the previous frame as observation, and compares it with the reverse predicted pose information of the Kalman filter, matches the observation and reverse predicted state through the Hungarian algorithm, finds the corresponding observation and reverse prediction pair, and after determining the match between the observation and reverse prediction, uses the observation data to update the Kalman filter, and corrects the estimated covariance matrix to reflect the uncertainty of the state estimation, until the Kalman filter is obtained.

[0118] Based on the above Kalman filter that completes the reverse update, the target detection frame is tracked for multiple targets to obtain the initial motion trajectory of the target detection frame in the current frame. The initial motion trajectory of the target detection frame in the current frame is smoothed in a fixed interval to reduce the trajectory jitter caused by sensor noise, calculation errors and other factors in the initial motion trajectory, and obtain a smoother and more accurate motion trajectory of the target detection frame in the current frame. In addition, the combination of the forward and reverse bidirectional multi-target tracking algorithm for continuous frames and the Kalman filter smoothing calculation of the target trajectory can effectively optimize the target detection results and improve the accuracy and robustness of the detection algorithm.

[0119] For details, please refer to the following formula to calculate the motion state of the target detection frame at each moment in the current frame based on the motion trajectory of the target detection frame in the current frame: ;

[0120] in is the speed of the target detection frame in the x direction, is the speed of the target detection box in the y direction, is the direction of the target detection frame, X is the motion trajectory in the x direction, and Y is the motion trajectory in the y direction. for The angle of time, is the angle at time t.

[0121] In this way, through the above formula, according to the motion trajectory of the target detection frame in the current frame, the motion trajectory of the target detection frame in the x and y directions is linearly fitted, and the speed of the target detection frame in the x and y directions at each moment of the current frame is calculated by differentiation. In addition, according to the motion trajectory of the target detection frame in the current frame, spherical linear interpolation can be used to correct the orientation of the target detection frame at each moment of the current frame. The speed of the target detection frame in the x and y directions at each moment of the current frame and the orientation of the target detection frame at each moment of the current frame constitute the motion state of the target detection frame at each moment of the current frame. Finally, the motion state of the target detection frame at each moment of the current frame is determined as the motion state of the target dynamic point in the target detection frame at each moment of the current frame.

[0122] Among them, after obtaining the motion state, based on the motion state of the target dynamic point at each moment of the current frame, when determining the global posture information of the target dynamic point at the target moment in the global coordinate system, the time difference from each moment to the target moment can be integrated to obtain the global coordinates of the target dynamic point at the target moment in the global coordinate system.

[0123] Among them, the coordinates of the target dynamic point in the global coordinate system at the target time can be expressed by the following formula:

[0124]

[0125] Among them, X represents the coordinate of the target dynamic point in the x-axis direction at the target time, and Y represents the coordinate of the target dynamic point in the y-axis direction at the target time. Indicates the speed of the target dynamic point in the x-axis direction at the timestamp. Indicates the speed of the target dynamic point in the y-axis direction at the timestamp. Indicates the time difference between the target moment and the timestamp moment corresponding to the target dynamic point.

[0126] Through the above embodiments, accurate estimation of the motion state of dynamic objects is achieved, thereby removing the distortion caused by the relative motion of the vehicle and the dynamic object. Compared with the prior art which can only remove the motion distortion of the vehicle, the motion distortion of the laser point cloud is effectively removed, and a more optimized laser point cloud dedistortion effect is obtained. It also ensures that the processing efficiency and real-time performance of the laser point cloud dedistortion are improved under limited computing resources.

[0127] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0128] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0129] Figure 4 Schematic diagram of a point cloud dedistortion device provided in an embodiment of the present application. Figure 4 As shown, the point cloud dedistortion device includes:

[0130] The acquisition module 401 is configured to acquire dynamic point cloud data from a plurality of continuous frames of laser point cloud data, wherein the plurality of continuous frames of laser point cloud data are acquired by a laser radar on a vehicle, and the dynamic point cloud data are data of dynamic points corresponding to a dynamic object;

[0131] A first determination module 402 is configured to determine the position and posture information of the target dynamic point in the current frame dynamic point cloud data in the vehicle coordinate system;

[0132] The prediction module 403 is configured to convert the target dynamic point into the global coordinate system based on the position information of the target dynamic point in the vehicle coordinate system, and perform target tracking on the target dynamic point to calculate the motion state of the target dynamic point at each moment of the current frame;

[0133] The coordinate conversion module 404 is configured to determine the global position information of the target dynamic point at the target moment in the global coordinate system based on the motion state of the target dynamic point at each moment in the current frame;

[0134] The correction module 405 is configured to transform the target dynamic point into the vehicle coordinate system at the target time based on the pre-acquired conversion matrix and global pose information between the global coordinate system and the vehicle coordinate system at the target time, and obtain the target dynamic point data at the target time in the vehicle coordinate system;

[0135] The second determination module 406 is configured to determine all target dynamic point data at the target time in the vehicle coordinate system as de-distorted dynamic point cloud data.

[0136] In some embodiments, the first determination module 402 is configured to obtain vehicle motion data collected by the vehicle through an inertial measurement unit, and obtain multiple continuous frame panoramic images collected by a camera, wherein the multiple continuous frame laser point cloud data and the multiple continuous frame panoramic images correspond one to one in time, and the acquisition period of the vehicle motion data is the same as the acquisition period of the multiple continuous frame laser point cloud data; based on the vehicle motion data and the static point cloud data in the laser point cloud data of the first preset frame number, determine the posture information of the vehicle within a first preset frame number in the global coordinate system; wherein the frame corresponding to the first preset frame number belongs to multiple continuous frames; filter out the posture information of a second preset frame number from the posture information within the first preset frame number, and based on the posture information of the second preset frame number, fuse the dynamic point cloud data of the second preset frame number to obtain the fused point cloud data; wherein the second preset frame number The dynamic point cloud data of the number of frames includes the dynamic point cloud data of the current frame and the dynamic point cloud data of the historical frames before the dynamic point cloud data of the current frame; through the preset target detection model, point cloud features are extracted from the fused point cloud data, and image features are extracted from the panoramic image of the current frame, and based on the point cloud features and the image features, the coordinate information of the target detection frame is obtained; based on the coordinate information of the target detection frame and the pose information of the dynamic points in the dynamic point cloud data of the current frame, the target detection frame is aligned with the dynamic points in the dynamic point cloud data of the current frame to obtain the dynamic points in the target detection frame; the dynamic points in the target detection frame are determined as target dynamic points, and the coordinate information of the target detection frame corresponding to the target dynamic points is determined as the pose information of the target dynamic points in the vehicle coordinate system; wherein the pose information includes the position information and the pose information of the target dynamic points in the vehicle coordinate system.

[0137] In some embodiments, the prediction module 403 is configured to obtain a transformation matrix corresponding to the current frame between the global coordinate system and the vehicle coordinate system based on the posture information of the current frame of the vehicle in the global coordinate system; transform the posture information of the target dynamic point in the vehicle coordinate system based on the transformation matrix corresponding to the current frame, and transform the target dynamic point from the vehicle coordinate system to the global coordinate system to obtain the posture information of the target dynamic point in the global coordinate system.

[0138] In some embodiments, the point cloud dedistortion device also includes a processing module, which is configured to obtain static point cloud data from multiple consecutive frames of laser point cloud data; determine the pose information of the static point in the vehicle coordinate system for the current frame of static point cloud data; convert the pose information of the static point in the vehicle coordinate system to the global coordinate system to obtain the global pose information of the static point in the global coordinate system; based on the pre-acquired transformation matrix between the global coordinate system and the vehicle coordinate system at the target moment and the global pose information of the static point in the global coordinate system, convert the static point to the vehicle coordinate system at the target moment to obtain the static point data at the target moment in the vehicle coordinate system; determine the static point data at the target moment in the vehicle coordinate system as the dedistorted static point cloud data.

[0139] In some embodiments, the processing module is specifically configured to perform interpolation calculations on the posture information of the vehicle in the current frame in the global coordinate system to obtain the posture information of the vehicle at each moment in the current frame; based on the posture information of the vehicle at each moment in the current frame, obtain the transformation matrix between the global coordinate system and the vehicle coordinate system at each moment in the current frame; based on the transformation matrix between the global coordinate system and the vehicle coordinate system at each moment in the current frame, transform the posture information of the static point in the vehicle coordinate system to obtain the global posture information of the static point in the global coordinate system.

[0140] In some embodiments, the posture information of the vehicle in the current frame in the global coordinate system includes the position information of the vehicle in the current frame and the posture information of the vehicle in the current frame. The processing module is specifically configured to perform linear interpolation on the position information of the vehicle in the current frame to obtain the position information of the vehicle at each moment in the current frame; perform spherical linear interpolation on the posture information of the vehicle in the current frame to obtain the posture information of the vehicle at each moment in the current frame; and determine the position information of the vehicle at each moment in the current frame and the posture information of the vehicle at each moment in the current frame as the posture information of the vehicle at each moment in the current frame.

[0141] In some embodiments, the prediction module 403 is configured to obtain the pose information of the target dynamic point of the third preset number of frames before the current frame in the global coordinate system; forward update the initial Kalman filter according to the pose information of the target dynamic point of the third preset number of frames and the pose information of the target dynamic point of the current frame to obtain a forward updated Kalman filter; reverse update the forward updated Kalman filter according to the pose information of the target dynamic point of the third preset number of frames and the pose information of the target dynamic point of the current frame to obtain a Kalman filter; perform multi-target tracking on the target dynamic point based on the Kalman filter to obtain the initial motion trajectory of the target dynamic point in the current frame; perform fixed interval smoothing on the initial motion trajectory of the target dynamic point in the current frame to obtain the motion trajectory of the target dynamic point in the current frame; perform linear fitting on the motion trajectory of the target dynamic point in the current frame to obtain the motion state of the target dynamic point at each moment in the current frame.

[0142] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0143] Figure 5 Schematic diagram of an electronic device 5 provided in an embodiment of the present application. Figure 5 As shown, the electronic device 5 of this embodiment includes: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501. When the processor 501 executes the computer program 503, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 501 executes the computer program 503, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0144] The electronic device 5 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 5 may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 The electronic device 5 is merely an example and does not limit the electronic device 5 , and may include more or less components than those shown in the figure, or different components.

[0145] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0146] The memory 502 may be an internal storage unit of the electronic device 5, for example, a hard disk or memory of the electronic device 5. The memory 502 may also be an external storage device of the electronic device 5, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. The memory 502 may also include both an internal storage unit of the electronic device 5 and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the electronic device.

[0147] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments 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. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0148] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium (such as a computer-readable storage medium). Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0149] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A point cloud dedistortion method, characterized in that: include: Acquire dynamic point cloud data from a plurality of continuous frames of laser point cloud data, wherein the plurality of continuous frames of laser point cloud data are acquired by a laser radar on a vehicle, and the dynamic point cloud data are data of dynamic points corresponding to a dynamic object; Determine the position and posture information of the target dynamic point in the current frame dynamic point cloud data in the vehicle coordinate system; Based on the position information of the target dynamic point in the vehicle coordinate system, the target dynamic point is converted into a global coordinate system, and the target dynamic point is tracked to calculate the motion state of the target dynamic point at each moment of the current frame; Based on the motion state of the target dynamic point at each moment in the current frame, determining the global pose information of the target dynamic point at the target moment in the global coordinate system; Based on the pre-acquired conversion matrix at the target time between the global coordinate system and the vehicle coordinate system and the global pose information, the target dynamic point is converted to the vehicle coordinate system at the target time to obtain the target dynamic point data at the target time in the vehicle coordinate system; All target dynamic point data at the target time in the vehicle coordinate system are determined as dedistorted dynamic point cloud data.

2. The method according to claim 1, characterized in that The determining of the position and posture information of the target dynamic point in the current frame dynamic point cloud data in the vehicle coordinate system includes: Acquire vehicle motion data collected by the vehicle through an inertial measurement unit, and acquire a plurality of continuous frame panoramic images collected by a camera, wherein the plurality of continuous frame laser point cloud data and the plurality of continuous frame panoramic images correspond one to one in time, and the acquisition period of the vehicle motion data is the same as the acquisition period of the plurality of continuous frame laser point cloud data; Determine the position information of the vehicle within a first preset number of frames in a global coordinate system based on the vehicle motion data and the static point cloud data in the laser point cloud data of a first preset number of frames; wherein the frame corresponding to the first preset number of frames belongs to the multiple continuous frames; Filtering the posture information of the second preset number of frames from the posture information within the first preset number of frames to obtain the posture information of the second preset number of frames, and fusing the dynamic point cloud data of the second preset number of frames based on the posture information of the second preset number of frames to obtain fused point cloud data; wherein the dynamic point cloud data of the second preset number of frames includes the dynamic point cloud data of the current frame and the dynamic point cloud data of the historical frames before the dynamic point cloud data of the current frame; Extracting point cloud features from the fused point cloud data and image features from the panoramic image of the current frame through a preset target detection model, and obtaining coordinate information of a target detection frame based on the point cloud features and the image features; Based on the coordinate information of the target detection frame and the pose information of the dynamic points in the dynamic point cloud data of the current frame, the target detection frame is aligned with the dynamic points in the dynamic point cloud data of the current frame to obtain the dynamic points in the target detection frame; The dynamic point in the target detection frame is determined as the target dynamic point, and the coordinate information of the target detection frame corresponding to the target dynamic point is determined as the posture information of the target dynamic point in the vehicle coordinate system; wherein the posture information includes position information and posture information of the target dynamic point in the vehicle coordinate system.

3. The method according to claim 1, characterized in that The step of converting the target dynamic point into a global coordinate system based on the position and posture information of the target dynamic point in the vehicle coordinate system includes: Based on the pose information of the vehicle in the current frame in the global coordinate system, obtaining a transformation matrix corresponding to the current frame between the global coordinate system and the vehicle coordinate system; The position and posture information of the target dynamic point in the vehicle coordinate system is transformed based on the transformation matrix corresponding to the current frame, and the target dynamic point is transformed from the vehicle coordinate system to the global coordinate system to obtain the position and posture information of the target dynamic point in the global coordinate system.

4. The method according to claim 1, characterized in that: Also includes: Acquire static point cloud data from the plurality of continuous frames of laser point cloud data; For the static point cloud data of the current frame, determine the position and posture information of the static point in the vehicle coordinate system; Converting the position and posture information of the static point in the vehicle coordinate system to the global coordinate system to obtain the global position and posture information of the static point in the global coordinate system; Based on the pre-acquired conversion matrix between the global coordinate system and the vehicle coordinate system at the target time and the global pose information of the static point in the global coordinate system, the static point is converted to the vehicle coordinate system at the target time to obtain the static point data at the target time in the vehicle coordinate system; The static point data at the target time in the vehicle coordinate system is determined as the dedistorted static point cloud data.

5. The method according to claim 4, characterized in that The step of converting the position and posture information of the static point in the vehicle coordinate system into the global coordinate system to obtain the global position and posture information of the static point in the global coordinate system includes: Performing interpolation calculation on the position and posture information of the vehicle in the current frame in the global coordinate system to obtain the position and posture information of the vehicle at each moment in the current frame; Based on the position information of the vehicle at each moment of the current frame, a conversion matrix between the global coordinate system and the vehicle coordinate system at each moment of the current frame is obtained; Based on the transformation matrix between the global coordinate system and the vehicle coordinate system at each moment of the current frame, the pose information of the static point in the vehicle coordinate system is transformed to obtain the global pose information of the static point in the global coordinate system.

6. The method according to claim 5, characterized in that The posture information of the vehicle in the current frame in the global coordinate system includes the position information of the vehicle in the current frame and the posture information of the vehicle in the current frame; the interpolation calculation is performed on the posture information of the vehicle in the current frame in the global coordinate system to obtain the posture information of the vehicle at each moment in the current frame, including: Performing linear interpolation on the position information of the vehicle in the current frame to obtain the position information of the vehicle at each moment in the current frame; Performing spherical linear interpolation on the posture information of the vehicle in the current frame to obtain the posture information of the vehicle at each moment in the current frame; The position information of the vehicle at each moment in the current frame and the posture information of the vehicle at each moment in the current frame are determined as the position and posture information of the vehicle at each moment in the current frame.

7. The method according to claim 1, characterized in that The target tracking of the target dynamic point and calculating the motion state of the target dynamic point at each moment of the current frame include: Obtaining position and posture information of the target dynamic point a third preset number of frames before the current frame in the global coordinate system; According to the pose information of the target dynamic point of the third preset frame number and the pose information of the target dynamic point of the current frame, forward updating the initial Kalman filter to obtain a forward updated Kalman filter; According to the pose information of the target dynamic point of the third preset frame number and the pose information of the target dynamic point of the current frame, reversely updating the forward updated Kalman filter to obtain a Kalman filter; Performing multi-target tracking on the target dynamic points based on the Kalman filter to obtain the initial motion trajectory of the target dynamic points in the current frame; Performing fixed interval smoothing processing on the initial motion trajectory of the target dynamic point in the current frame to obtain the motion trajectory of the target dynamic point in the current frame; Linear fitting is performed on the motion trajectory of the target dynamic point in the current frame to obtain the motion state of the target dynamic point at each moment in the current frame.

8. A point cloud dedistortion device, characterized in that: include: An acquisition module is used to acquire dynamic point cloud data from a plurality of continuous frames of laser point cloud data, wherein the plurality of continuous frames of laser point cloud data are acquired by a laser radar on a vehicle, and the dynamic point cloud data are data of dynamic points corresponding to a dynamic object; The first determination module is used to determine the position and posture information of the target dynamic point in the current frame dynamic point cloud data in the vehicle coordinate system; A prediction module, used to convert the target dynamic point into a global coordinate system based on the position information of the target dynamic point in the vehicle coordinate system, and to track the target dynamic point, and calculate the motion state of the target dynamic point at each moment of the current frame; A coordinate conversion module, used to determine the global position information of the target dynamic point at the target moment in the global coordinate system based on the motion state of the target dynamic point at each moment in the current frame; A correction module, configured to transform the target dynamic point into the vehicle coordinate system at the target time based on the pre-acquired conversion matrix between the global coordinate system and the vehicle coordinate system at the target time and the global pose information, so as to obtain the target dynamic point data at the target time in the vehicle coordinate system; The second determination module is used to determine all target dynamic point data at the target time in the vehicle coordinate system as dedistorted dynamic point cloud data.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.