Pseudo radar vehicle detection method fused with depth completion
By constructing a depth map completion model and combining the convolutional neural network and ResNet model, depth feature extraction and completion of RGB images are solved, which solves the problems of low accuracy and high cost of 3D target detection in the field of autonomous driving, and achieves more accurate and Economical vehicle inspection.
Patent Information
- Application Number
- CN202410808317.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-21
AI Technical Summary
Existing 3D target detection technology in the field of autonomous driving has problems such as low accuracy, high cost, and vulnerability to environmental interference, especially methods based on visual sensors and lidar, and pseudo-radar methods are greatly affected by inaccuracies in depth estimation. This results in lower target detection accuracy.
A pseudo-radar vehicle detection method that integrates depth completion is adopted. By constructing a depth map completion model, including a color-dominated branch and a depth-dominated branch, and combining the convolutional neural network and the ResNet model, the depth feature extraction and completion of the RGB image is performed to generate The depth map is fused and converted into a pseudo laser point cloud to calculate the distance, speed and direction information between the vehicle and the camera.
It improves target detection accuracy, reduces the impact of inaccuracies in depth estimation, enhances detection accuracy and reliability, reduces costs, and overcomes errors and inconsistencies between different sensors.
Smart Images

Figure CN118710697A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to a pseudo-radar vehicle detection method integrating depth completion. Background Art
[0002] 3D detection of vehicles refers to identifying and locating objects of interest from three-dimensional data. It is an important task in the fields of autonomous driving, robot navigation, augmented reality, etc. The main purpose of 3D object detection is to use the data collected by sensors to perceive the position and posture of surrounding vehicles or obstacles. The current detection technologies of 3D object detection mainly include the following methods: the method based on visual sensors, that is, using cameras to capture scene information, and performing target detection and positioning through deep learning models; the method based on Lidar, that is, using the Lidar ranging principle to obtain the distance information of objects in the scene; the method based on data fusion, that is, combining the advantages of multiple data, high-resolution RGB images are responsible for providing context information, and Lidar point clouds are responsible for providing spatial coordinate information. The radar is fused with the camera, and the information of the Lidar and camera is fused to obtain a more accurate and comprehensive 3D scene understanding. The method based on pseudo-lidar, that is, converting the depth information in the monocular image into pseudo-lidar form, combining the pseudo-lidar with the image, and predicting the 3D detection box.
[0003] The task of 3D target detection is full of complexity. The method based on visual sensors mainly uses camera imaging, but due to the lack of depth information, its 3D detection accuracy is relatively low and the 3D target detection is inaccurate; the method based on lidar extracts deep features by processing point cloud data, but its cost is expensive, which greatly increases the cost of autonomous driving, and the lidar is large in size and easily affected by environmental interference, which limits its popularity in practical applications; the method based on data fusion also faces the problem of cost. It needs to deploy multiple sensors for data fusion, and the errors and inconsistencies between different sensors aggravate the difficulty of data fusion; the method based on pseudo-radar realizes 3D detection on monocular or binocular images by converting the depth estimation map into lidar point cloud format, but it is greatly affected by the inaccuracy of depth estimation and the target detection accuracy is low. Summary of the invention
[0004] In order to solve the above problems, the present invention provides a pseudo radar vehicle detection method integrating depth completion, which completes the depth information by constructing a depth map completion model to improve the target detection accuracy.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is:
[0006] A pseudo radar vehicle detection method integrating depth completion comprises the following steps:
[0007] S1. Convert the scene information captured by the camera into an RGB image;
[0008] S2. Construct a deep learning model, extract deep feature information from the RGB image through a convolutional neural network to obtain a dense depth map, and calculate the distance data of the objects in the scene through the dense depth map;
[0009] S3. construct an end-to-end two-stage depth map completion model, the depth map completion model includes a color-dominant branch and a depth-dominant branch, a color-dominant depth map is obtained through the color-dominant branch, and a depth-dominant depth map is obtained through the depth-dominant branch;
[0010] S4. Processing the color-dominant depth map and the depth-dominant depth map to obtain a scale depth map and an optimized depth map, respectively, and fusing the scale depth map and the optimized depth map to obtain a fused depth map;
[0011] S5. Convert the fused depth map into a pseudo laser point cloud to calculate the distance, speed and direction between the vehicle and the camera through a 3D detection algorithm.
[0012] Further, in step S2, the dense features in the RGB image are extracted by the ResNet model, and then the Encoedr with a fully connected layer and the dilated space pyramid pool module are used to perform multi-scale feature fusion to fully understand the RGB image, use the logarithmic space to represent the depth, and perform depth prediction to generate a five-dimensional tensor feature, and obtain the dense depth map according to the five-dimensional tensor feature.
[0013] The depth prediction is calculated as:
[0014]
[0015] Among them, SID is the prediction strategy; t i ∈{t0,t1,…,t k} is the discretization threshold after the depth interval is discretized; [α, β] is the depth interval to be discretized; k is the number of sub-intervals after the depth interval [α, β] is discretized.
[0016] Furthermore, a softmax regression loss is used to learn the parameters of the dense depth map to calculate the distance data of the objects in the scene.
[0017] Further, in step S3, the RGB image and the dense depth map are input into the color-dominant branch, an encoder and a decoder are constructed to learn the depth around the line boundary of the RGB image, and pixel information in the image is analyzed through a U-Net network architecture to obtain a color-dominant depth map of the color-dominant branch;
[0018] The dense depth map of the color dominant branch and the dense depth map are input into the depth dominant branch, and pixel information in the image is analyzed by a residual network to obtain a depth dominant depth map of the depth dominant branch.
[0019] Furthermore, in step S4, a learnable linear transformation is added to the depth map completion model, and the color-dominated depth map is converted into a scaled depth map according to a fixed transformation calculated based on camera intrinsic parameters and image resolution.
[0020] Further, in step S4, an adaptive weight term is set according to the reliability of the depth map, and a weight function is constructed by the gradient, variance, and edge features of the depth map to optimize the reliability of the depth-dominated depth map. The weight function is:
[0021]
[0022] Among them, d is the depth map; α is the gradient operator; β is the hyperparameter that controls the weight decay speed; ||α·d|| is the norm of the gradient of the depth map;
[0023] Based on the consistency and contrast characteristics of the depth map and the RGB image, a feature function is constructed to optimize the continuity and smoothness of the depth-dominated depth map after reliability optimization. The feature function is:
[0024]
[0025] Among them, d is the depth map; c is the RGB image, and γ is a hyperparameter.
[0026] Further, in step S4, the scale depth map and the optimized depth map are fused by FusionNet to obtain a fused depth map, and the fusion method is:
[0027]
[0028] Where (u, v) is the position of the pixel in the depth map; D f(u,v) is the fused dense depth map output by the two-stage depth completion model; C cd Confidence map generated for the color-dominant branch; C dd Confidence map generated for the color-dominant branch; D cdD is the scale depth map output by the color-dominant branch; dd The optimized depth map output by the depth guidance branch.
[0029] Further, in step S5, the method of converting the fused depth map into a pseudo laser point cloud is:
[0030]
[0031] Where (u,v) is the position of the pixel in the depth map; (cu,cv) is the pixel position corresponding to the camera center; fv is the vertical focal length; fu is the horizontal focal length;
[0032] All pixels are back-projected to 3D coordinates by formula (5) to obtain the 3D position (x, y, z) of each pixel point, and according to the 3D position of each pixel point, the Pseudo laser point cloud, where N is the pixel point.
[0033] The beneficial effects of the present invention are:
[0034] A dense depth map is obtained by extracting deep feature information from an RGB image, the RGB image and the dense depth map are input into the color-dominant branch, a Resblocks encoder and a decoder including five deconvolution layers and one convolution layer are constructed, the RGB image is used to learn the depth around the line boundary, and the pixel information in the image is analyzed according to the U-Net network architecture to infer the shape of the occluded object; the dense depth map of the color-dominant branch and the dense depth map are input into the depth-dominant branch, and the pixel information in the image is analyzed through the residual network to infer the position of the occluded object, and the missing part of the depth information is completed by analyzing the shape and position of the occluded object, thereby reducing the impact of depth estimation, which can effectively improve the subsequent target detection accuracy. Due to the difference between dense depth maps and RGB images, by adding a learnable linear transformation to the depth map completion model, the scale depth map of the scale can be calculated according to the camera intrinsic parameters and the image resolution; by optimizing the reliability, continuity and smoothness of the depth-dominated depth map, the accuracy of depth estimation can be improved, and the fusion of the processed scale depth map and the optimized depth map can overcome the errors and inconsistencies between different feature expressions and reduce the impact of depth estimation inaccuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flow chart of a pseudo radar vehicle detection method integrating depth completion according to a preferred embodiment of the present invention.
[0036] Figure 2 It is a depth map processing flow chart of a pseudo radar vehicle detection method integrating depth completion according to a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0039] See also Figure 1 A pseudo radar vehicle detection method integrating depth completion according to a preferred embodiment of the present invention comprises the following steps:
[0040] S1. Convert the scene information captured by the camera into an RGB image.
[0041] S2. Build a deep learning model, extract deep feature information from RGB images through convolutional neural networks to obtain dense depth maps, and calculate the distance data of objects in the scene through dense depth maps.
[0042] In step S2, the dense features in the RGB image are extracted through the ResNet model, and then the Encoedr with a fully connected layer and the dilated space pyramid pooling module are used to perform multi-scale feature fusion to fully understand the RGB image, use the logarithmic space to represent the depth, and perform depth prediction to generate a five-dimensional tensor feature. A dense depth map is obtained based on the five-dimensional tensor feature.
[0043] The depth prediction is calculated as:
[0044]
[0045] Among them, SID is the prediction strategy; t i ∈{t0,t1,…,t k} is the discretization threshold after the depth interval is discretized; [α, β] is the depth interval to be discretized; k is the number of sub-intervals after the depth interval [α, β] is discretized.
[0046] The softmax regression loss is used to learn the parameters of the dense depth map to calculate the distance data of objects in the scene.
[0047] S3. Construct an end-to-end two-stage depth map completion model. The depth map completion model includes a color-dominant branch and a depth-dominant branch. A color-dominant depth map is obtained through the color-dominant branch, and a depth-dominant depth map is obtained through the depth-dominant branch.
[0048] In step S3, an RGB image and a dense depth map are input into the color-dominant branch, an encoder and a decoder are constructed to learn the depth around line boundaries of the RGB image, and pixel information in the image is analyzed through the U-Net network architecture to obtain a color-dominant depth map of the color-dominant branch.
[0049] The dense depth map and the dense depth map of the color dominant branch are input into the depth dominant branch, and the pixel information in the image is analyzed by the residual network to obtain the depth dominant depth map of the depth dominant branch.
[0050] The RGB image and dense depth map are input into the color-dominant branch, and a Resblocks encoder and a decoder consisting of five deconvolution layers and one convolution layer are constructed. The RGB image is used to learn the depth around the line boundary; the dense depth map and dense depth map of the color-dominant branch are input into the depth-dominant branch; the pixel information in the image is analyzed through the U-Net network architecture and the residual network, the shape and position of the occluded object are inferred, and the missing depth information is completed.
[0051] S4. Processing the color-dominant depth map and the depth-dominant depth map to obtain a scaled depth map and an optimized depth map respectively, and fusing the scaled depth map and the optimized depth map to obtain a fused depth map.
[0052] The processing flow of color-dominated depth map and depth-dominated depth map is as follows Figure 2 As shown,
[0053] In step S4, a learnable linear transformation is added to the depth map completion model, and the color-dominated depth map is converted into a scaled depth map according to the fixed transformation calculated based on the camera intrinsic parameters and the image resolution. Considering the difference between the dense depth map and the RGB image, the consistency of the dense depth map and the RGB image is ensured after the linear transformation. The focal length f and baseline b of the depth map are calculated according to the camera intrinsic parameter matrix K and the image resolution W×H, and then d×W×f×b is obtained to obtain a scaled depth map.
[0054] In step S4, an adaptive weight term is set according to the reliability of the depth map, and a weight function is constructed by the gradient, variance, and edge features of the depth map to optimize the reliability of the depth-dominated depth map. The weight function is:
[0055]
[0056] Among them, d is the depth map; α is the gradient operator; β is the hyperparameter that controls the weight decay speed; ||α·d|| is the norm of the gradient of the depth map.
[0057] Based on the consistency and contrast characteristics of the depth map and the RGB image, a feature function is constructed to optimize the continuity and smoothness of the depth-dominated depth map after reliability optimization. The feature function is:
[0058]
[0059] Among them, d is the depth map; c is the RGB image, and γ is a hyperparameter.
[0060] The feature function indicates that the greater the difference between the depth map and the color map, the weaker the relationship between depth and color, and a smaller weight is given; the smaller the difference between the depth map and the color map, the stronger the relationship between depth and color, which may be more reliable and a larger weight is given.
[0061] In step S4, the scale depth map and the optimized depth map are fused by FusionNet to obtain a fused depth map. The fusion method is:
[0062]
[0063] Where (u, v) is the position of the pixel in the depth map; D f(u,v) is the fused dense depth map output by the two-stage depth completion model; C cd Confidence map generated for the color-dominant branch; C dd Confidence map generated for the color-dominant branch; D cd D is the scale depth map output by the color-dominant branch; dd The optimized depth map output by the depth guidance branch.
[0064] S5. Convert the fused depth map into a pseudo laser point cloud to calculate the distance, speed and direction between the vehicle and the camera through a 3D detection algorithm.
[0065] In step S5, the method of converting the fused depth map into a pseudo laser point cloud is:
[0066]
[0067] Where (u,v) is the position of the pixel in the depth map; (cu,cv) is the pixel position corresponding to the camera center; fv is the vertical focal length; fu is the horizontal focal length;
[0068] All pixels are back-projected to 3D coordinates by formula (5) to obtain the 3D position (x, y, z) of each pixel point, and according to the 3D position of each pixel point, the Pseudo laser point cloud of . Where N is the pixel point.
[0069] The 3D detection algorithm is used to calculate the distance, speed, direction and other information between the vehicle and the camera to achieve vehicle detection and tracking. The performance of the pseudo radar vehicle detection method integrating deep completion technology is evaluated using evaluation indicators such as accuracy, recall rate, precision and F1 score.
Claims
1. A pseudo radar vehicle detection method integrating depth completion, characterized in that: The steps include: S1. Convert the scene information captured by the camera into an RGB image; S2. Construct a deep learning model, extract deep feature information from the RGB image through a convolutional neural network to obtain a dense depth map, and calculate the distance data of the objects in the scene through the dense depth map; S3. construct an end-to-end two-stage depth map completion model, the depth map completion model includes a color-dominant branch and a depth-dominant branch, a color-dominant depth map is obtained through the color-dominant branch, and a depth-dominant depth map is obtained through the depth-dominant branch; S4. Processing the color-dominant depth map and the depth-dominant depth map to obtain a scale depth map and an optimized depth map, respectively, and fusing the scale depth map and the optimized depth map to obtain a fused depth map; S5. Convert the fused depth map into a pseudo laser point cloud to calculate the distance, speed and direction between the vehicle and the camera through a 3D detection algorithm.
2. The pseudo radar vehicle detection method integrating depth completion according to claim 1, characterized in that: In step S2, the dense features in the RGB image are extracted by the ResNet model, and then the Encoedr with a fully connected layer and the dilated space pyramid pool module are used to perform multi-scale feature fusion to fully understand the RGB image, use the logarithmic space to represent the depth, and perform depth prediction to generate a five-dimensional tensor feature, and obtain the dense depth map according to the five-dimensional tensor feature. The depth prediction is calculated as: Among them, SID is the prediction strategy; t i ∈{t0,t1,…,t k } is the discretization threshold after the depth interval is discretized; [α, β] is the depth interval to be discretized; k is the number of sub-intervals after the depth interval [α, β] is discretized.
3. The pseudo radar vehicle detection method integrating depth completion according to claim 2 is characterized in that: The softmax regression loss is used to learn the parameters of the dense depth map to calculate the distance data of the objects in the scene.
4. The pseudo radar vehicle detection method integrating depth completion according to claim 1, characterized in that: In step S3, the RGB image and the dense depth map are input into the color-dominant branch, an encoder and a decoder are constructed to learn the depth around the line boundary of the RGB image, and pixel information in the image is analyzed through a U-Net network architecture to obtain a color-dominant depth map of the color-dominant branch; The dense depth map of the color dominant branch and the dense depth map are input into the depth dominant branch, and pixel information in the image is analyzed by a residual network to obtain a depth dominant depth map of the depth dominant branch.
5. The pseudo radar vehicle detection method integrating depth completion according to claim 4 is characterized in that: In step S4, a learnable linear transformation is added to the depth map completion model, and the color-dominated depth map is converted into a scaled depth map according to a fixed transformation calculated based on camera intrinsic parameters and image resolution.
6. The pseudo radar vehicle detection method integrating depth completion according to claim 4 is characterized in that: In step S4, an adaptive weight term is set according to the reliability of the depth map, and a weight function is constructed by the gradient, variance, and edge features of the depth map to optimize the reliability of the depth-dominated depth map. The weight function is: Among them, d is the depth map; α is the gradient operator; β is the hyperparameter that controls the weight decay speed; ||α·d|| is the norm of the gradient of the depth map; Based on the consistency and contrast characteristics of the depth map and the RGB image, a feature function is constructed to optimize the continuity and smoothness of the depth-dominated depth map after reliability optimization. The feature function is: Among them, d is the depth map; c is the RGB image, and γ is a hyperparameter.
7. The pseudo radar vehicle detection method integrating depth completion according to claim 1, characterized in that: In step S4, the scale depth map and the optimized depth map are fused by FusionNet to obtain a fused depth map. The fusion method is: Where (u, v) is the position of the pixel in the depth map; D f(u,v) is the fused dense depth map output by the two-stage depth completion model; C cd Confidence map generated for the color-dominant branch; C dd Confidence map generated for the color-dominant branch; D cd D is the scale depth map output by the color-dominant branch; dd The optimized depth map output by the depth guidance branch.
8. The pseudo radar vehicle detection method integrating depth completion according to claim 1, characterized in that: In step S5, the method of converting the fused depth map into a pseudo laser point cloud is: Where (u,v) is the position of the pixel in the depth map; (cu,cv) is the pixel position corresponding to the camera center; fv is the vertical focal length; fu is the horizontal focal length; All pixels are back-projected to 3D coordinates using formula (5) to obtain the 3D position (x, y, z) of each pixel point, and According to the 3D position of each pixel, we can obtain Pseudo laser point cloud, where N is the pixel point.
Citation Information
Patent Citations
Natural image matting method based on deep learning
CN111161277A
Post-layout wiring violation prediction method based on deep learning and readable storage medium
CN112233115A
Real-time depth completion method based on pseudo depth map guidance
CN112861729A
Method and system for generating dense global point cloud atlas through depth completion
CN115049794A
Point cloud image depth completion method based on cascade feature interaction
CN115511759A
Cited By
Prefabricated construction assembly sequence optimization method
CN120494158A
