A 3D target detection method integrating monocular camera and lidar

By integrating the three-dimensional target detection method of monocular cameras and lidar, and combining the advantages of lidar and cameras, the problem of insufficient detection accuracy in complex environments is solved, more efficient three-dimensional target detection and tracking is achieved, and the automatic driving system is enhanced. Environmental awareness.

CN114120075BActive Publication Date: 2024-09-24WUHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111411601.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-25
Publication Date
2024-09-24
Estimated Expiration
2041-11-25

AI Technical Summary

Technical Problem

Existing three-dimensional target detection technology has problems of insufficient accuracy and poor robustness in complex environments. Cameras are easily affected by illumination, and lidar recognition effects decline when the target is far away.

Method used

A three-dimensional target detection method that integrates monocular cameras and lidar is adopted, through lidar and camera registration, point cloud preprocessing, generation of three-dimensional cone-shaped regions of interest, point cloud clustering and outer rectangle fitting, and DeepSORT algorithm inter-frame matching. , finite state machine tracking management and extended Kalman filter trajectory prediction, combining the advantages of cameras and lidar to improve detection accuracy and tracking robustness.

Benefits of technology

It improves the accuracy of three-dimensional dynamic target detection and the robustness of the tracking algorithm, enables more accurate detection and prediction of vehicle movements in complex environments, and enhances the environmental perception capabilities of the autonomous driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114120075B
    Figure CN114120075B
Patent Text Reader

Abstract

The present invention relates to a three-dimensional target detection method integrating a monocular camera and a laser radar, which includes three stages: target detection, target tracking, and trajectory prediction. In the target detection stage, the advantages of the camera and the laser radar are fully combined to improve the accuracy of three-dimensional dynamic target detection; in the target tracking stage, a tracker management model based on a quaternion state machine is proposed, which effectively improves the robustness of the tracking algorithm; in the trajectory prediction stage, a trajectory prediction model based on lane line constraints is innovatively proposed, and the vehicle motion is modeled in the road coordinate system, which can better predict the vehicle motion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent driving technology, and specifically relates to a three-dimensional target detection method integrating a monocular camera and a laser radar. Background Art

[0002] The dynamic target perception system in complex environments is an important part of autonomous driving technology. The perception system needs to detect and track three-dimensional dynamic targets and predict the target's movement trend based on historical trajectories to provide sufficient environmental information for decision-making and planning systems. At present, the sensors used for three-dimensional target detection are mainly cameras and lidar.

[0003] The camera expresses environmental information by recording light intensity signals, which has the characteristics of low cost and rich texture information. Monocular three-dimensional target detection can be divided into: traditional algorithms based on prior models and algorithms based on deep learning. D. Roller et al. proposed a variable model suitable for different types of vehicles, established a priori geometric models for vehicles, and realized vehicle detection and tracking under monocular vision through matching algorithms. Novak L et al. used a neural network to extract the key points of the target on the image, and used plane constraints to obtain the three-dimensional coordinates of the key points when the ground plane equation was known, realizing three-dimensional target detection. However, the camera is easily affected by ambient lighting conditions and it is difficult to obtain more accurate motion information.

[0004] The laser radar actively emits lasers to generate point clouds, which can obtain the location information of the target more accurately. The three-dimensional target detection algorithms based on laser point clouds can be divided into traditional methods and deep learning methods. Some scholars use the jump distance feature points of the laser radar scanning line to extract the feature fragments of the target point cloud, and use clustering algorithms on this basis to obtain the target point cloud; some scholars also represent the laser point cloud in the form of a bird's-eye view, and combine multi-layer perceptron (Multi Layer Perception, MLP) and convolutional neural network (Convolutional Neural Network, CNN) to extract target features and complete target detection. However, the laser point cloud is sparse, and when the target is far away, the recognition effect will drop significantly. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention provides a three-dimensional target detection method integrating a monocular camera and a laser radar, which fully combines the advantages of the camera and the laser radar and improves the accuracy of three-dimensional dynamic target detection.

[0006] In order to achieve the above object, the technical solution provided by the present invention is a 3D target detection method integrating a monocular camera and a laser radar, including three stages: target detection, target tracking and trajectory prediction:

