A method and system for generating multi-sensor fusion voxel feature map
By establishing the mapping relationship between lidar points and images, lightweight sparse images and three-dimensional voxel features are generated, and feature maps are fused to solve the problem of lack of RGB information in existing three-dimensional target detection, improve detection accuracy, and construct Richer environmental information features.
Patent Information
- Application Number
- CN202111597823.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-24
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-12-24
AI Technical Summary
Existing high-performance 3D target detection methods usually only use point cloud data and lack RGB channel information in image information, resulting in low detection accuracy. Multi-modal fusion methods are limited in feature map calibration and have low accuracy.
By acquiring lidar points and original images, a mapping relationship is established, lightweight sparse images and three-dimensional voxels are generated, pixel features and voxel features are extracted, encoded into point cloud positions, feature fusion is performed, and a multi-sensor fusion voxel feature map is generated.
It improves the accuracy of three-dimensional target detection, builds richer environmental information features, and enhances image information processing capabilities.
Smart Images

Figure CN114332796B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision and autonomous driving technology, and in particular to a method and system for generating a multi-sensor fusion voxel feature map. Background Art
[0002] In the past decade, many scholars have conducted research on computer vision technology and achieved fruitful research results. As one of the important applications of computer vision technology, environmental perception technology in the field of autonomous driving has also been widely studied in recent years and has become a research hotspot. Autonomous vehicles are usually equipped with cameras and lidar sensors to obtain high-resolution images and lidar point clouds of the surrounding environment respectively. High-resolution images are composed of pixels that are regularly and densely distributed and contain color information; lidar point clouds are composed of discrete points that are irregularly and sparsely distributed in space and contain location information. These two types of information are the two most common input information in environmental perception technology, and most computer vision tasks are based on these two types of information. In the field of computer vision, convolutional neural networks are a common and effective technology. By using convolutional neural networks, deep learning networks can be constructed. Data containing various information can be input into the deep learning network to extract feature information from the input data and complete some visual tasks, such as three-dimensional object detection, semantic segmentation, and instance segmentation in autonomous driving scenarios.
[0003] At present, in practical applications, existing high-performance 3D object detection methods usually only use point cloud data as input, but such methods lack the RGB channel information value in the image information. The RGB information in the image and the 3D structure information contained in the point cloud are both important features for identifying objects. There are also some existing multimodal fusion methods, which usually fuse the point cloud feature map and the image feature map in a pixel-to-pixel manner, but this fusion method is limited by the calibration between the feature maps, and the result is not as accurate as the single-modal method.
[0004] Therefore, how to design a multi-sensor fusion voxel feature map generation method and system that can improve the accuracy of three-dimensional target detection has become a technical problem that needs to be urgently solved in this field. Summary of the invention
[0005] The purpose of the present invention is to provide a multi-sensor fusion voxel feature map generation method and system, by which the accuracy of three-dimensional target detection can be improved.
[0006] To achieve the above object, the present invention provides the following solutions:
[0007] A method for generating a multi-sensor fusion voxel feature map, the method comprising the following steps:
[0008] Get lidar points and raw images;
[0009] According to the mapping relationship between the original image and the laser radar point, the pixels of the original image are mapped to the corresponding laser radar points to obtain first mapping data;
[0010] According to the mapping relationship between the laser radar point and the front view image, the first mapping data is mapped onto the pixels of the front view image to obtain the second mapping data;
[0011] Performing sparse encoding on the second mapping data to generate a lightweight sparse image;
[0012] voxelize the laser radar point to obtain a three-dimensional voxel of the laser radar point;
[0013] Performing feature extraction on the lightweight sparse image and the three-dimensional voxel to obtain pixel features and voxel features;
[0014] Encoding the pixel features and the voxel features to corresponding point cloud positions to obtain pixel point cloud features and voxel point cloud features;
[0015] Performing feature fusion on the pixel point cloud feature and the voxel point cloud feature to obtain a point cloud fusion feature;
[0016] The point cloud fusion features are inversely mapped to obtain a multi-sensor fusion voxel feature map.
[0017] Optionally, according to a mapping relationship between the original image and the laser radar point, mapping pixels of the original image to corresponding laser radar points to obtain first mapping data specifically includes:
[0018] According to the calibration matrix between the camera and the laser radar, a first mapping relationship between the original image and the laser radar point is established; the first mapping relationship is:
[0019]
[0020] Among them, x is the coordinate of the point cloud depth dimension, y is the coordinate of the point cloud width dimension, z is the coordinate of the point cloud height dimension, ur is the horizontal coordinate of the pixel in the original image, vr is the vertical coordinate of the pixel in the original image, I is the intrinsic parameter matrix, and E is the extrinsic parameter matrix.
[0021] Optionally, mapping the first mapping data onto pixels of the forward-looking image according to a mapping relationship between the laser radar point and the forward-looking image to obtain the second mapping data specifically includes:
[0022] A second mapping relationship between the laser radar point and the front view image is established by using the spherical projection principle; the second mapping relationship is:
[0023]
[0024] Among them, u is the horizontal coordinate of the pixel in the front view image, v is the vertical coordinate of the pixel in the front view image, x is the coordinate in the depth dimension of the point cloud, y is the coordinate in the width dimension of the point cloud, z is the coordinate in the height dimension of the point cloud, r is the reflection intensity, w is the width of the front view image, h is the height of the front view image, fov down is the vertical viewing angle below the laser radar, and fov is the vertical viewing angle of the laser radar;
[0025] The first mapping data is mapped onto the front-view image pixels according to the second mapping relationship to obtain second mapping data.
[0026] Optionally, performing sparse encoding on the second mapping data to generate a lightweight sparse image specifically includes:
[0027] Determine whether any mapping data in the second mapping data is obtained by mapping multiple mapping data in the first mapping data, and obtain a first determination result;
[0028] If the first judgment result is yes, taking the average value of the plurality of mapping data in the first mapping data as the encoding value of any mapping data in the second mapping data;
[0029] Determine whether any mapping data in the second mapping data is obtained by mapping one of the mapping data in the first mapping data, and obtain a second determination result;
[0030] If the second judgment result is yes, using the corresponding mapping data in the first mapping data as the encoding value of any mapping data in the second mapping data;
[0031] If both the first judgment result and the second judgment result are negative, no encoding is performed.
[0032] Optionally, voxelizing the laser radar point to obtain a three-dimensional voxel of the laser radar point specifically includes:
[0033] Determine whether any voxel in the voxels contains a plurality of the laser radar points to obtain a third determination result;
[0034] If the third judgment result is yes, then using the average value of the plurality of laser radar points as the encoding value of any voxel in the voxels;
[0035] Determine whether any voxel in the voxels contains a laser radar point, and obtain a fourth determination result;
[0036] If the fourth determination result is yes, using the corresponding laser radar point as the encoding value of any voxel in the voxel;
[0037] If both the third judgment result and the fourth judgment result are negative, no encoding is performed.
[0038] Optionally, performing feature extraction on the lightweight sparse image and the three-dimensional voxel to obtain pixel features and voxel features specifically includes:
[0039] Construct a two-dimensional sparse convolutional feature extraction network and a three-dimensional sparse convolutional feature extraction network respectively;
[0040] Using the two-dimensional sparse convolutional feature extraction network to extract features from the lightweight sparse image to obtain pixel features;
[0041] The three-dimensional sparse convolutional feature extraction network is used to extract features from the three-dimensional voxels to obtain voxel features.
[0042] Optionally, encoding the pixel feature and the voxel feature to corresponding point cloud positions to obtain pixel point cloud features and voxel point cloud features specifically includes:
[0043] Using a quadratic linear interpolation algorithm based on four nearest neighbors to encode the pixel features to a point cloud position, to obtain the pixel point cloud features;
[0044] The voxel feature is encoded to the point cloud position using a cubic linear interpolation algorithm based on an inverse distance weighted method to obtain the voxel point cloud feature.
[0045] Optionally, the pixel point cloud feature and the voxel point cloud feature are subjected to feature fusion to obtain a point cloud fusion feature, which specifically includes:
[0046] Using a first fully connected block to process the pixel point cloud features to obtain a one-dimensional pixel point cloud feature; the first fully connected block includes three fully connected layers, two batch normalization layers and two ReLU activation function layers;
[0047] Processing the voxel point cloud features using a second fully connected block to obtain a one-dimensional voxel point cloud feature; the second fully connected block includes three fully connected layers, two batch normalization layers, and two ReLU activation function layers;
[0048] The one-dimensional pixel point cloud feature and the one-dimensional voxel point cloud feature are processed using a sigmoid function to obtain a pixel point cloud feature weight and a voxel point cloud feature weight; the sigmoid function is:
[0049]
[0050] Among them, w pp is the pixel point cloud feature weight, w pv is the feature weight of the voxel point cloud, is a one-dimensional pixel point cloud feature, It is a one-dimensional voxel point cloud feature;
[0051] The pixel point cloud feature and the voxel point cloud feature are fused using the pixel point cloud feature weight and the voxel point cloud feature weight to obtain a point cloud fusion feature; the fusion expression is:
[0052] f fuse =[f pp (1+w pp ),f pv (1+w pv )]
[0053] Among them, f fuse is the point cloud fusion feature, f pp is the pixel point cloud feature, f pv is the voxel point cloud feature.
[0054] Optionally, the point cloud fusion features are inversely mapped to obtain a multi-sensor fusion voxel feature map, specifically including:
[0055] Using a cubic linear interpolation method, the point cloud fusion feature is inversely mapped to the position of the non-empty voxel in the voxel feature to obtain a replacement point cloud fusion feature;
[0056] The replacement point cloud fusion feature replaces the non-empty voxel feature at the corresponding position in the voxel feature to obtain a multi-sensor fusion voxel feature map.
[0057] The present invention also provides a multi-sensor fusion voxel feature map generation system, the system comprising:
[0058] Data acquisition module, used to obtain lidar points and raw images;
[0059] A first mapping module, configured to map pixels of the original image to corresponding laser radar points according to a mapping relationship between the original image and the laser radar points, to obtain first mapping data;
[0060] A second mapping module, configured to map the first mapping data onto pixels of the forward-looking image according to a mapping relationship between the laser radar points and the forward-looking image, to obtain second mapping data;
[0061] A sparse coding module, used for performing sparse coding on the second mapping data to generate a lightweight sparse image;
[0062] A voxelization module, used for voxelizing the laser radar point to obtain a three-dimensional voxel of the laser radar point;
[0063] A feature extraction module, used for extracting features from the lightweight sparse image and the three-dimensional voxel to obtain pixel features and voxel features;
[0064] A point cloud feature acquisition module, used for encoding the pixel feature and the voxel feature to corresponding point cloud positions to obtain pixel point cloud features and voxel point cloud features;
[0065] A feature fusion module, used for fusing the pixel point cloud feature and the voxel point cloud feature to obtain a point cloud fusion feature;
[0066] The inverse mapping module is used to inversely map the point cloud fusion features to obtain a multi-sensor fusion voxel feature map.
[0067] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0068] The method of the present invention establishes a mapping relationship between the original image and the laser radar point, and a mapping relationship between the laser radar point and the front view image, generates a lightweight sparse image, and provides a basis for the rapid processing of image information. At the same time, the method of the present invention fuses the features extracted by the two sensor feature extraction networks, constructs a more informative environmental information feature, and improves the accuracy of three-dimensional target detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0070] Figure 1 A flowchart of a method for generating a multi-sensor fusion voxel feature map provided in Example 1 of the present invention;
[0071] Figure 2 This is the original image of sample No. 7312 in the KITTI autonomous driving dataset;
[0072] Figure 3 It is the lidar point of sample No. 7312 in the KITTI autonomous driving dataset;
[0073] Figure 4 This is the lightweight sparse image of sample No. 7312 in the KITTI autonomous driving dataset;
[0074] Figure 5 It is the structure diagram of the feature fusion network;
[0075] Figure 6 Schematic diagram for multi-sensor fusion voxel feature map generation.
[0076] Figure 7 A structural diagram of a multi-sensor fusion voxel feature map generation system provided in Example 2 of the present invention.
[0077] Explanation of symbols:
[0078] 1. Data acquisition module; 2. First mapping module; 3. Second mapping module; 4. Sparse coding module; 5. Voxelization module; 6. Feature extraction module; 7. Point cloud feature acquisition module; 8. Feature fusion module; 9. Inverse mapping module. DETAILED DESCRIPTION
[0079] 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.
[0080] The purpose of the present invention is to provide a multi-sensor fusion voxel feature map generation method and system, by which the accuracy of three-dimensional target detection can be improved.
[0081] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0082] Embodiment 1:
[0083] See also Figure 1 The present invention provides a method for generating a multi-sensor fusion voxel feature map, the method comprising the following steps:
[0084] S1: Get lidar points and raw images;
[0085] S2: Mapping pixels of the original image to corresponding laser radar points according to a mapping relationship between the original image and the laser radar points to obtain first mapping data;
[0086] S3: mapping the first mapping data onto pixels of the forward-looking image according to the mapping relationship between the laser radar point and the forward-looking image to obtain second mapping data;
[0087] S4: performing sparse encoding on the second mapping data to generate a lightweight sparse image;
[0088] S5: voxelizing the laser radar point to obtain a three-dimensional voxel of the laser radar point;
[0089] S6: extracting features from the lightweight sparse image and the three-dimensional voxel to obtain pixel features and voxel features;
[0090] S7: Encoding the pixel feature and the voxel feature to corresponding point cloud positions to obtain pixel point cloud features and voxel point cloud features;
[0091] S8: Fusing the pixel point cloud features and the voxel point cloud features to obtain a point cloud fusion feature;
[0092] S9: De-mapping the point cloud fusion features to obtain a multi-sensor fusion voxel feature map.
[0093] In step S2, according to the mapping relationship between the original image and the laser radar point, the pixels of the original image are mapped to the corresponding laser radar points to obtain first mapping data, which specifically includes:
[0094] According to the calibration matrix between the camera and the laser radar, a first mapping relationship between the original image and the laser radar point is established; the first mapping relationship is:
[0095]
[0096] Among them, x is the coordinate of the point cloud depth dimension, y is the coordinate of the point cloud width dimension, z is the coordinate of the point cloud height dimension, ur is the horizontal coordinate of the pixel in the original image, vr is the vertical coordinate of the pixel in the original image, I is the intrinsic parameter matrix, and E is the extrinsic parameter matrix.
[0097] In step S3, according to the mapping relationship between the laser radar point and the front view image, the first mapping data is mapped to the pixels of the front view image to obtain the second mapping data, which specifically includes:
[0098] A second mapping relationship between the laser radar point and the front view image is established by using the spherical projection principle; the second mapping relationship is:
[0099]
[0100] Among them, u is the horizontal coordinate of the pixel in the front view image, v is the vertical coordinate of the pixel in the front view image, x is the coordinate in the depth dimension of the point cloud, y is the coordinate in the width dimension of the point cloud, z is the coordinate in the height dimension of the point cloud, r is the reflection intensity, w is the width of the front view image, h is the height of the front view image, fov down is the vertical viewing angle below the laser radar, and fov is the vertical viewing angle of the laser radar;
[0101] The first mapping data is mapped onto the front-view image pixels according to the second mapping relationship to obtain second mapping data.
[0102] In step S4, sparse encoding is performed on the second mapping data to generate a lightweight sparse image, which specifically includes:
[0103] Determine whether any mapping data in the second mapping data is obtained by mapping multiple mapping data in the first mapping data, and obtain a first determination result;
[0104] If the first judgment result is yes, taking the average value of the plurality of mapping data in the first mapping data as the encoding value of any mapping data in the second mapping data;
[0105] Determine whether any mapping data in the second mapping data is obtained by mapping one of the mapping data in the first mapping data, and obtain a second determination result;
[0106] If the second judgment result is yes, using the corresponding mapping data in the first mapping data as the encoding value of any mapping data in the second mapping data;
[0107] If both the first judgment result and the second judgment result are negative, no encoding is performed.
[0108] In step S5, the laser radar point is voxelized to obtain a three-dimensional voxel of the laser radar point, which specifically includes:
[0109] Determine whether any voxel in the voxels contains a plurality of the laser radar points to obtain a third determination result;
[0110] If the third judgment result is yes, then using the average value of the plurality of laser radar points as the encoding value of any voxel in the voxels;
[0111] Determine whether any voxel in the voxels contains a laser radar point, and obtain a fourth determination result;
[0112] If the fourth determination result is yes, using the corresponding laser radar point as the encoding value of any voxel in the voxel;
[0113] If both the third judgment result and the fourth judgment result are negative, no encoding is performed.
[0114] In step S6, feature extraction is performed on the lightweight sparse image and the three-dimensional voxel to obtain pixel features and voxel features, specifically including:
[0115] Construct a two-dimensional sparse convolutional feature extraction network and a three-dimensional sparse convolutional feature extraction network respectively;
[0116] Using the two-dimensional sparse convolutional feature extraction network to extract features from the lightweight sparse image to obtain pixel features;
[0117] The three-dimensional sparse convolutional feature extraction network is used to extract features from the three-dimensional voxels to obtain voxel features.
[0118] In step S7, the pixel features and the voxel features are encoded to corresponding point cloud positions to obtain pixel point cloud features and voxel point cloud features, which specifically includes:
[0119] Using a quadratic linear interpolation algorithm based on four nearest neighbors to encode the pixel features to a point cloud position, to obtain the pixel point cloud features;
[0120] The voxel feature is encoded to the point cloud position using a cubic linear interpolation algorithm based on an inverse distance weighted method to obtain the voxel point cloud feature.
[0121] In step S8, the pixel point cloud features and the voxel point cloud features are fused to obtain point cloud fusion features, which specifically includes:
[0122] Using a first fully connected block to process the pixel point cloud features to obtain a one-dimensional pixel point cloud feature; the first fully connected block includes three fully connected layers, two batch normalization layers and two ReLU activation function layers;
[0123] Processing the voxel point cloud features using a second fully connected block to obtain a one-dimensional voxel point cloud feature; the second fully connected block includes three fully connected layers, two batch normalization layers, and two ReLU activation function layers;
[0124] The one-dimensional pixel point cloud feature and the one-dimensional voxel point cloud feature are processed using a sigmoid function to obtain a pixel point cloud feature weight and a voxel point cloud feature weight; the sigmoid function is:
[0125]
[0126] Among them, w pp is the pixel point cloud feature weight, w pv is the feature weight of the voxel point cloud, is a one-dimensional pixel point cloud feature, It is a one-dimensional voxel point cloud feature;
[0127] The pixel point cloud feature and the voxel point cloud feature are fused using the pixel point cloud feature weight and the voxel point cloud feature weight to obtain a point cloud fusion feature; the fusion expression is:
[0128] f fuse =[f pp (1+w pp ),f pv (1+w pv )]
[0129] Among them, f fuse is the point cloud fusion feature, f pp is the pixel point cloud feature, f pv is the voxel point cloud feature.
[0130] In step S9, the point cloud fusion features are inversely mapped to obtain a multi-sensor fusion voxel feature map, which specifically includes:
[0131] Using a cubic linear interpolation method, the point cloud fusion feature is inversely mapped to the position of the non-empty voxel in the voxel feature to obtain a replacement point cloud fusion feature;
[0132] The replacement point cloud fusion feature replaces the non-empty voxel feature at the corresponding position in the voxel feature to obtain a multi-sensor fusion voxel feature map.
[0133] After step S9, the method further includes: sending the obtained multi-sensor fusion voxel feature map to a subsequent network for a three-dimensional target detection task. In this embodiment, the subsequent network refers to the network structure of PV-RCNN or other network structures (such as SA-SSD). That is to say, the generated multi-sensor fusion voxel feature map can be connected to many existing network structures (as long as it is based on the voxel feature map).
[0134] The method of the present invention establishes a mapping relationship between the original image and the laser radar point, and a mapping relationship between the laser radar point and the front view image, generates a lightweight sparse image, and provides a basis for the rapid processing of image information. At the same time, the method of the present invention fuses the features extracted by the two sensor feature extraction networks, constructs a more informative environmental information feature, and improves the accuracy of three-dimensional target detection.
[0135] In order to facilitate the understanding of the present invention, the following Figure 2 -Attached Figure 6 The present invention will be described.
[0136] Step 1: Obtain 3D LiDAR point cloud data and photos of the surrounding environment.
[0137] In this embodiment, the method of the present invention is described in detail using the most commonly used and authoritative KITTI autonomous driving dataset in the field of autonomous driving. The data of this dataset are collected from two grayscale cameras (No. 0 and No. 1), two color cameras (No. 2 and No. 3) and a laser radar, and camera No. 0 is the reference camera. Take the original image of color camera No. 2 and the corresponding laser radar point cloud data of sample No. 7312 in the training set of the KITTI autonomous driving dataset as an example to illustrate an iteration cycle of the data. The original image resolution is 1242×375, with a total of 465750 pixels, as shown in FIG. Figure 2 The laser radar point cloud data within the corresponding range contains 18656 points, as shown in Figure 3 shown.
[0138] Establish the mapping relationship between the original image and the laser radar point, and define P: {p i =(x i ,y i ,z i ,r i ),i=1,2,3,…,18656} is a point in the laser radar point cloud, where x is the coordinate of the point cloud depth dimension, y is the coordinate of the point cloud width dimension, z is the coordinate of the point cloud height dimension, and r is the reflection intensity corresponding to the point. i Refers to the point in the laser radar point cloud, RP: {rp i =(ur, vr), i=1, 2, 3, ..., 465750} is the pixel in the original image of color camera No. 2, ur is the horizontal coordinate of the pixel in the original image, and vr is the vertical coordinate of the pixel in the original image. The mapping relationship between the original image pixel taken by color camera No. 2 and the laser radar point can be expressed by formula (1).
[0139] Step 2: Establish the mapping relationship between the original image pixels and the lidar points, and the mapping relationship between the lidar points and the front view image.
[0140]
[0141] The internal parameter matrix I of color camera No. 2 is 2 for:
[0142]
[0143] Corrected rotation matrix R of grayscale camera No. 0 0 for:
[0144]
[0145] The external parameter matrix Tr_velo_to_cam that maps the lidar point to the grayscale camera No. 0 is:
[0146]
[0147] Next, establish the mapping relationship between the laser radar point and the front view image. The vertical viewing angle of the laser radar is fov down =0.43rad, the vertical viewing angle is fov=0.47rad, and the width and height w and h of the generated front view are set to 512 and 48 respectively. The mapping relationship between the lidar point and the front view pixel can be obtained as shown in formula (5).
[0148]
[0149] Step 3: Map the pixels in the original image to the corresponding lidar points, and then map them to the pixels of the generated front view image for sparse encoding to generate a lightweight sparse image, and convert the original point cloud into three-dimensional voxels.
[0150] According to the mapping relationship between the original image pixels and the LiDAR points shown in formula (1), the color information in the original image pixels is mapped to the LiDAR points, and the LiDAR point features are updated to P: {p i =(rd i ,gr i ,bl i ),i=1,2,3,…,N}, where rd, gr, bl are the red channel value, green channel value and blue channel value of the pixel in the original image corresponding to the laser radar point respectively. Then, according to the mapping relationship between the laser radar point and the front view pixel shown in formula (5), the laser radar point is mapped to the front view image pixel and sparsely encoded. The sparse encoding of the front view image pixel follows the following rules: for the case where multiple laser radar points are mapped to the same front view image pixel, the average value of the features of these laser radar points is used as the encoding value of the pixel; for the case where a laser radar point is mapped to a front view image pixel, the feature value of the corresponding laser radar point is used as the encoding value of the pixel; for the front view image pixel where there is no corresponding laser radar point, no encoding is performed to maintain its sparsity. Through the above sparse encoding operation, the front view image is converted into a lightweight sparse image, and the color information in the original high-resolution image is transferred to the generated lightweight sparse image. The lightweight sparse image of sample No. 7312 is shown in the figure. Figure 4 As shown, the black pixels are uncoded pixels. It can be seen from the figure that compared with the dense front view image without sparse coding, the sparse image with sparse coding has some uncoded pixels, so it occupies less memory.
[0151] The point cloud space is limited to the range of [0, -40, -1] meters and [70.4, 40, 3] meters in depth, width and height dimensions, and the voxel size is [0.05, 0.05, 0.1] meters in depth, width and height dimensions, respectively, to generate 3D voxels with a resolution of 1408 × 1600 × 40. Similar to lightweight sparse image generation, if a voxel contains multiple lidar points, the average value of these points is used as the encoding value of the voxel. If the voxel does not contain a lidar point, it is not encoded. Considering the computational cost, a maximum of 16,000 non-empty 3D voxels are retained.
[0152] Step 4: Use the feature extraction network to extract features from lightweight sparse images and three-dimensional voxels to obtain pixel features and voxel features, and encode these two features onto the point cloud to obtain two point cloud features.
[0153] Table 1 Voxel feature extraction network structure and its parameters
[0154]
[0155] Construct a feature extraction network based on sparse convolution to extract features from the generated lightweight sparse image and 3D voxels to obtain a pixel feature map with a downsampling scale of 8 and voxel feature map The characteristics are and The feature extraction network structure and its parameters are shown in Table 1. For the extraction of pixel features and voxel features, two-dimensional sparse convolution and three-dimensional sparse convolution are used respectively. After each sparse convolution or manifold sparse convolution, batch normalization operation is performed and ReLU activation function is used for activation. Indicates FM p is a 2D pixel set of size 8×64, which is sparse as mentioned above. Indicates FM p The number of non-empty pixels is 348, and the feature of each pixel has 64 feature channels. Indicates FM v is a set of 3D voxels of size 5×200×176. As mentioned above, it is sparse (i.e., there are empty voxels and non-empty voxels among these 5×200×176 voxels). Indicates FM v The number of non-empty voxels is 10632, and the features of each voxel have 64 feature channels.
[0156] The pixel features are encoded into the point cloud using a quadratic linear interpolation algorithm based on four nearest neighbors to obtain pixel point cloud features. The calculation process is shown in formula (6), where p ul ,p ur,p bl and p br Represents the code point, p i ∈P, where the subscripts x and y represent the coordinates in the width and height directions of the pixel feature map, respectively.
[0157]
[0158] The voxel features are encoded into the point cloud position using the cubic linear interpolation algorithm based on the inverse distance weighted method to obtain the voxel point cloud features. The calculation process is shown in formula (7), where j is the index of the voxel, f vj is the feature of the jth voxel, w j (p i ) is the jth voxel and the encoding point p calculated based on the inverse distance weighted method i ∈P, the weight is calculated by formula (8), r itp is the search radius of the inverse distance weighted method, η(v j ) and η(p i ) are the three-dimensional coordinates of the j-th voxel and the i-th point respectively.
[0159]
[0160]
[0161] Step 5: Send the two point cloud features into the feature fusion network to obtain the point cloud fusion features.
[0162] Construct a feature fusion network such as Figure 5 The parameters of its fully connected layer are shown in Table 2. Fully connected blocks 1 and 2 consist of three fully connected layers, two batch normalization layers, and two ReLU activation function layers. First, two fully connected blocks are used to process the point cloud pixel features and point cloud voxel features to obtain the one-dimensional features and and
[0163] Table 2 Feature fusion network structure and its parameters
[0164] Fully connected layer feature input and output sizes Fully connected block 1 (64,64) Fully connected block 2 (64,64)
[0165] Then, the sigmoid function is used to process the one-dimensional features of the point cloud, and the one-dimensional features are compressed to [0, 1] to obtain the point cloud weight. The sigmoid function is shown in formula (9):
[0166]
[0167] Among them, W pp Point cloud pixel feature weight, W pvPoint cloud voxel feature weights.
[0168] Finally, the point cloud weight is used to fuse the two point cloud features to obtain the point cloud fusion feature f fuse , the point cloud fusion feature expression is shown in formula (10):
[0169] f fuse =[f pp (1+w pp ), f pv (1+w pv )] (10)
[0170] Step 6: Obtain a multi-sensor fusion voxel feature map from the point cloud fusion features and send it to the subsequent network for three-dimensional target detection tasks.
[0171] like Figure 6 The cubic linear interpolation method based on the inverse distance weighted method is used to map the point cloud fusion features back to the output of the feature extraction network (the voxel feature map FM with a downsampling scale of 8). v ), the calculation process is shown in formula (11), where i is the index of the point, w i (v j ) is the i-th point and voxel v calculated based on the inverse distance weighted method j ∈FM v The weight between them is calculated by formula (12), r itp is the search radius of the inverse distance weighted method, η(v j ) and η(p i ) are the three-dimensional coordinates of the j-th voxel and the i-th point respectively.
[0172]
[0173]
[0174] Using f′ fuse Replace the voxel feature map FM v Characteristics of non-empty voxels in Generate a multi-sensor fusion voxel feature map. Finally, the feature map is connected to the subsequent network for target detection tasks. fuse To map back to FM v Voxel features at non-empty voxel locations in .
[0175] All experiments in this embodiment are completed on the same experimental platform (Intel Xeon Silver CPU, NVIDIA RTX-2080Ti graphics card, 64GB memory). The training set and the validation set are obtained from the training samples of the KITTI public data set, of which the training set has a total of 3712 training samples and the validation set has a total of 3769 training samples. The vehicles in the validation set are divided into three difficulties: simple, medium and difficult according to the size of the vehicle bounding box and the degree of occlusion. The training batch size is 2, the learning rate is 0.00125, and the training cycle is 50. This embodiment conducts two groups of experiments, one of which is the original PV-RCNN target detection network experiment, and the other group of experiments replaces the voxel feature map generation network in the original PV-RCNN network with the multi-sensor fusion voxel feature map generation network of the present invention for three-dimensional target detection. The results are shown in Table 3. Table 3 uses the average accuracy to evaluate the car detection results under a three-dimensional perspective. If the intersection between the final detected car bounding box and the true value is greater than 70%, the detection is considered to be correct, otherwise it is wrong.
[0176] As can be seen from Table 3, the method of the present invention slightly reduces the average accuracy of vehicles with simple difficulty, but effectively improves the detection accuracy of vehicles with medium difficulty, which is the most important and most commonly used in three-dimensional target detection evaluation. At the same time, the method of the present invention also has a beneficial effect on the detection of vehicles with difficult difficulty. Overall, by using the method of the present invention, the three-dimensional target detection accuracy of the PV-RCNN target detection network is improved by 0.19%, which verifies the effectiveness of the method of the present invention.
[0177] Table 3 Object detection results of PV-RCNN and the method described in the present invention
[0178]
[0179] In summary, the method of the present invention establishes a mapping relationship between original image pixels and lidar points, and a mapping relationship between lidar points and front-view image pixels, generates a lightweight sparse image, and provides a basis for rapid processing of image information. At the same time, the method of the present invention fuses the features extracted by the two sensor feature extraction networks to construct a more informative environmental information feature, which provides a good foundation for subsequent computer vision tasks. The method of the present invention uses a linear interpolation method in both the point cloud feature encoding process and the multi-sensor fusion voxel feature map generation process, which has higher computational efficiency than existing point set abstraction algorithms. Compared with the method using the original image as input, the feature map generated by the method of the present invention incorporates additional three-dimensional coordinate information; compared with the method using the point cloud as input, the method of the present invention incorporates additional image RGB information.
[0180] Embodiment 2:
[0181] See also Figure 7 The present invention provides a multi-sensor fusion voxel feature map generation system, the system comprising:
[0182] Data acquisition module 1, used to acquire laser radar points and original images;
[0183] A first mapping module 2, used for mapping the pixels of the original image to corresponding laser radar points according to the mapping relationship between the original image and the laser radar points, to obtain first mapping data;
[0184] A second mapping module 3 is used to map the first mapping data onto pixels of the forward-looking image according to the mapping relationship between the laser radar points and the forward-looking image, so as to obtain second mapping data;
[0185] A sparse coding module 4, configured to perform sparse coding on the second mapping data to generate a lightweight sparse image;
[0186] A voxelization module 5, used for voxelizing the laser radar point to obtain a three-dimensional voxel of the laser radar point;
[0187] A feature extraction module 6 is used to extract features from the lightweight sparse image and the three-dimensional voxel to obtain pixel features and voxel features;
[0188] A point cloud feature acquisition module 7 is used to encode the pixel feature and the voxel feature to the corresponding point cloud position to obtain a pixel point cloud feature and a voxel point cloud feature;
[0189] A feature fusion module 8 is used to fuse the pixel point cloud feature and the voxel point cloud feature to obtain a point cloud fusion feature;
[0190] The de-mapping module 9 is used to de-map the point cloud fusion features to obtain a multi-sensor fusion voxel feature map.
[0191] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0192] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for generating a multi-sensor fusion voxel feature map, characterized in that: The following steps are involved: Get lidar points and raw images; According to the mapping relationship between the original image and the laser radar point, the pixels of the original image are mapped to the corresponding laser radar points to obtain first mapping data; According to the mapping relationship between the laser radar point and the front view image, the first mapping data is mapped onto the pixels of the front view image to obtain the second mapping data; Performing sparse encoding on the second mapping data to generate a lightweight sparse image; voxelize the laser radar point to obtain a three-dimensional voxel of the laser radar point; Performing feature extraction on the lightweight sparse image and the three-dimensional voxel to obtain pixel features and voxel features; Encoding the pixel features and the voxel features to corresponding point cloud positions to obtain pixel point cloud features and voxel point cloud features; Performing feature fusion on the pixel point cloud feature and the voxel point cloud feature to obtain a point cloud fusion feature; The point cloud fusion features are inversely mapped to obtain a multi-sensor fusion voxel feature map.
2. The method for generating a multi-sensor fusion voxel feature map according to claim 1, characterized in that: According to the mapping relationship between the original image and the laser radar point, the pixels of the original image are mapped to the corresponding laser radar points to obtain the first mapping data, which specifically includes: According to the calibration matrix between the camera and the laser radar, a first mapping relationship between the original image and the laser radar point is established; the first mapping relationship is: Among them, x is the coordinate of the point cloud depth dimension, y is the coordinate of the point cloud width dimension, z is the coordinate of the point cloud height dimension, ur is the horizontal coordinate of the pixel in the original image, vr is the vertical coordinate of the pixel in the original image, I is the intrinsic parameter matrix, and E is the extrinsic parameter matrix.
3. The method for generating a multi-sensor fusion voxel feature map according to claim 1, characterized in that: According to the mapping relationship between the laser radar point and the front view image, the first mapping data is mapped onto the pixels of the front view image to obtain the second mapping data, which specifically includes: A second mapping relationship between the laser radar point and the front view image is established by using the spherical projection principle; the second mapping relationship is: Among them, u is the horizontal coordinate of the pixel in the front view image, v is the vertical coordinate of the pixel in the front view image, x is the coordinate in the depth dimension of the point cloud, y is the coordinate in the width dimension of the point cloud, z is the coordinate in the height dimension of the point cloud, r is the reflection intensity, w is the width of the front view image, h is the height of the front view image, fov down is the vertical viewing angle below the laser radar, and fov is the vertical viewing angle of the laser radar; The first mapping data is mapped onto the front-view image pixels according to the second mapping relationship to obtain second mapping data.
4. The method for generating a multi-sensor fusion voxel feature map according to claim 1, characterized in that: The second mapping data is sparsely encoded to generate a lightweight sparse image, specifically comprising: Determine whether any mapping data in the second mapping data is obtained by mapping multiple mapping data in the first mapping data, and obtain a first determination result; If the first judgment result is yes, taking the average value of the plurality of mapping data in the first mapping data as the encoding value of any mapping data in the second mapping data; Determine whether any mapping data in the second mapping data is obtained by mapping one of the mapping data in the first mapping data, and obtain a second determination result; If the second judgment result is yes, using the corresponding mapping data in the first mapping data as the encoding value of any mapping data in the second mapping data; If both the first judgment result and the second judgment result are negative, no encoding is performed.
5. The method for generating a multi-sensor fusion voxel feature map according to claim 1, characterized in that: The laser radar point is voxelized to obtain a three-dimensional voxel of the laser radar point, specifically comprising: Determine whether any voxel in the voxels contains a plurality of the laser radar points to obtain a third determination result; If the third judgment result is yes, then using the average value of the plurality of laser radar points as the encoding value of any voxel in the voxels; Determine whether any voxel in the voxels contains a laser radar point, and obtain a fourth determination result; If the fourth determination result is yes, using the corresponding laser radar point as the encoding value of any voxel in the voxel; If both the third judgment result and the fourth judgment result are negative, no encoding is performed.
6. The method for generating a multi-sensor fusion voxel feature map according to claim 1, characterized in that: Performing feature extraction on the lightweight sparse image and the three-dimensional voxel to obtain pixel features and voxel features specifically includes: Construct a two-dimensional sparse convolutional feature extraction network and a three-dimensional sparse convolutional feature extraction network respectively; Using the two-dimensional sparse convolutional feature extraction network to extract features from the lightweight sparse image to obtain pixel features; The three-dimensional sparse convolutional feature extraction network is used to extract features from the three-dimensional voxels to obtain voxel features.
7. The method for generating a multi-sensor fusion voxel feature map according to claim 1, characterized in that: Encoding the pixel features and the voxel features to corresponding point cloud positions to obtain pixel point cloud features and voxel point cloud features specifically includes: Using a quadratic linear interpolation algorithm based on four nearest neighbors to encode the pixel features to a point cloud position, to obtain the pixel point cloud features; The voxel feature is encoded to the point cloud position using a cubic linear interpolation algorithm based on an inverse distance weighted method to obtain the voxel point cloud feature.
8. The method for generating a multi-sensor fusion voxel feature map according to claim 1, characterized in that: The pixel point cloud feature and the voxel point cloud feature are subjected to feature fusion to obtain a point cloud fusion feature, which specifically includes: Using a first fully connected block to process the pixel point cloud features to obtain a one-dimensional pixel point cloud feature; the first fully connected block includes three fully connected layers, two batch normalization layers and two ReLU activation function layers; Processing the voxel point cloud features using a second fully connected block to obtain a one-dimensional voxel point cloud feature; the second fully connected block includes three fully connected layers, two batch normalization layers, and two ReLU activation function layers; The one-dimensional pixel point cloud feature and the one-dimensional voxel point cloud feature are processed using a sigmoid function to obtain a pixel point cloud feature weight and a voxel point cloud feature weight; the sigmoid function is: Among them, w pp is the pixel point cloud feature weight, w pv is the feature weight of the voxel point cloud, is a one-dimensional pixel point cloud feature, It is a one-dimensional voxel point cloud feature; The pixel point cloud feature and the voxel point cloud feature are fused using the pixel point cloud feature weight and the voxel point cloud feature weight to obtain a point cloud fusion feature; the fusion expression is: f fuse =[f pp (1+w pp ),f pv (1+w pv )] Among them, f fuse is the point cloud fusion feature, f pp is the pixel point cloud feature, f pv is the voxel point cloud feature.
9. The method for generating a multi-sensor fusion voxel feature map according to claim 1, characterized in that: The point cloud fusion features are reverse mapped to obtain a multi-sensor fusion voxel feature map, specifically including: Using a cubic linear interpolation method, the point cloud fusion feature is inversely mapped to the position of the non-empty voxel in the voxel feature to obtain a replacement point cloud fusion feature; The replacement point cloud fusion feature replaces the non-empty voxel feature at the corresponding position in the voxel feature to obtain a multi-sensor fusion voxel feature map.
10. A multi-sensor fusion voxel feature map generation system, characterized in that: include: Data acquisition module, used to obtain lidar points and raw images; A first mapping module, configured to map pixels of the original image to corresponding laser radar points according to a mapping relationship between the original image and the laser radar points, to obtain first mapping data; A second mapping module, configured to map the first mapping data onto pixels of the forward-looking image according to a mapping relationship between the laser radar points and the forward-looking image, to obtain second mapping data; A sparse coding module, used for performing sparse coding on the second mapping data to generate a lightweight sparse image; A voxelization module, used for voxelizing the laser radar point to obtain a three-dimensional voxel of the laser radar point; A feature extraction module, used for extracting features from the lightweight sparse image and the three-dimensional voxel to obtain pixel features and voxel features; A point cloud feature acquisition module, used for encoding the pixel feature and the voxel feature to corresponding point cloud positions to obtain pixel point cloud features and voxel point cloud features; A feature fusion module, used for fusing the pixel point cloud feature and the voxel point cloud feature to obtain a point cloud fusion feature; The de-mapping module is used to de-map the point cloud fusion features to obtain a multi-sensor fusion voxel feature map.
Citation Information
Patent Citations
Target tracking method based on laser radar and PTZ camera
CN110517284A
Camera and laser radar fused end-to-end target detection method
CN111027401A
Three-dimensional target detection method, system and device based on RGB-D
CN111723721A
Three-dimensional target detection method and system
CN112052860A
Three-dimensional target detection method based on fusion of laser radar and camera
CN112288667A
