Target detection method, device, electronic device and computer-readable storage medium
Through encoding processing and feature fusion of image and point cloud data, dynamic voxelization determines the point cloud index, which solves the problem of low target detection accuracy in autonomous driving and improves the ability to detect small objects and the accuracy of detection results.
Patent Information
- Application Number
- CN202210861870.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-20
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-07-20
AI Technical Summary
In existing autonomous driving technology, the fusion of point cloud data and image data results in low target detection accuracy, which is especially detrimental to the detection of small objects. The loss of part of the point cloud data leads to a decrease in detection accuracy.
By acquiring image fusion data and point cloud fusion data, encoding processing is performed to obtain image feature maps and point cloud feature maps with different resolutions, and feature fusion is performed, and dynamic voxelization is performed to determine the voxel index of the point cloud point to ensure that the point cloud data integrity, thereby improving target detection accuracy.
It achieves higher target detection accuracy and completeness, which is especially beneficial for small object detection, avoids the loss of point cloud data, and improves the accuracy of detection results.
Smart Images

Figure CN115170769B
Abstract
Description
Background Art
[0002] In the field of autonomous driving technology, detection and perception of objects around the vehicle is an important part of achieving autonomous driving.
[0003] In the related art, the laser radar on the vehicle acquires the point cloud data around the vehicle, and the camera on the vehicle acquires the image data around the vehicle. After that, the point cloud data and the image data are fused, and the objects around the vehicle are detected based on the fused data.
[0004] However, in the process of fusing point cloud data with image data in related technologies, the efficiency of target detection is increased by voxelizing point cloud data, but part of the point cloud data will be lost when voxelizing point cloud data. The loss of part of the point cloud data leads to low accuracy of target detection and is not conducive to the detection of small objects.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The present disclosure provides a target detection method, device, electronic device and computer-readable storage medium, which at least to some extent overcome the problem of low target detection accuracy in related technologies.
[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0008] According to one aspect of the present disclosure, a target detection method is provided, including: acquiring image fusion data and corresponding point cloud fusion data, the image fusion data being obtained by fusing image data with corresponding point cloud data and a complement, and the point cloud fusion data being obtained by fusing the point cloud data with the image data; encoding the image fusion data and obtaining a plurality of image feature maps with different resolutions from a plurality of stages of encoding processing; dynamically voxelizing the point cloud fusion data to determine the voxel index corresponding to each point cloud point in the point cloud fusion data; encoding the point cloud fusion data to obtain a first point cloud feature map; performing feature fusion on the plurality of image feature maps with the first point cloud feature map to obtain a second point cloud feature map; performing target detection according to the second point cloud feature map and the voxel index to obtain a detection result.
[0009] In one embodiment of the present disclosure, the step of fusing the multiple image feature maps with the first point cloud feature map to obtain a second point cloud feature map includes: fusing the respective image feature maps in the multiple image feature maps with the first point cloud feature map to obtain multiple third point cloud feature maps; and splicing the multiple third point cloud feature maps to obtain the second point cloud feature map.
[0010] In one embodiment of the present disclosure, the multiple image feature maps include a first image feature map, and the feature fusion of each image feature map in the multiple image feature maps with the first point cloud feature map to obtain multiple third point cloud feature maps includes: in the first image feature map, multiple image features are extracted within a reference neighborhood centered on a target pixel to obtain multiple second image feature maps, and the target pixel is a pixel included in the first image feature map and corresponds to a point cloud point in the first point cloud feature map; the multiple second image feature maps are respectively spliced with the first point cloud feature map to obtain multiple fourth point cloud feature maps; the multiple fourth point cloud feature maps are input into a dual-channel attention network, and the dual-channel attention network generates an attention feature map based on the multiple fourth point cloud feature maps; and a third point cloud feature map corresponding to the first image feature map is generated based on the attention feature map.
[0011] In one embodiment of the present disclosure, the multiple second image feature maps include a convolution feature map, an average pooling feature map and a maximum pooling feature map; in the first image feature map, multiple image features are extracted in a reference neighborhood centered on a target pixel to obtain multiple second image feature maps, including: in the first image feature map, deformable convolution is performed in the reference neighborhood centered on the target pixel to obtain the convolution feature map; in the first image feature map, deformable average pooling is performed in the reference neighborhood centered on the target pixel to obtain the average pooling feature map; in the first image feature map, deformable maximum pooling is performed in the reference neighborhood centered on the target pixel to obtain the maximum pooling feature map.
[0012] In one embodiment of the present disclosure, the multiple fourth point cloud feature maps include a convolution point cloud feature map, an average pooling point cloud feature map and a maximum pooling point cloud feature map; the multiple fourth point cloud feature maps are input into a dual-channel attention network, and the dual-channel attention network generates an attention feature map based on the multiple fourth point cloud feature maps, including: inputting the convolution point cloud feature map into a first channel attention network included in the dual-channel attention network, and the first channel attention network generates a first attention feature map based on the convolution point cloud feature map; splicing the average pooling point cloud feature map and the maximum pooling point cloud feature map to obtain a target pooling point cloud feature map; inputting the target pooling point cloud feature map into a second channel attention network included in the dual-channel attention network, and the second channel attention network generates a second attention feature map based on the target pooling point cloud feature map; performing element-by-element multiplication and activation on the first attention feature map and the second attention feature map to obtain the attention feature map.
[0013] In one embodiment of the present disclosure, the multiple fourth point cloud feature maps include a convolution point cloud feature map; the generating a third point cloud feature map corresponding to the first image feature map based on the attention feature map includes: multiplying the attention feature map and the convolution point cloud feature map element by element and concatenating them to obtain a fifth point cloud feature map; inputting the fifth point cloud feature map into a first neural network, and the first neural network generating a third point cloud feature map corresponding to the first image feature map based on the fifth point cloud feature map.
[0014] In one embodiment of the present disclosure, performing target detection based on the second point cloud feature map and the voxel index to obtain a detection result includes: encoding the second point cloud feature map to obtain a target point cloud feature map; performing feature compression on the target point cloud feature map according to the voxel index to obtain a two-dimensional feature map; inputting the two-dimensional feature map into a second neural network, and having the second neural network perform target detection based on the two-dimensional feature map to obtain the detection result.
[0015] According to another aspect of the present disclosure, a target detection device is provided, including: an acquisition module, used to acquire image fusion data and corresponding point cloud fusion data, the image fusion data is obtained by fusing the image data with the corresponding point cloud data and the complement, and the point cloud fusion data is obtained by fusing the point cloud data with the image data; a processing module, used to encode the image fusion data and obtain multiple image feature maps with different resolutions from multiple stages of encoding processing; the processing module is also used to dynamically voxelize the point cloud fusion data and determine the voxel index corresponding to each point cloud point in the point cloud fusion data; the processing module is also used to encode the point cloud fusion data to obtain a first point cloud feature map; the processing module is also used to perform feature fusion on the multiple image feature maps with the first point cloud feature map to obtain a second point cloud feature map; the processing module is also used to perform target detection based on the second point cloud feature map and the voxel index to obtain a detection result.
[0016] In one embodiment of the present disclosure, the processing module is used to perform feature fusion on each of the multiple image feature maps with the first point cloud feature map to obtain multiple third point cloud feature maps; and to splice the multiple third point cloud feature maps to obtain the second point cloud feature map.
[0017] In one embodiment of the present disclosure, the multiple image feature maps include a first image feature map, and the processing module is used to extract multiple image features in a reference neighborhood centered on a target pixel in the first image feature map to obtain multiple second image feature maps, wherein the target pixel is a pixel included in the first image feature map and corresponds to a point cloud point in the first point cloud feature map; the multiple second image feature maps are respectively spliced with the first point cloud feature map to obtain multiple fourth point cloud feature maps; the multiple fourth point cloud feature maps are input into a dual-channel attention network, and the dual-channel attention network generates an attention feature map based on the multiple fourth point cloud feature maps; and a third point cloud feature map corresponding to the first image feature map is generated based on the attention feature map.
[0018] In one embodiment of the present disclosure, the multiple second image feature maps include a convolution feature map, an average pooling feature map and a maximum pooling feature map; the processing module is used to perform deformable convolution in the reference neighborhood centered on the target pixel in the first image feature map to obtain the convolution feature map; perform deformable average pooling in the reference neighborhood centered on the target pixel in the first image feature map to obtain the average pooling feature map; perform deformable maximum pooling in the reference neighborhood centered on the target pixel in the first image feature map to obtain the maximum pooling feature map.
[0019] In one embodiment of the present disclosure, the multiple fourth point cloud feature maps include a convolution point cloud feature map, an average pooled point cloud feature map and a maximum pooled point cloud feature map; the processing module is used to input the convolution point cloud feature map into the first channel attention network included in the dual-channel attention network, and the first channel attention network generates a first attention feature map based on the convolution point cloud feature map; the average pooled point cloud feature map and the maximum pooled point cloud feature map are spliced to obtain a target pooled point cloud feature map; the target pooled point cloud feature map is input into the second channel attention network included in the dual-channel attention network, and the second channel attention network generates a second attention feature map based on the target pooled point cloud feature map; the first attention feature map is element-wise multiplied and activated with the second attention feature map to obtain the attention feature map.
[0020] In one embodiment of the present disclosure, the multiple fourth point cloud feature maps include a convolution point cloud feature map; the processing module is used to multiply and concatenate the attention feature map and the convolution point cloud feature map element by element to obtain a fifth point cloud feature map; the fifth point cloud feature map is input into a first neural network, and the first neural network generates a third point cloud feature map corresponding to the first image feature map based on the fifth point cloud feature map.
[0021] In one embodiment of the present disclosure, the processing module is used to encode the second point cloud feature map to obtain a target point cloud feature map; perform feature compression on the target point cloud feature map according to the voxel index to obtain a two-dimensional feature map; input the two-dimensional feature map into a second neural network, and the second neural network performs target detection based on the two-dimensional feature map to obtain the detection result.
[0022] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform any of the above-mentioned target detection methods by executing the executable instructions.
[0023] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any of the above-mentioned target detection methods is implemented.
[0024] According to another aspect of the present disclosure, a computer program product is provided, wherein the computer program product comprises a computer program or computer instructions, wherein the computer program or the computer instructions are loaded and executed by a processor so that a computer implements any of the target detection methods described above.
[0025] The technical solution provided by the embodiments of the present disclosure includes at least the following beneficial effects:
[0026] The technical solution provided by the embodiment of the present disclosure encodes the acquired image fusion data, obtains multiple image feature maps with different resolutions from multiple stages of the encoding process, and dynamically voxelizes and encodes the acquired point cloud fusion data to obtain the voxel index and the first point cloud feature map corresponding to each point cloud point in the point cloud fusion data. Since the dynamic voxelization assigns a corresponding voxel index to each point cloud point in the point cloud fusion data, there is no limit on the number of point cloud points in each voxel, thereby ensuring that the point cloud fusion data after dynamic voxelization does not lose data of some point cloud points.
[0027] Afterwards, the first point cloud feature map and multiple image feature maps are feature fused to obtain a second point cloud feature map, and target detection is performed based on the second point cloud feature map and the voxel index corresponding to each point cloud point to obtain a detection result. Since the second point cloud feature map is generated based on the first point cloud feature map without missing point cloud point data, the second point cloud feature map also has the point cloud data integrity of the first point cloud feature map. Therefore, the detection result obtained based on the second point cloud feature map and the voxel index corresponding to each point cloud point has higher accuracy, and the complete point cloud data is conducive to the detection of small objects.
[0028] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0030] Figure 1 A schematic diagram showing a target detection system structure in an embodiment of the present disclosure;
[0031] Figure 2 A flow chart of a target detection method according to an embodiment of the present disclosure is shown;
[0032] Figure 3 A schematic diagram showing the projection of a point cloud point in an image in one embodiment of the present disclosure;
[0033] Figure 4 A schematic diagram showing the positional relationship between point cloud points and pixels in one embodiment of the present disclosure is shown;
[0034] Figure 5 A schematic diagram showing a process of encoding image fusion data and obtaining multiple image feature maps in one embodiment of the present disclosure is shown;
[0035] Figure 6 A schematic diagram showing a cube determined according to minimum coordinates and maximum coordinates in one embodiment of the present disclosure;
[0036] Figure 7 A schematic diagram showing a result of performing 2D voxel segmentation of point cloud fusion data from a bird's eye view in one embodiment of the present disclosure;
[0037] Figure 8 A schematic diagram showing a voxelized representation and a dynamic voxelized representation of a related technology in one embodiment of the present disclosure;
[0038] Fig. 9 A schematic diagram showing a process of encoding point cloud fusion data in one embodiment of the present disclosure;
[0039] Fig.10 A schematic diagram showing the structure of a second neural network in one embodiment of the present disclosure is shown;
[0040] Fig.11 A flowchart of feature fusion of a first image feature map and a first point cloud feature map in one embodiment of the present disclosure is shown;
[0041] Fig.12 A schematic diagram showing a process of performing feature fusion of a first image feature map and a first point cloud feature map in one embodiment of the present disclosure;
[0042] Fig.13 A flow chart showing a target detection method in another embodiment of the present disclosure is shown;
[0043] Fig.14 A schematic diagram of a target detection device in an embodiment of the present disclosure is shown;
[0044] Fig.15 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0045] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0046] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0047] Figure 1 A schematic diagram showing an exemplary system architecture that can be applied to the target detection method or target detection device of the embodiments of the present disclosure is shown.
[0048] like Figure 1 As shown, the system architecture may include a server 101, a vehicle-mounted terminal 102, a vehicle-mounted camera device 103 and a vehicle-mounted laser radar 104.
[0049] Among them, the vehicle-mounted camera device 103 can obtain image data around the vehicle and can send the obtained image data to the vehicle-mounted terminal 102. The vehicle-mounted laser radar 104 can obtain point cloud data around the vehicle and can send the obtained point cloud data to the vehicle-mounted terminal 102. The vehicle-mounted terminal 102 is configured with a corresponding target detection algorithm, and can perform target detection based on the received point cloud data and image data. In addition, the vehicle-mounted terminal 102 can also send the received point cloud data and image data to the server 101. The server 101 is configured with a corresponding target detection algorithm, and can perform target detection based on the received point cloud data and image data.
[0050] The server 101 and the vehicle terminal 102 can be connected to each other through a network, and the vehicle terminal 102 can be connected to each other through a network with the vehicle camera 103 and the vehicle laser radar 104. The network can be a wired network or a wireless network, and this application does not limit this.
[0051] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged through the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.
[0052] The server 101 may be a server that provides various services, such as a background management server that provides support for the device operated by the vehicle terminal 102. The background management server may analyze and process the received request and other data, and feed back the processing results to the vehicle terminal 102. Optionally, the server 101 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0053] The vehicle-mounted terminal 102 may be any electronic device with computing capabilities, for example, a vehicle computer.
[0054] Those skilled in the art will appreciate that the above examples of the server 101 and the vehicle-mounted terminal 102 are merely exemplary, and any server or terminal capable of implementing the above functions is included herein.
[0055] The present exemplary implementation is described in detail below with reference to the accompanying drawings and embodiments.
[0056] A target detection method is provided in an embodiment of the present disclosure. The method can be executed by any electronic device with computing and processing capabilities. For example, the electronic device can be a vehicle-mounted terminal, or a server, or the method can be executed jointly by a server and a vehicle-mounted terminal.
[0057] Figure 2 A flow chart of a target detection method in an embodiment of the present disclosure is shown as follows: Figure 2 As shown, the target detection method provided in the embodiment of the present disclosure includes the following steps S201 to S206.
[0058] S201, obtaining image fusion data and corresponding point cloud fusion data, wherein the image fusion data is obtained by fusing the image data with the corresponding point cloud data and the complement, and the point cloud fusion data is obtained by fusing the point cloud data with the image data.
[0059] The image data includes the color data corresponding to each pixel in the image. For example, the data corresponding to the i-th pixel in the image data is (R i ,G i ,B i In one embodiment, the image data is obtained by photographing the environment by a vehicle-mounted camera. The point cloud data includes the position data and reflectivity corresponding to each point cloud point in the laser point cloud. For example, the data corresponding to the i-th point cloud point in the point cloud data is (x i ,y i ,z i ,r i In one embodiment, the point cloud data is obtained by scanning the environment by a vehicle-mounted laser radar. It should be noted that there is a corresponding relationship between the point cloud data and the image data, which is reflected in the fact that the image data and the point cloud data are acquired at the same time and have the same corresponding spatial content. The image fusion data is obtained by fusing the image data with the corresponding point cloud data and the complement. For example, the data corresponding to the i-th pixel in the image fusion data is (R i ,G i ,B i ,x i ,y i ,z i ,r i ). The point cloud fusion data is obtained by fusing the point cloud data with the image data. For example, the data corresponding to the i-th point cloud point in the point cloud fusion data is (x i ,y i ,z i ,r i ,R i ,G i ,B i ).
[0060] In one embodiment of the present disclosure, obtaining image fusion data and corresponding point cloud fusion data may include: obtaining image data and corresponding point cloud data; fusing the image data with the point cloud data in the point cloud data to obtain image fusion data; fusing the image data with the point cloud data to obtain point cloud fusion data. Whether fusing image data and point cloud data or fusing image data and point cloud data, it is done based on the correspondence between pixels in the image data and point cloud points in the point cloud data. In one embodiment, the coordinate transformation matrix that transforms the point cloud point coordinates in the point cloud data into image coordinates can be obtained, and then the position of each point cloud point in the point cloud data corresponding to the pixel in the image data can be calculated based on the coordinate transformation matrix, thereby determining the correspondence between the point cloud points in the point cloud data and the pixels in the image data.
[0061] The present disclosure does not limit the method of obtaining the coordinate transformation matrix. For example, the coordinate transformation matrix can be obtained by calibrating the position of the vehicle-mounted laser radar, the position and focal length of the vehicle-mounted camera device, and the coordinate transformation matrix includes the camera intrinsic parameter matrix And the coordinate transformation matrix from the lidar coordinate system to the image coordinate system The position of the corresponding pixel of the point cloud point in the image data can be calculated by the following formula 1.
[0062]
[0063] Among them, (x i ,y i ,z i ) is the coordinate of the i-th point cloud point, (u i ,v i ) is the position of the corresponding pixel of the i-th point cloud point in the image data.
[0064] In one embodiment of the present disclosure, based on the correspondence between point cloud points and pixels, before data layer fusion of point cloud data and image data is performed, point clouds in the point cloud data that are projected outside the image can be filtered out based on the size of the image data corresponding to the image. Figure 3 In , the size of image 301 is H*W, and the point cloud points corresponding to the point cloud data include point cloud point 302, point cloud point 303, point cloud point 304, point cloud point 305 and point cloud point 306. Among them, point cloud point 306 is projected outside the image after coordinate transformation, and point cloud point 306 needs to be filtered out before fusion data.
[0065] In some embodiments, the resolution of the image data is higher than that of the point cloud data, that is, the number of pixels corresponding to the image data is higher than the number of point cloud points corresponding to the point cloud data. In this case, when the point cloud data and the image data are fused according to the correspondence between the point cloud points and the pixels, some pixels may not have corresponding point cloud points. For example, Figure 4 The number of pixels corresponding to the image data is 3*4, a total of 12, and the number of point cloud points corresponding to the point cloud data is 9. Pixels 401, 402, and 403 are pixels without corresponding point cloud points. For pixels without corresponding point cloud points, the coordinate data is padded with values, for example, zero, in the image fusion data obtained after fusion. For example, if the i-th pixel in the image data does not have a corresponding point cloud point, then in the image fusion data, the data corresponding to the i-th pixel is (R i ,G i ,B i ,0,0,0,0).
[0066] S202, encoding the image fusion data and obtaining multiple image feature maps with different resolutions from multiple stages of encoding processing.
[0067] Each of the multiple stages corresponds to an image feature map among the multiple image feature maps.
[0068] Regarding the number of image feature maps included in the multiple image feature maps, the embodiments of the present disclosure do not impose any restrictions, and can be set based on experience. For example, the multiple image feature maps are image feature maps of 4 different resolutions. In some embodiments, encoding the image fusion data and obtaining multiple image feature maps of different resolutions from multiple stages of the encoding process may include: performing image detection processing on the image fusion data in an anchor-free manner, and obtaining multiple image feature maps of different resolutions from multiple stages of image detection. Among them, the algorithm backbone for performing image detection on the image fusion data can be any image detection algorithm, and the embodiments of the present disclosure do not impose any restrictions on this. For example, the image detection algorithm applied here can be SSD (Single Shot MultiBox Detector), RetinaNet (a target detection neural network), etc. In some embodiments, the algorithm for image detection uses 2D (2-dimension) target detection loss to constrain the algorithm for learning.
[0069] In some embodiments, in the multiple stages of performing image detection on the image fusion data, each stage corresponds to a different degree of processing of the image fusion data by the image detection algorithm. For example, one of the multiple stages may correspond to performing k convolutions and k pooling processes on the image fusion data in the image detection algorithm, where k is a positive integer, or one of the multiple stages corresponds to the entire processing process of the image detection algorithm.
[0070] Take the case where a plurality of image feature maps include four image feature maps, the four image feature maps are respectively and in, It can be the image feature map obtained after q times of convolution and pooling in the process of image detection on image fusion data. It can be an image feature map obtained after p times of convolution and pooling in the process of image detection on image fusion data. It can be an image feature map obtained by performing g convolutions and pooling in the process of image detection on image fusion data. q, p, and g are all positive integers, and q <p<g。 It may be a detection result of image detection on the image fusion data, and the detection result is a pixel-by-pixel category vector feature map.
[0071] For example, Figure 5 As shown, 502 is an image feature map obtained after performing a convolution and pooling on the image fusion data 501, that is, q=1; 503 is an image feature map obtained by performing two convolutions and pooling on the image fusion data, that is, p=2; 504 is an image feature map obtained after performing three convolutions and pooling on the image fusion data, that is, g=3. 505 is a category vector feature map for performing image detection on the image fusion data. Figure 5 In the example, 2D object detection 506 is a 2D object detection loss module, which is used to constrain the entire network for learning.
[0072] S203, dynamically voxelizing the point cloud fusion data, and determining the voxel index corresponding to each point cloud point in the point cloud fusion data.
[0073] The data corresponding to the i-th point cloud point in the point cloud fusion data can be used (x i ,y i ,z i ,r i ,R i ,G i ,B i ) means, where (x i ,y i ,zi ) belongs to coordinate data. According to the coordinate data in the data corresponding to each point cloud point, the three-dimensional space range of the point cloud can be selected and the minimum coordinate (x min ,y min ,z min ) and the maximum coordinate (x max ,y max ,z max ), where x min and x max are the minimum and maximum values of the selected three-dimensional space in the x-axis direction; y min and max The points are the minimum and maximum values of the selected three-dimensional space in the y-axis direction, and the z min and z max They are respectively the minimum and maximum values of the selected three-dimensional space in the z-axis direction.
[0074] A cube can be determined from the three-dimensional space according to the minimum coordinates and the maximum coordinates. For example, the cube determined according to the minimum coordinates and the maximum coordinates can be as follows Figure 6 As shown, 601 indicates the space point corresponding to the minimum coordinate, and 602 indicates the space point corresponding to the maximum coordinate.
[0075] After that, according to the minimum coordinate, maximum coordinate and the set voxel size (v L ,v w ) Perform 2D voxel segmentation of the point cloud fusion data from a bird's eye view. For example, the visualization of the 2D voxel segmentation result of the point cloud fusion data from a bird's eye view is as follows: Figure 7 As shown, Figure 7 In (1), the 2D voxel division from the bird's eye view perspective obtains four voxels, namely voxel 701, voxel 702, voxel 703 and voxel 704, that is, the resolution of the voxel feature map is 2*2. Figure 7 The voxel division shown in (1) is transformed into a bird's-eye view, and we get Figure 7 The content shown in (2) Figure 7 In (2), W = y max -y min , L = x max -x min For each voxel V1, V2, V3 and V4, the corresponding length and width are set to v L and v w ,For example, Figure 7 (3) is the voxel V1 indicated by 701.
[0076] The coordinate positions of the point cloud points in the point cloud fusion data are distributed in a cube determined by the minimum coordinate and the maximum coordinate. After the point cloud fusion data is dynamically voxelized, each corresponding point cloud point will be divided into a corresponding voxel, and the corresponding voxel index is determined according to the voxel where each point cloud point is located. In one embodiment, the voxel index corresponding to each point cloud point can be calculated by the following formula 2.
[0077]
[0078] Among them, I i is the voxel index of the i-th point cloud point, x i ,y i is the coordinate data of the i-th point cloud point, x min ,y min To select the minimum coordinate data in three-dimensional space, v L 、v w is the set voxel size value, w is the maximum coordinate y max Subtract the y value of the minimum coordinate min The resulting value.
[0079] The following example takes the point cloud fusion data including 8 point cloud points, and the 2D voxel division of the bird's eye view to obtain 4 voxels, and the relevant technology limits each voxel to including at most 3 point cloud points. Figure 8 As shown, Figure 8 (1) and Figure 8 (2) indicates that V4 voxel 801 includes 4 point cloud points. After the point cloud fusion data is represented by voxelization in the related technology, V4 voxel 801 will lose a point cloud point because the number of point cloud points included is greater than 3. The corresponding voxelization representation is as follows: Figure 8 After sampling the dynamic voxel representation used in the embodiment of the present disclosure, the number of point cloud points in each voxel is not limited, and thus the V4 voxel 801 will not lose point cloud points. The corresponding dynamic voxel representation is as follows: Figure 8 As shown in (4).
[0080] By determining the corresponding voxel index for each point cloud point in the point cloud fusion data, a dynamic number of point clouds in each voxel is realized, that is, there is no need to limit the number of point cloud points in each voxel, so that the number of point cloud points included in the point cloud fusion data before and after dynamic voxelization does not change, thereby avoiding the loss of some point cloud point data due to limiting the number of point cloud points in the voxel, and better retaining the point cloud information in the scene. The point cloud fusion data after dynamic voxelization will be stored in memory in an orderly manner, which is conducive to reducing random memory access and increasing the computational efficiency of subsequent processing of the point cloud fusion data. Combined with subsequent processing, it is conducive to more fully extracting the multi-scale and multi-level local feature information of the point cloud fusion data.
[0081] S204, encoding the point cloud fusion data to obtain a first point cloud feature map.
[0082] The disclosed embodiment does not limit the method used to encode the point cloud fusion data. For example, the point cloud fusion data can be encoded by a neural network. The disclosed embodiment also does not limit the specific neural network used to encode the point cloud fusion data. For example, a neural network including a fully connected layer and a pooling layer can be used to perform feature encoding on the point cloud fusion data.
[0083] For example, the process of encoding point cloud fusion data is as follows: Fig. 9 As shown, the point cloud fusion data 901 is processed by the fully connected layer 902 to obtain a first intermediate point cloud feature map 903, and then the first intermediate point cloud feature map 903 is processed by the maximum pooling 904 to obtain a second intermediate point cloud feature map 905, and then the first intermediate point cloud feature map 903 and the second intermediate point cloud feature map 905 are spliced to obtain a first point cloud feature map 906. In some embodiments, the maximum pooling and splicing operations can be performed multiple times to ensure that the generated first point cloud feature map has sufficient robustness.
[0084] S205: Fusing the multiple image feature maps with the first point cloud feature map to obtain a second point cloud feature map.
[0085] In one embodiment, performing feature fusion of multiple image feature maps with a first point cloud feature map to obtain a second point cloud feature map may include: performing feature fusion of each image feature map in the multiple image feature maps with the first point cloud feature map to obtain multiple third point cloud feature maps; and splicing the multiple third point cloud feature maps to obtain a second point cloud feature map.
[0086] The disclosed embodiment does not limit the manner in which the multiple image feature maps are respectively fused with the first point cloud feature map. For example, a neural network may be used to fuse the multiple image feature maps with the first point cloud feature map to obtain multiple third point cloud feature maps.
[0087] In one embodiment, the neural network for fusing features of the plurality of image feature maps with the first point cloud feature map may include a neural network using a dual-channel attention mechanism. The dual-channel attention mechanism can better fuse the features of the plurality of image feature maps with the first point cloud feature map, so that the third point cloud feature map obtained is more characteristic. The feature weighting is adaptively performed on the features by the dual-channel attention network, which solves the problem of misalignment of image features and point cloud features during fusion to a certain extent.
[0088] S206, performing target detection according to the second point cloud feature map and the voxel index to obtain a detection result.
[0089] In one embodiment of the present disclosure, performing target detection based on the second point cloud feature map and the voxel index to obtain a detection result may include: encoding the second point cloud feature map to obtain a target point cloud feature map; performing feature compression on the target point cloud feature map based on the voxel index to obtain a two-dimensional feature map; inputting the two-dimensional feature map into a second neural network, and having the second neural network perform target detection based on the two-dimensional feature map to obtain a detection result.
[0090] The embodiment of the present disclosure does not limit the method for encoding the second point cloud feature map. Figure 2 The method of encoding the point cloud fusion data in S204 of the corresponding embodiment is the same and will not be repeated here.
[0091] Each point cloud point in the target point cloud feature map corresponds to a voxel index, which is Figure 2 In S203 of the corresponding embodiment, after the point cloud fusion data is dynamically voxelized, the voxel index corresponding to each point cloud point is determined. According to the voxel index, the voxel corresponding to each point cloud point in the target point cloud feature map can be determined. For the target point cloud feature map, feature compression can be performed on the point cloud points in the same voxel, and a two-dimensional feature map is obtained after feature compression of the point cloud points included in each voxel. The disclosed embodiment does not limit the manner of feature compression of the point cloud points included in each voxel. For example, the point cloud points included in each voxel can be feature compressed in a maximum pooling manner. For example, among the point cloud points included in the target point cloud feature map, the first point cloud point, the second point cloud point and the third point cloud point are located in the same voxel, and the point cloud points in the voxel are feature compressed in a maximum pooling manner, which means selecting the maximum value in each dimension from the multidimensional data corresponding to the first point cloud point, the second point cloud point and the third point cloud point respectively.
[0092] Since the point cloud fusion data does not lose the data of some point cloud points after dynamic voxelization, the target point cloud feature map obtained based on the point cloud fusion data also includes the data of complete point cloud points. Furthermore, by performing feature compression on the target point cloud feature map that does not lack point cloud points, the obtained two-dimensional feature map can better reflect the characteristics of the target in the scene, which is conducive to retaining the characteristics of small objects in the scene.
[0093] The embodiment of the present disclosure does not limit the specific neural network used for the second neural network for target detection on the two-dimensional feature map, and any neural network that can achieve target detection can be used as the second neural network. Fig.10As shown, the second neural network includes a PANet network (Path Aggregation Network) 1001, a bilinear interpolation network 1002 and a prediction neural network 1003. Among them, the PANet network 1001 is used to process the two-dimensional feature map 1004 through two feature pyramid branches from bottom to top and top to bottom to complete multi-scale feature fusion. The bilinear interpolation network 1002 is used to restore the feature maps of multiple scales output by PANet to the maximum resolution and splice them. The prediction neural network 1003 is used to convolve the results output by the bilinear interpolation network 1002 and perform target prediction to obtain a target detection result 1005.
[0094] The technical solution provided by the embodiments of the present disclosure encodes the acquired image fusion data, obtains multiple image feature maps with different resolutions from multiple stages of the encoding process, and dynamically voxelizes and encodes the acquired point cloud fusion data to obtain the voxel index and the first point cloud feature map corresponding to each point cloud point in the point cloud fusion data. Since dynamic voxelization assigns corresponding voxel indexes to each point cloud point in the point cloud fusion data, there is no limit on the number of point cloud points in each voxel, thereby ensuring that the point cloud fusion data after dynamic voxelization does not lose data of some point cloud points. Afterwards, the first point cloud feature map and the multiple image feature maps are feature fused to obtain a second point cloud feature map, and target detection is performed based on the second point cloud feature map and the voxel indexes corresponding to each point cloud point to obtain a detection result. Since the second point cloud feature map is generated based on the first point cloud feature map without missing point cloud point data, the second point cloud feature map also has the point cloud data integrity of the first point cloud feature map. Therefore, the detection result obtained based on the second point cloud feature map and the voxel index corresponding to each point cloud point has higher accuracy, and the complete point cloud data is conducive to the detection of small objects.
[0095] In some embodiments, Figure 2 In S205 of the corresponding embodiment, the process of performing feature fusion on each feature map in the multiple image feature maps and the first point cloud feature map is the same. The multiple image feature maps include the first image feature map. The following will take the first image feature map and the first point cloud feature map as an example to obtain a third point cloud feature map corresponding to the first image feature map to illustrate the process of performing feature fusion on the multiple image feature maps and the first point cloud feature map. Fig.11 As shown, the process of performing feature fusion of the first image feature map and the first point cloud feature map includes S1101 to S1104.
[0096] S1101, in the first image feature map, extract multiple image features in a reference neighborhood centered on a target pixel to obtain multiple second image feature maps, where the target pixel is a pixel included in the first image feature map that corresponds to a point cloud point in the first point cloud feature map.
[0097] Among them, the reference neighborhood is a set value, and the embodiment of the present disclosure does not limit this, and can be set according to experience. For example, the reference neighborhood is an area corresponding to a^2 pixels centered on the target pixel, where a is an integer greater than or equal to 3.
[0098] Before explaining S1101, it is necessary to explain that there are target pixels corresponding to each point cloud point in the first point cloud feature map in the first image feature map. Since multiple image feature maps of different resolutions correspond to the same image fusion data, the first image feature map included in the multiple image feature maps also corresponds to the image fusion data. Since the first point cloud feature map is obtained by dynamically voxelizing and encoding the point cloud fusion data, the point cloud points corresponding to the first point cloud feature map are the same as the point cloud points corresponding to the point cloud fusion data. When each point cloud point in the point cloud fusion data corresponds to a pixel in the image fusion data, each point cloud point corresponding to the first point cloud feature map also corresponds to a pixel in the image fusion data. The pixels of the first image feature map obtained by encoding the image fusion data in one stage are obtained by encoding the pixels of the image fusion data, that is, each pixel in the image fusion data can determine the pixel corresponding to the same spatial content in the first image feature map. Therefore, each point cloud point in the first point cloud feature map can determine the corresponding pixel in the image fusion data, and then the corresponding target pixel in the first image feature map is determined by the pixel.
[0099] It should be noted that since the resolution of the first image feature map is lower than that of the image fusion data, different pixels in the image fusion data may correspond to the same pixel in the first image feature map. Furthermore, multiple point cloud points corresponding to the first point cloud feature map may have the same target pixel in the first image feature map.
[0100] In some embodiments, in the first image feature map, multiple image features are extracted within a reference neighborhood centered on the target pixel to obtain multiple second image feature maps, which may include: performing different types of convolutions or different types of pooling in the reference neighborhood centered on the target pixel in the first image feature map to extract features, and each feature extraction method corresponds to a second image feature map.
[0101] In another embodiment of the present disclosure, the multiple second image feature maps obtained in S1101 include convolution feature maps, average pooling feature maps, and maximum pooling feature maps. At this time, extracting multiple image features in a reference neighborhood centered on the target pixel to obtain multiple second image feature maps may include: in the first image feature map, performing a deformable convolution in a reference neighborhood centered on the target pixel to obtain a convolution feature map. For example, the process of obtaining the convolution feature map corresponds to Fig.12 In the first image feature map 1201, deformable convolution 1202 is performed; in the first image feature map, deformable average pooling is performed in a reference neighborhood centered on the target pixel to obtain an average pooling feature map. For example, the process of obtaining the average pooling feature map corresponds to Fig.12 In the first image feature map 1201, deformable average pooling 1203 is performed; in the first image feature map, deformable maximum pooling is performed in a reference neighborhood centered on the target pixel to obtain a maximum pooling feature map. For example, the process of obtaining the maximum pooling feature map corresponds to Fig.12 In the example, the first image feature map 1201 is subjected to deformable maximum pooling 1204 .
[0102] S1102, splicing the multiple second image feature maps with the first point cloud feature map respectively to obtain multiple fourth point cloud feature maps.
[0103] The multiple second image feature maps are respectively spliced with the first point cloud feature map to obtain a fourth point cloud feature map corresponding to each second image feature map. In some embodiments, the multiple second image feature maps include a convolution feature map, an average pooling feature map, and a maximum pooling feature map. At this time, the multiple second image feature maps are respectively spliced with the first point cloud feature map to obtain multiple fourth point cloud feature maps, including: splicing the convolution feature map, the average pooling feature map, and the maximum pooling feature map with the first point cloud feature map to obtain a fourth point cloud feature map corresponding to the convolution feature map, a fourth point cloud feature map corresponding to the average pooling feature map, and a fourth point cloud feature map corresponding to the maximum pooling feature map. For example, the process of splicing the convolution feature map, the average pooling feature map, and the maximum pooling feature map with the first point cloud feature map corresponds to Fig.12 In the figure, the first point cloud feature map 1205 is concatenated with the output results of the deformable convolution 1102, the deformable average pooling 1203, and the deformable maximum pooling 1204 respectively.
[0104] S1103, inputting multiple fourth point cloud feature maps into the dual-channel attention network, and the dual-channel attention network generates an attention feature map based on the multiple fourth point cloud feature maps.
[0105] The disclosed embodiments do not limit what specific neural network the dual-channel attention network is. The neural networks that can distinguish and process multiple fourth point cloud feature maps to obtain channel attention feature maps and spatial attention feature maps, and can fuse the channel attention feature maps and the spatial attention feature maps to obtain attention feature maps can be applied here.
[0106] In some embodiments, the plurality of fourth point cloud feature maps include the convolution point cloud feature map, the average pooling point cloud feature map, and the maximum pooling point cloud feature map mentioned in S1102. For example, the convolution point cloud feature map corresponds to Fig.12 1206, average pooling point cloud feature map corresponds to Fig.12 1207, the maximum pooling point cloud feature map corresponds to Fig.12 1208 in. At this time, a dual-channel attention network that can be applied to the disclosed embodiment, the process of generating an attention feature map according to multiple fourth point cloud feature maps, can include: inputting the convolution point cloud feature map into the first channel attention network included in the dual-channel attention network, and the first channel attention network generates a first attention feature map according to the convolution point cloud feature map; splicing the average pooled point cloud feature map and the maximum pooled point cloud feature map to obtain a target pooled point cloud feature map; inputting the target pooled point cloud feature map into the second channel attention network included in the dual-channel attention network, and the second channel attention network generates a second attention feature map according to the target pooled point cloud feature map; performing element-by-element multiplication and activation on the first attention feature map and the second attention feature map to obtain the attention feature map.
[0107] The specific composition of the first channel attention network is not limited in the embodiments of the present disclosure and can be set based on experience. For example, the first channel attention network includes several convolutional layers and activation layers. For another example, the first channel attention network includes two convolutional layers and one activation layer. The activation function used in the activation layer can be a ReLU (an activation function). In this case, Fig.12 The processing process of generating the first attention feature map 1212 according to the convolution point cloud feature map 1206 is convolution 1209, ReLU function 1210 and convolution 1211 in sequence.
[0108] The process of concatenating the average pooled point cloud feature map and the maximum pooled point cloud feature map to obtain the target pooled point cloud feature map corresponds to Fig.12 The process of converting the average pooled point cloud feature map 1207 and the maximum pooled point cloud feature map 1208 to the target pooled feature map 1213. The specific composition of the second channel attention network is not limited in the embodiment of the present disclosure and can be set according to experience. For example, the second channel attention network includes several convolutional layers. For another example, the second channel attention network includes one convolutional layer. At this time, Fig.12The processing method for generating the second attention feature map 1215 according to the target pooled point cloud feature map 1213 is convolution 1214.
[0109] like Fig.12 In the process, the first attention feature map 1212 and the second attention feature map 1215 are element-wise multiplied and processed with a sigmoid (an activation function) function 1216 to obtain an attention feature map.
[0110] S1104, generating a third point cloud feature map corresponding to the first image feature map according to the attention feature map.
[0111] In some embodiments, generating a third point cloud feature map corresponding to the first image feature map according to the attention feature map may include: multiplying the attention feature map and the convolution point cloud feature map element by element and concatenating them to obtain a fifth point cloud feature map; inputting the fifth point cloud feature map into the first neural network, and generating a third point cloud feature map corresponding to the first image feature map according to the fifth point cloud feature map by the first neural network. The convolution point cloud feature map is one of the multiple fourth point cloud feature maps obtained in S1102.
[0112] Among them, the attention feature map is multiplied element by element with the convolution point cloud feature map Fig.12 1217. The result of element-by-element multiplication of the attention feature map and the convolution point cloud feature map is concatenated with the convolution point cloud feature map 1206 to obtain a fifth point cloud feature map 1218.
[0113] The embodiment of the present disclosure does not limit what kind of specific neural network the first neural network is. For example, the first neural network includes several convolution layers. For another example, the first neural network includes one convolution layer. For example, the third point cloud feature map corresponding to the first image feature map is generated according to the fifth point cloud feature map. Fig.12 In the figure, the fifth point cloud feature map 1218 is convolved 1219 to obtain the third point cloud feature map 1220.
[0114] The technical solution provided by the disclosed embodiment can adaptively fuse the image features of a certain neighborhood with the point cloud features after weighting through deformable convolution and pooling, effectively and fully utilizing the image features. Furthermore, the dual-channel attention network is used to adaptively weight the features, which to a certain extent solves the problem of misalignment between image features and point cloud features during fusion.
[0115] To facilitate understanding of the technical solutions provided by the embodiments of the present disclosure, Figure 2 Corresponding embodiments and Fig.11 The corresponding embodiment describes the entire process of the target detection method provided by the embodiment of the present disclosure. In another embodiment, Fig.13As shown, the target detection method provided by the embodiment of the present disclosure may include S1301 to S1313.
[0116] S1301, obtaining image data, wherein the method for obtaining the image data is as follows: Figure 2 The corresponding S201 of the embodiment has been described and will not be repeated here.
[0117] S1302, obtaining point cloud data, wherein the method for obtaining point cloud data is as follows: Figure 2 The corresponding S201 of the embodiment has been described and will not be repeated here.
[0118] S1303, image data layer fusion; in one embodiment, the process of image data layer fusion is similar to Figure 2 The process of acquiring image fusion data in S201 of the corresponding embodiment is the same and will not be repeated here.
[0119] S1304, encoding image features to obtain multiple image feature maps; in one embodiment, the process corresponding to S1304 is the same as Figure 2 In S202 of the corresponding embodiment, the process of encoding the image fusion data and obtaining multiple image feature maps with different resolutions from multiple stages of the encoding process is the same and will not be repeated here.
[0120] S1305, point cloud data layer fusion; In one embodiment, the process of point cloud data layer fusion is similar to Figure 2 The process of acquiring point cloud fusion data in S201 of the corresponding embodiment is the same and will not be repeated here.
[0121] S1306, dynamic voxel representation; in one embodiment, the process of S1306 is the same as Figure 2 In S203 of the corresponding embodiment, the process of dynamically voxelizing the point cloud fusion data and determining the voxel index corresponding to each point cloud point in the point cloud fusion data is the same and will not be repeated here.
[0122] S1307, point cloud feature encoding; in one embodiment, the process of S1307 is the same as Figure 2 In S204 of the corresponding embodiment, the process of encoding the point cloud fusion data to obtain the first point cloud feature map is the same and will not be repeated here.
[0123] S1308, cross-modal number feature fusion; in one embodiment, the process of S1308 is the same as Figure 2 In S205 of the corresponding embodiment, the process of fusing the features of the plurality of image feature maps with the first point cloud feature map to obtain the second point cloud feature map is the same and will not be described in detail here. Fig.11The corresponding embodiments will not be described in detail here.
[0124] S1309, feature encoding; in one embodiment, the process of S1309 is the same as Figure 2 In S206 of the corresponding embodiment, the process of encoding the second point cloud feature map is the same and will not be repeated here.
[0125] S1310, dynamic voxelized feature representation; in one embodiment, dynamic voxelized feature representation refers to determining the voxel index corresponding to each point cloud point in the target point cloud feature map obtained by encoding the second point cloud feature map.
[0126] S1311, feature compression; in one embodiment, S1311 and Figure 2 In S206 of the corresponding embodiment, the process of performing feature compression on the target point cloud feature map according to the voxel index to obtain a two-dimensional feature map is the same and will not be repeated here.
[0127] S1312, 2D target detection; in one embodiment, S1311 and Figure 2 In S206 of the corresponding embodiment, the two-dimensional feature map is input into the second neural network, and the second neural network performs target detection based on the two-dimensional feature map. The process of obtaining the detection result is the same and will not be repeated here.
[0128] S1313, obtain the target detection result.
[0129] The technical solution provided by the embodiment of the present disclosure utilizes dynamic voxelization of point cloud fusion data, so that all point cloud point data is retained while taking into account the processing efficiency of the voxelization method. The deformable convolution and dual-channel attention mechanism are used to achieve target detection, which can avoid feature dislocation and information loss caused by the different granularity of the two modal features (image features and point cloud features) to a certain extent, making feature fusion more effective.
[0130] Based on the same inventive concept, the present disclosure also provides a target detection device in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated. Fig.14 A schematic diagram of a target detection device in an embodiment of the present disclosure is shown. Fig.14 As shown, the device comprises:
[0131] The acquisition module 1401 is used to acquire image fusion data and corresponding point cloud fusion data, the image fusion data is obtained by fusing the image data with the corresponding coordinate data, and the point cloud fusion data is obtained by fusing the point cloud data with the image data; the processing module 1402 is used to encode the image fusion data and obtain multiple image feature maps with different resolutions from multiple stages of the encoding process; the processing module 1402 is also used to dynamically voxelize the point cloud fusion data and determine the voxel index corresponding to each point cloud point in the point cloud fusion data; the processing module 1402 is also used to encode the point cloud fusion data to obtain a first point cloud feature map; the processing module 1402 is also used to perform feature fusion on multiple image feature maps and the first point cloud feature map to obtain a second point cloud feature map; the processing module is also used to perform target detection based on the second point cloud feature map and the voxel index to obtain a detection result.
[0132] In one embodiment of the present disclosure, the processing module 1402 is used to perform feature fusion on each of the multiple image feature maps with the first point cloud feature map to obtain multiple third point cloud feature maps; and to splice the multiple third point cloud feature maps to obtain a second point cloud feature map.
[0133] In one embodiment of the present disclosure, multiple image feature maps include a first image feature map, and a processing module 1402 is used to extract multiple image features in a reference neighborhood centered on a target pixel in the first image feature map to obtain multiple second image feature maps, where the target pixel is a pixel included in the first image feature map that corresponds to a point cloud point in the first point cloud feature map; the multiple second image feature maps are respectively spliced with the first point cloud feature map to obtain multiple fourth point cloud feature maps; the multiple fourth point cloud feature maps are input into a dual-channel attention network, and the dual-channel attention network generates an attention feature map based on the multiple fourth point cloud feature maps; and a third point cloud feature map corresponding to the first image feature map is generated based on the attention feature map.
[0134] In one embodiment of the present disclosure, multiple second image feature maps include convolution feature maps, average pooling feature maps and maximum pooling feature maps; processing module 1402 is used to perform deformable convolution in a reference neighborhood centered on a target pixel in the first image feature map to obtain a convolution feature map; perform deformable average pooling in a reference neighborhood centered on a target pixel in the first image feature map to obtain an average pooling feature map; perform deformable maximum pooling in a reference neighborhood centered on a target pixel in the first image feature map to obtain a maximum pooling feature map.
[0135] In one embodiment of the present disclosure, multiple fourth point cloud feature maps include a convolution point cloud feature map, an average pooled point cloud feature map, and a maximum pooled point cloud feature map; a processing module 1402 is used to input the convolution point cloud feature map into a first channel attention network included in the dual-channel attention network, and the first channel attention network generates a first attention feature map based on the convolution point cloud feature map; the average pooled point cloud feature map and the maximum pooled point cloud feature map are spliced to obtain a target pooled point cloud feature map; the target pooled point cloud feature map is input into a second channel attention network included in the dual-channel attention network, and the second channel attention network generates a second attention feature map based on the target pooled point cloud feature map; the first attention feature map is element-wise multiplied and activated with the second attention feature map to obtain an attention feature map.
[0136] In one embodiment of the present disclosure, multiple fourth point cloud feature maps include a convolution point cloud feature map; a processing module 1402 is used to multiply the attention feature map and the convolution point cloud feature map element by element and concatenate them to obtain a fifth point cloud feature map; the fifth point cloud feature map is input into the first neural network, and the first neural network generates a third point cloud feature map corresponding to the first image feature map based on the fifth point cloud feature map.
[0137] In one embodiment of the present disclosure, the processing module 1402 is used to encode the second point cloud feature map to obtain a target point cloud feature map; perform feature compression on the target point cloud feature map according to the voxel index to obtain a two-dimensional feature map; input the two-dimensional feature map into the second neural network, and the second neural network performs target detection based on the two-dimensional feature map to obtain a detection result.
[0138] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0139] Refer to the following Fig.15 15 to describe the electronic device 1500 according to this embodiment of the present disclosure. Fig.15 The electronic device 1500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0140] like Fig.15 As shown, the electronic device 1500 is in the form of a general computing device. The components of the electronic device 1500 may include but are not limited to: at least one processing unit 1510, at least one storage unit 1520, and a bus 1530 connecting different system components (including the storage unit 1520 and the processing unit 1510).
[0141] The storage unit stores program codes, which can be executed by the processing unit 1510, so that the processing unit 1510 executes the steps of various exemplary embodiments of the present disclosure described in the above “Specific Implementation Methods” section of this specification.
[0142] The storage unit 1520 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 1521 and / or a cache memory unit 1522 , and may further include a read-only memory unit (ROM) 1523 .
[0143] The storage unit 1520 may also include a program / utility 1524 having a set (at least one) of program modules 1525, such program modules 1525 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0144] Bus 1530 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0145] The electronic device 1500 may also communicate with one or more external devices 1540 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 1500, and / or any device that enables the electronic device 1500 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 1550. Furthermore, the electronic device 1500 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 1560. Fig.15 As shown, the network adapter 1560 communicates with other modules of the electronic device 1500 via the bus 1530. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 1500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0146] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0147] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. A program product capable of implementing the above-mentioned method of the present disclosure is stored thereon. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Specific Implementation Methods” section of this specification.
[0148] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0149] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0150] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0151] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0152] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0153] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0154] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0155] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope of the present disclosure is indicated by the appended claims.
Claims
1. A target detection method, characterized in that: The method comprises: Acquire image fusion data and corresponding point cloud fusion data, wherein the image fusion data is obtained by fusing the image data with the corresponding point cloud data and a complementary value, and the point cloud fusion data is obtained by fusing the point cloud data with the image data; Encoding the image fusion data and obtaining a plurality of image feature maps with different resolutions from a plurality of stages of encoding processing; Dynamically voxelizing the point cloud fusion data to determine the voxel index corresponding to each point cloud point in the point cloud fusion data; Encoding the point cloud fusion data to obtain a first point cloud feature map; Performing feature fusion on the multiple image feature maps and the first point cloud feature map to obtain a second point cloud feature map; Perform target detection according to the second point cloud feature map and the voxel index to obtain a detection result; The step of fusing the plurality of image feature maps with the first point cloud feature map to obtain a second point cloud feature map comprises: fusing each image feature map in the plurality of image feature maps with the first point cloud feature map to obtain a plurality of third point cloud feature maps; and splicing the plurality of third point cloud feature maps to obtain the second point cloud feature map. The method of performing target detection according to the second point cloud feature map and the voxel index to obtain a detection result includes: encoding the second point cloud feature map to obtain a target point cloud feature map; performing feature compression on the target point cloud feature map according to the voxel index to obtain a two-dimensional feature map; inputting the two-dimensional feature map into a second neural network, and having the second neural network perform target detection according to the two-dimensional feature map to obtain the detection result.
2. The method according to claim 1, characterized in that The multiple image feature maps include a first image feature map, and the feature fusion of each image feature map in the multiple image feature maps with the first point cloud feature map to obtain multiple third point cloud feature maps includes: In the first image feature map, a plurality of image features are extracted in a reference neighborhood centered on a target pixel to obtain a plurality of second image feature maps, wherein the target pixel is a pixel included in the first image feature map and corresponding to a point cloud point in the first point cloud feature map; splicing the plurality of second image feature maps with the first point cloud feature map respectively to obtain a plurality of fourth point cloud feature maps; Inputting the plurality of fourth point cloud feature maps into a dual-channel attention network, and generating an attention feature map by the dual-channel attention network according to the plurality of fourth point cloud feature maps; A third point cloud feature map corresponding to the first image feature map is generated according to the attention feature map.
3. The method according to claim 2, characterized in that The plurality of second image feature maps include a convolution feature map, an average pooling feature map, and a maximum pooling feature map; In the first image feature map, a plurality of image features are extracted in a reference neighborhood centered on the target pixel to obtain a plurality of second image feature maps, including: In the first image feature map, deformable convolution is performed in the reference neighborhood centered on the target pixel to obtain the convolution feature map; In the first image feature map, deformable average pooling is performed in the reference neighborhood centered on the target pixel to obtain the average pooling feature map; In the first image feature map, deformable maximum pooling is performed in the reference neighborhood centered on the target pixel to obtain the maximum pooling feature map.
4. The method according to claim 2, characterized in that: The plurality of fourth point cloud feature maps include a convolution point cloud feature map, an average pooling point cloud feature map, and a maximum pooling point cloud feature map; The step of inputting the plurality of fourth point cloud feature maps into a dual-channel attention network, and generating an attention feature map by the dual-channel attention network according to the plurality of fourth point cloud feature maps, comprises: Inputting the convolution point cloud feature map into a first channel attention network included in the dual-channel attention network, and generating a first attention feature map by the first channel attention network according to the convolution point cloud feature map; The average pooled point cloud feature map and the maximum pooled point cloud feature map are concatenated to obtain a target pooled point cloud feature map; Inputting the target pooled point cloud feature map into the second channel attention network included in the dual-channel attention network, and the second channel attention network generates a second attention feature map according to the target pooled point cloud feature map; The first attention feature map and the second attention feature map are element-wise multiplied and activated to obtain the attention feature map.
5. The method according to claim 2, characterized in that: The plurality of fourth point cloud feature maps include a convolution point cloud feature map; and the step of generating a third point cloud feature map corresponding to the first image feature map according to the attention feature map includes: Multiplying the attention feature map and the convolution point cloud feature map element by element and concatenating them to obtain a fifth point cloud feature map; The fifth point cloud feature map is input into a first neural network, and the first neural network generates a third point cloud feature map corresponding to the first image feature map according to the fifth point cloud feature map.
6. A target detection device, characterized in that: The device comprises: An acquisition module, used to acquire image fusion data and corresponding point cloud fusion data, wherein the image fusion data is obtained by fusing the image data with the corresponding point cloud data and a complementary value, and the point cloud fusion data is obtained by fusing the point cloud data with the image data; A processing module, used for encoding the image fusion data and obtaining a plurality of image feature maps with different resolutions from multiple stages of encoding processing; The processing module is further used to dynamically voxelize the point cloud fusion data and determine the voxel index corresponding to each point cloud point in the point cloud fusion data; The processing module is further used to encode the point cloud fusion data to obtain a first point cloud feature map; The processing module is further used to perform feature fusion on the multiple image feature maps and the first point cloud feature map to obtain a second point cloud feature map; The processing module is further used to perform target detection according to the second point cloud feature map and the voxel index to obtain a detection result; The processing module is further used to perform feature fusion on each of the multiple image feature maps with the first point cloud feature map to obtain multiple third point cloud feature maps; and to splice the multiple third point cloud feature maps to obtain the second point cloud feature map; The processing module is also used to encode the second point cloud feature map to obtain a target point cloud feature map; perform feature compression on the target point cloud feature map according to the voxel index to obtain a two-dimensional feature map; input the two-dimensional feature map into a second neural network, and the second neural network performs target detection based on the two-dimensional feature map to obtain the detection result.
7. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the target detection method according to any one of claims 1 to 5 by executing the executable instructions.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the target detection method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Target detection method, device and system and advanced driving assistance system
CN113408324A
Point cloud 3D target detection method based on key point multi-scale feature fusion
CN113706480A
Novel feature layer data fusion method and system for unmanned driving and target detection method
CN114155414A
Methods for encoding point cloud feature
US20220164566A1