[0007] The object detection phase includes the following steps:

[0008] Step 1.1, laser radar and camera registration;

[0009] Step 1.2, point cloud preprocessing;

[0010] Step 1.3, generating a three-dimensional cone-shaped region of interest of the fused image;

[0011] Step 1.4, point cloud clustering and 3D bounding rectangle fitting;

[0012] Step 1.4.1, after obtaining the three-dimensional conical region of interest, use the Euclidean clustering method to cluster the point cloud in each three-dimensional conical region to obtain the target point cloud cluster;

[0013] Step 1.4.2, perform three-dimensional outer rectangle fitting on the target point cloud cluster to obtain the detection target;

[0014] The target tracking phase includes the following steps:

[0015] Step 2.1, perform inter-frame matching on the targets detected in step 1.4.2 based on the DeepSORT algorithm;

[0016] Step 2.2, when the frame-to-frame target matching fails, the finite state machine tracking management mechanism is used to decide whether to continue tracking the target;

[0017] The trajectory prediction phase includes the following steps:

[0018] Step 3: Use lane lines to constrain the movement of the vehicle, and use extended Kalman filtering to predict the trajectory based on the target historical trajectory obtained in the tracking phase of step 2.

[0019] Moreover, the relationship between the laser radar coordinate system and the camera image pixel coordinate system in step 1.1 is:

[0020]

[0021] in, is the pixel coordinate, is the laser radar coordinate, K is the camera intrinsic parameter matrix; and are the rotation matrix and translation matrix from the lidar coordinate system to the camera coordinate system respectively; λ is the normalization coefficient.

[0022] Moreover, in step 1.2, the point cloud is preprocessed, including three steps: downsampling, denoising, and irrelevant point filtering. First, the point cloud is downsampled using a voxel filtering algorithm, and then the point cloud is denoised using a statistical filter. The irrelevant point filtering module is responsible for filtering the point cloud that is not of interest, including filtering the points outside the image frame and the ground points, where the points outside the image frame are judged according to formula (1), and the ground points are fitted using the RANSAC algorithm. Assuming that the ground is a plane, since most of the point clouds in the laser point cloud on urban roads are generated by ground reflection, when the RANSAC algorithm is used for plane fitting, the final inner point is the ground point.

[0023] Moreover, in step 1.3, according to the pinhole imaging principle, a cone in space will form a rectangle after being projected onto the image, that is, any rectangle on the image corresponds to a cone region in space. The YOLOv4 target detection algorithm based on convolutional neural network is used to detect the two-dimensional outer rectangle of the target on the image, and then the corresponding three-dimensional cone region of interest is calculated according to formula (1) using the coordinates of the two corner points of the upper left corner and the lower right corner of each two-dimensional outer rectangle to complete the rough extraction of the target. There is only one target in each three-dimensional cone region.

[0024] Moreover, after the point cloud is successfully clustered using the Euclidean clustering method in step 1.4.1, due to the interference of the background, each three-dimensional rectangular area will obtain several point cloud clusters C = {C i |i=1,2,...n}. For each point cloud cluster C i Project the point cloud onto the image and calculate the distance between each point in the point cloud cluster and the center of the two-dimensional outer rectangle. The minimum distance is d(C i ), select the point cloud cluster with the smallest minimum distance as the target point cloud cluster, that is:

[0025] C0=argmin{d(C i )},i=1,2,...n (2)

[0026] Where C0 is the target point cloud cluster, and n is the number of point cloud clusters in each three-dimensional rectangular area.

[0027] Moreover, in the vertical direction in step 1.4.2, since the roads in cities are relatively flat and the XOY plane of the laser radar is often parallel to the ground in most applications, the maximum and minimum values ​​in the z direction of C0 (z min ,z max ) as the boundary of the target in the vertical direction. In the horizontal direction, the three-dimensional outer rectangle degenerates into a two-dimensional outer rectangle. The two-dimensional outer rectangle can be regarded as an edge fitting problem, which can be described as the following optimization problem:

[0028]

[0029] In the formula, (x i ,y i ) is the point cloud coordinate, θ, a1, a2 are the parameters of two perpendicular lines, θ is the line-x i sinθ+y i cosθ=the angle between a2 and the positive direction of the x-axis, and a1 and a2 are the distances from the origin to the two straight lines.

[0030] The search algorithm L-Shape is used to solve this optimization problem and obtain the optimized two-dimensional bounding rectangle, thus completing the target detection work.

[0031] Moreover, in the step 2.1, an image and the lidar point cloud data constitute a fused image frame, and each fused image frame can detect a target. The multi-target tracking problem can be regarded as an inter-frame matching and tracker management problem. The DeepSORT algorithm is used for inter-frame target matching. First, CNN is used to extract the appearance feature vector of the target, and the cosine distance of the feature vector is used to describe the similarity between the targets. Then, the Hungarian algorithm is used for inter-frame matching.

[0032] Moreover, the finite state machine in step 2.2 includes three parts: state, event and action. Each tracker has four states: tracking state, disappearing state, initial state and buffer state. When the tracker is in the tracking state, it means that the tracking result is stable and reliable; the disappearing state indicates that the target has left the field of view, and the tracker in the disappearing state will be deleted from the memory and no longer participate in the operation; the initial state and buffer state are between the tracking state and the disappearing state, which are used to counteract the influence of false detection and missed detection; the initial state is the initial state of the tracker.

[0033] Since the detector may have false detections, when the target in the tth frame fails to match the target in the t-1th frame, the target may be a new target entering the field of view or a false target. At this time, the tracker will first enter the initial state during initialization. Only when the tracker is continuously init The tracker will only change from the initial state to the tracking state if all frames are matched successfully; otherwise, the tracker will enter the disappearing state and no longer participate in the calculation.

[0034] Since the detector may miss detection, when the target in the t-1th frame fails to match the target in the tth frame, the target may fail to match because it leaves the field of view or because the detector misses detection. At this time, when the tracker is in the tracking state, if the match fails in a certain frame, it will change from the tracking state to the buffering state; if in the next N buffer If one of the frames matches successfully, it will return to the tracking state; otherwise, it will enter the disappearing state; the state transition event can be adjusted according to the actual scenario.

[0035] Moreover, the core idea of ​​the extended Kalman filter algorithm in step 3 is prediction + measurement feedback, which consists of two parts, the first part is the state prediction equation, and the second part is the system observation equation. Assume that the target is traveling along the lane line, and the longitudinal speed along the lane is v x , the lateral velocity is v y , and there is no acceleration in either direction, v x and v y It can be calculated from the historical trajectory and the state vector is defined as Observation vector The state prediction model is expressed as follows:

[0036]

[0037] in:

[0038]

[0039] In the formula, (x t ,y t ) is the position of the target in the road coordinate system at time t, (x t′ ,y t′ ) is the position of the target in the road coordinate system at time t′, and Δt is the time interval.

[0040] Assuming that the geometry of the lane line is a Clothoid curve, the curvature of any position of the lane line can be described as:

[0041] c(x)=c0+c1x (6)

[0042] Where c0 is the curvature at the initial position, c1 is the curvature change rate, and x is the road mileage.

[0043] The further observation model can be expressed as follows:

[0044]

[0045] in:

[0046]

[0047] In the formula, is the position of the target in the vehicle coordinate system at time t, (x t ,y t ) is the position of the target in the road coordinate system at time t, y off is the distance between the vehicle body and the center line of the road, is the angle between the vehicle and the road.

[0048] Compared with the prior art, the present invention has the following advantages:

[0049] 1) In the target detection part, the advantages of cameras and lidar are fully combined to improve the accuracy of 3D dynamic target detection; 2) In the target tracking part, a tracker management model based on a quaternion state machine is proposed, which effectively improves the robustness of the tracking algorithm; 3) In the trajectory prediction part, an innovative trajectory prediction model based on lane line constraints is proposed, which models the vehicle motion in the road coordinate system and can better predict the vehicle motion. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 The figure is a flowchart of an embodiment of the present invention.

[0051] Figure 2 Schematic diagram of two vertical straight line parameters according to an embodiment of the present invention.

[0052] Figure 3 This is a quaternary finite state machine model of an embodiment of the present invention.

[0053] Figure 4 The coordinate system of the prediction model defined in the embodiment of the present invention. DETAILED DESCRIPTION

[0054] The present invention provides a three-dimensional target detection method integrating a monocular camera and a laser radar, comprising three stages: target detection, target tracking and trajectory prediction. In the target detection stage, the laser radar and the camera are firstly registered to establish a spatial position relationship between the laser radar and the camera, and then the point cloud is preprocessed, and a two-dimensional outer rectangle is obtained on the image by using the YOLOv4 target detection algorithm, and a three-dimensional conical region of interest corresponding to the two-dimensional outer rectangle is generated according to the projection relationship between the point cloud and the image, and finally the point cloud in the three-dimensional conical region of interest is clustered and the three-dimensional outer rectangle is fitted to realize the detection of the target; in the target tracking stage, the detected target is matched between frames based on the DeepSORT algorithm, and the tracking process is managed by a finite state machine to reduce the influence of missed detection and false detection of the detector; in the trajectory prediction stage, the movement of the vehicle is constrained by using lane lines, and the trajectory is predicted by using an extended Kalman filter according to the target historical trajectory obtained in the tracking stage.

[0055] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0056] like Figure 1 As shown, the process of the embodiment of the present invention includes three stages: target detection, target tracking and trajectory prediction.

[0057] 1. The target detection stage includes the following steps:

[0058] Step 1.1: LiDAR and camera registration.

[0059] A unified spatiotemporal reference is a necessary condition for multi-sensor fusion. To this end, it is necessary to establish the relationship between the lidar coordinate system and the camera image pixel coordinate system. The specific mathematical model can be expressed as:

[0060]

[0061] in, is the pixel coordinate, is the laser radar coordinate, K is the camera intrinsic parameter matrix; and are the rotation matrix and translation matrix from the lidar coordinate system to the camera coordinate system respectively; λ is the normalization coefficient.

[0062] Step 1.2, point cloud preprocessing.

[0063] In order to improve the efficiency and effect of the algorithm, the point cloud needs to be preprocessed first, including downsampling, denoising, and irrelevant point filtering. First, the voxel filtering algorithm is used to downsample the point cloud, and then the statistical filtering is used to denoise the point cloud. The irrelevant point filtering module is responsible for filtering the point cloud of no interest, mainly filtering the points outside the image frame and the ground points. The points outside the image frame are judged according to formula (1), and the ground points are fitted by the RANSAC algorithm. Assuming that the ground is a plane, since most of the point clouds in the laser point cloud of urban roads are generated by ground reflection, when the RANSAC algorithm is used for plane fitting, the final inner point is the ground point.

[0064] Step 1.3, generate a 3D cone-shaped region of interest of the fused image.

[0065] According to the pinhole imaging principle, a cone in space will form a rectangle after being projected onto the image, that is, any rectangle on the image corresponds to a cone region in space. The YOLOv4 target detection algorithm based on the convolutional neural network (CNN) is used to detect the two-dimensional outer rectangle of the target on the image, and then the corresponding three-dimensional cone region of interest is calculated according to formula (1) using the coordinates of the two corner points of the upper left corner and the lower right corner of each two-dimensional outer rectangle to complete the rough extraction of the target. There is only one target in each three-dimensional cone region.

[0066] Step 1.4: point cloud clustering and 3D bounding rectangle fitting.

[0067] Step 1.4.1, after obtaining the three-dimensional conical region of interest, use the Euclidean Cluster method to cluster the point cloud in each three-dimensional conical region to obtain the target point cloud cluster.

[0068] After clustering is successful, due to the interference of the background, each 3D rectangular area will get several point cloud clusters C = {C i |i=1,2,...n}, for each point cloud cluster C i Project the point cloud onto the image and calculate the distance between each point in the point cloud cluster and the center of the two-dimensional outer rectangle. The minimum distance is d(C i ), select the point cloud cluster with the smallest minimum distance as the target point cloud cluster, that is:

[0069] C0=argmin{d(C i )},i=1,2,...n (2)

[0070] Where C0 is the target point cloud cluster, and n is the number of point cloud clusters in each three-dimensional rectangular area.

[0071] Step 1.4.2, perform three-dimensional enclosing rectangle fitting on the target point cloud cluster C0 to obtain the detected target.

[0072] In the vertical direction, since the roads in cities are relatively flat and the XOY plane of the lidar is often parallel to the ground in most applications, the maximum and minimum values ​​in the z direction of C0 (z min ,z max ) as the boundary of the target in the vertical direction. In the horizontal direction, the three-dimensional outer rectangle degenerates into a two-dimensional outer rectangle. The two-dimensional outer rectangle can be regarded as an edge fitting problem, which can be described as the following optimization problem:

[0073]

[0074] In the formula, (x i ,y i ) is the point cloud coordinate, θ, a1, a2 are the parameters of two mutually perpendicular lines, such as Figure 2 As shown, θ is the straight line -x i sinθ+y i cosθ=the angle between a2 and the positive direction of the x-axis, and a1 and a2 are the distances from the origin to the two straight lines.

[0075] This embodiment uses the search algorithm L-Shape to solve this optimization problem and obtain an optimized two-dimensional bounding rectangle, thereby completing the target detection work.

[0076] 2. The target detection and tracking stage includes the following steps:

[0077] Step 2.1: Perform inter-frame matching on the targets detected in step 1.4.2 based on the DeepSORT algorithm.

[0078] An image and LiDAR point cloud data form a fused image. Each fused image can detect a target. The multi-target tracking problem can be regarded as an inter-frame matching and tracker management problem. The DeepSORT algorithm is used for inter-frame target matching. First, CNN is used to extract the appearance feature vector of the target. The cosine distance of the feature vector is used to describe the similarity between targets. Then, the Hungarian algorithm is used for inter-frame matching.

[0079] Step 2.2: When the frame-to-frame target matching fails, the finite state machine tracking management mechanism is used to decide whether to continue tracking the target.

[0080] Since the detector will inevitably have missed detection and false detection, resulting in frame-to-frame target matching failure, in order to reduce the impact of missed detection and false detection on tracking, it is necessary to introduce a tracking management strategy. The present invention proposes a four-element finite state machine model to complete tracking management, such as Figure 3 As shown in the figure, the finite state machine consists of three parts: state, event and action. Each tracker has four states: tracking, vanishing, initializing and buffering. When the tracker is in the tracking state, it means that the tracking result is stable and reliable; the vanishing state indicates that the target has left the field of view, and the tracker in the vanishing state will be deleted from the memory and no longer participate in the operation; the initial state and buffer state are between the tracking state and the vanishing state, which are used to counter the influence of false detection and missed detection; the initial state is the initial state of the tracker.

[0081] Since the detector may have false detections, when the target in the tth frame fails to match the target in the t-1th frame, the target may be a new target entering the field of view or a false target. Therefore, the tracker will first enter the initial state when it is initialized. init The tracker will only change from the initial state to the tracking state if all frames are matched successfully; otherwise, the tracker will enter the disappearing state and no longer participate in the calculation.

[0082] Similarly, since the detector may miss detection, when the target in the t-1th frame fails to match the target in the tth frame, the target may fail to match because it leaves the field of view or because the detector misses detection. Therefore, when the tracker is in the tracking state, if the match fails in a certain frame, it will change from the tracking state to the buffering state. If in the next N buffer If one of the frames matches successfully, it will return to the tracking state; otherwise, it will enter the disappearing state.

[0083] State transition events can be adjusted according to actual scenarios.

[0084] 3. The trajectory prediction stage includes the following steps:

[0085] Step 3: Use lane lines to constrain the movement of the vehicle, and use extended Kalman filtering to predict the trajectory based on the target historical trajectory obtained in the tracking phase of step 2.

[0086] Commonly used vehicle kinematic models include the uniformly accelerated linear model and the kinematic bicycle model. The uniformly accelerated linear model assumes that the vehicle performs uniformly accelerated linear motion, which is simple and effective, but the description of the vehicle motion is not accurate enough. The kinematic bicycle model can describe the vehicle motion more accurately, but it requires information such as the vehicle's center of gravity and wheel direction, which is difficult to obtain directly. The present invention proposes a vehicle kinematic model based on lane line constraints, and uses an extended Kalman filter (EKF) algorithm to estimate and predict the target state according to the lane line and the historical trajectory of the target.

[0087] The core idea of ​​the extended Kalman filter algorithm is prediction + measurement feedback. It consists of two parts. The first part is the state prediction equation, and the second part is the system observation equation. Assume that the target is traveling along the lane line, and the longitudinal speed along the lane is v x , the lateral velocity is v y , and there is no acceleration in either direction, v x and v y It can be calculated from the historical trajectory and the state vector is defined as Observation vector The state prediction model can be expressed as follows:

[0088]

[0089] in:

[0090]

[0091] In the formula, (x t ,y t ) is the position of the target in the road coordinate system at time t, (x t′ ,y t′ ) is the position of the target in the road coordinate system at time t′, and Δt is the time interval.

[0092] Assuming that the geometry of the lane line is a Clothoid curve, the curvature of any position of the lane line can be described as:

[0093] c(x)=c0+c1x (6)

[0094] Where c0 is the curvature at the initial position, c1 is the curvature change rate, and x is the road mileage.

[0095] The further observation model can be expressed as follows:

[0096]

[0097] in:

[0098]

[0099] In the formula, is the position of the target in the vehicle coordinate system at time t, (x t ,y t ) is the position of the target in the road coordinate system at time t, y off is the distance between the vehicle body and the center line of the road, is the angle between the vehicle and the road.

[0100] During specific implementation, the above process can be automatically operated using computer software technology.

[0101] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.

Claims

1. A three-dimensional target detection method integrating a monocular camera and a laser radar, characterized in that: It includes three stages: target detection, target tracking and trajectory prediction; The target detection stage includes the following steps: Step 1.1, laser radar and camera registration; Step 1.2, point cloud preprocessing; Step 1.3, generating a three-dimensional cone-shaped region of interest of the fused image; The convolutional neural network-based target detection algorithm YOLOv4 is used to detect the two-dimensional outer rectangle of the target on the image, and then the coordinates of the upper left and lower right corners of each two-dimensional outer rectangle are used to calculate the corresponding three-dimensional conical region of interest to complete the rough extraction of the target. There is only one target in each three-dimensional conical region. Step 1.4, point cloud clustering and 3D bounding rectangle fitting; Step 1.4.1, after obtaining the three-dimensional conical region of interest, use the Euclidean clustering method to cluster the point cloud in each three-dimensional conical region to obtain the target point cloud cluster; Use the Euclidean clustering method to cluster the point cloud in each three-dimensional cone area to obtain several point cloud clusters. For each point cloud cluster, project its point cloud onto the image, calculate the distance between each point in the point cloud cluster and the center of the two-dimensional outer rectangle, and select the point cloud cluster with the smallest distance as the target point cloud cluster; Step 1.4.2, perform three-dimensional outer rectangle fitting on the target point cloud cluster to obtain the detection target; In the vertical direction, the maximum and minimum values ​​in the z direction of the target point cloud cluster C0 are directly used (z min ,z max ) as the boundary of the target in the vertical direction; in the horizontal direction, the two-dimensional enclosing rectangle is regarded as an edge fitting problem, which is described as the following optimization problem: In the formula, (x i ,y i ) is the point cloud coordinate, θ, a1, a2 are the parameters of two perpendicular lines, θ is the line -x i sinθ+y i cosθ=the angle between a2 and the positive direction of the x-axis, a1 and a2 are the distances from the origin to the two straight lines; The search algorithm L-Shape is used to solve this optimization problem and obtain the optimized two-dimensional outer rectangle, thus completing the target detection work; The target tracking stage includes the following steps: Step 2.1, perform inter-frame matching on the targets detected in step 1.4.2 based on the DeepSORT algorithm; Step 2.2, when the frame-to-frame target matching fails, the finite state machine tracking management mechanism is used to decide whether to continue tracking the target; The trajectory prediction stage includes the following steps: Step 3: Use lane lines to constrain the movement of the vehicle, and use extended Kalman filtering to predict the trajectory based on the target historical trajectory obtained in the tracking phase of step 2.

2. The three-dimensional target detection method integrating a monocular camera and a laser radar as claimed in claim 1, characterized in that: The relationship between the laser radar coordinate system and the camera image pixel coordinate system in step 1.1 is: in, is the pixel coordinate, is the laser radar coordinate, K is the camera intrinsic parameter matrix; and are the rotation matrix and translation matrix from the lidar coordinate system to the camera coordinate system respectively; λ is the normalization coefficient.

3. The three-dimensional target detection method integrating a monocular camera and a laser radar as claimed in claim 2, characterized in that: In step 1.2, the point cloud is preprocessed, including three steps: downsampling, denoising, and irrelevant point filtering. First, the voxel filtering algorithm is used to downsample the point cloud, and then the statistical filtering is used to denoise the point cloud. The irrelevant point filtering module is responsible for filtering the point cloud that is not of interest, including filtering the points outside the image frame and the ground points. The points outside the image frame are judged according to formula (1), and the ground points are fitted by the RANSAC algorithm. Assuming that the ground is a plane, since most of the point clouds in the laser point cloud on urban roads are generated by ground reflection, when the RANSAC algorithm is used for plane fitting, the final inner point is the ground point.

4. The three-dimensional target detection method integrating a monocular camera and a laser radar as claimed in claim 1, characterized in that: In step 2.1, an image and the LiDAR point cloud data form a fused image. Each fused image can detect a target. The multi-target tracking problem can be regarded as an inter-frame matching and tracker management problem. The DeepSORT algorithm is used for inter-frame target matching. First, CNN is used to extract the appearance feature vector of the target, and the cosine distance of the feature vector is used to describe the similarity between targets. Then, the Hungarian algorithm is used for inter-frame matching.

5. The three-dimensional target detection method integrating a monocular camera and a laser radar as claimed in claim 1, characterized in that: The finite state machine in step 2.2 includes three parts: state, event and action. Each tracker has four states: tracking state, disappearing state, initial state and buffer state. When the tracker is in the tracking state, it means that the tracking result is stable and reliable. The disappearing state indicates that the target has left the field of view, and the tracker in the disappearing state will be deleted from the memory and no longer participate in the calculation. The initial state and buffer state are between the tracking state and the disappearing state, which are used to combat the influence of false detection and missed detection. The initial state is the initial state of the tracker.

6. The three-dimensional target detection method integrating a monocular camera and a laser radar as claimed in claim 5, characterized in that: In step 2.2, since the detector may have false detections, when the target in the tth frame fails to match the target in the t-1th frame, the target is a new target entering the field of view or a false target. At this time, the tracker will first enter the initial state during initialization. Only when the tracker is continuously init The tracker will change from the initial state to the tracking state only when all frames are matched successfully; otherwise, the tracker will enter the disappearing state and no longer participate in the calculation; because the detector may miss detection, when the target of the t-1th frame fails to match the target of the tth frame, the target fails to match because it leaves the field of view, or fails to match because the detector misses detection. At this time, when the tracker is in the tracking state, if the match fails in a certain frame, it will change from the tracking state to the buffering state; if in the next N buffer If one of the frames matches successfully, it will return to the tracking state; otherwise, it will enter the disappearing state; the state transition event can be adjusted according to the actual scenario.

7. The three-dimensional target detection method integrating a monocular camera and a laser radar as claimed in claim 1, characterized in that: The core idea of ​​the extended Kalman filter algorithm in step 3 is prediction + measurement feedback, which consists of two parts. The first part is the state prediction equation, and the second part is the system observation equation. Assume that the target is traveling along the lane line, and the longitudinal speed along the lane is v x , the lateral velocity is v y , and there is no acceleration in either direction, v x and v y It can be calculated from the historical trajectory and the state vector is defined as Observation vector The state prediction model is expressed as follows: in: In the formula, (x t ,y t ) is the position of the target in the road coordinate system at time t, (x t′ ,y t′ ) is the position of the target in the road coordinate system at time t′, and Δt is the time interval; Assuming that the geometry of the lane line is a Clothoid curve, the curvature of any position of the lane line can be described as: c(x)=c0+c1x (6) Where c0 is the curvature at the initial position, c1 is the curvature change rate, and x is the road mileage; The further observation model can be expressed as follows: in: In the formula, is the position of the target in the vehicle coordinate system at time t, (x t ,y t ) is the position of the target in the road coordinate system at time t, y off is the distance between the vehicle body and the center line of the road, is the angle between the vehicle and the road.