A target detection method and device, electronic equipment and vehicle
By employing a multimodal data fusion method, utilizing feature extraction and alignment processing of camera and millimeter-wave radar data, and combining a bidirectional fusion strategy with an attention mechanism, the problems of low sensor accuracy and weather influence are solved, achieving higher target detection accuracy and robustness.
Patent Information
- Application Number
- CN202411091293.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-08-09
AI Technical Summary
Existing single sensors suffer from low accuracy or are affected by weather conditions in target detection and environmental perception, making it difficult to achieve accurate environmental information perception.
A multimodal data fusion method is adopted, which utilizes camera and millimeter-wave radar data. Through a two-way fusion strategy of feature extraction, alignment processing and attention mechanism, strong and weak modalities are selected for feature fusion according to weather conditions to perform target detection.
It improves the robustness of the perception system to environmental changes and abnormal situations, and enhances the accuracy and precision of target detection, especially the target detection effect under different weather conditions.
Smart Images

Figure CN119068172B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a target detection method, apparatus, electronic device, and vehicle. Background Technology
[0002] Because various sensors exist for target detection and environmental perception, each with its own advantages and disadvantages, and a single sensor typically cannot achieve accurate perception of the required environmental information, multi-sensor fusion technology has become a key research focus and an indispensable part of vehicle environmental perception systems. Millimeter-wave radar offers long detection range, short response time, and low cost, but suffers from poor directionality and lower accuracy. Visual sensors like cameras provide a wealth of target information at a low cost, but are susceptible to changes in weather conditions and lighting. Summary of the Invention
[0003] This invention aims to at least partially address the limitations of related technologies. To this end, this invention proposes a target detection method, apparatus, electronic device, and vehicle capable of accurately detecting targets.
[0004] On one hand, embodiments of the present invention provide a target detection method, including:
[0005] Acquire multimodal data and weather conditions of the target scene; the multimodal data includes camera data and millimeter-wave radar data;
[0006] Feature extraction is performed on multimodal data to obtain feature data; the feature data includes camera features and millimeter-wave radar features;
[0007] When weather conditions are favorable, the camera features and millimeter-wave radar features are first aligned based on the first data distribution of camera features.
[0008] When weather conditions are poor, the camera features are converted to a bird's-eye view and stereo image features are obtained through stitching. Based on the second data distribution of the stereo image features, the stereo image features and millimeter-wave radar features are subjected to a second alignment process.
[0009] Based on the feature results of the first or second alignment process, feature fusion is performed through a bidirectional fusion strategy based on an attention mechanism to obtain the target features;
[0010] Based on target features, target detection is performed using a pre-defined regression head to obtain target detection results in the target scene.
[0011] In some embodiments, acquiring multimodal data and weather conditions of a target scene includes the following steps:
[0012] The camera data of the target scene is acquired through a camera device; the camera data is image data.
[0013] Millimeter-wave radar data of the target scene is acquired through millimeter-wave radar; the millimeter-wave radar data is point cloud data.
[0014] Weather conditions can be obtained in response to input information from the target object, or by classifying camera data using a pre-trained classification model.
[0015] In some embodiments, a first alignment process is performed on camera features and millimeter-wave radar features based on a first data distribution of camera features, including the following steps:
[0016] A noise filtering network is used to perform third alignment processing on image pixels of camera features and depth points of millimeter-wave radar features.
[0017] Based on the results of the third alignment process, the depth points are projected onto the front view where the camera features are located using the attention alignment method, and the depth points are enhanced and corrected. The camera features and millimeter-wave radar features are then aligned on the first data distribution of the camera features.
[0018] In some embodiments, a second alignment process is performed on the stereo image features and the millimeter-wave radar features based on a second data distribution of stereo image features, including the following steps:
[0019] Image feature fusion is performed on stereo image features using consecutive convolutional blocks;
[0020] Pseudo-point cloud targets are obtained by back-projection extraction based on the results of image feature fusion.
[0021] Based on the pseudo-point cloud target, the stereo image features and millimeter-wave radar features are aligned on the second data distribution of the stereo image features.
[0022] In some embodiments, based on the feature results of the first alignment process or the second alignment process, feature fusion is performed through a bidirectional fusion strategy based on an attention mechanism to obtain target features, including the following steps:
[0023] When weather conditions are favorable, camera features are used as the first feature and millimeter-wave radar features are used as the second feature.
[0024] When weather conditions are unfavorable, stereo image features are used as the first feature and millimeter-wave radar features are used as the second feature.
[0025] Based on the first and second features, feature fusion is performed through bidirectional attention communication and multi-layer local spatial feature association to obtain the target features.
[0026] In some embodiments, feature fusion is performed based on a first feature and a second feature through bidirectional attention communication and multi-layer local spatial feature association to obtain target features, including the following steps:
[0027] The first feature is processed with self-attention to obtain the first self-attention feature; the second feature is processed with self-attention to obtain the second self-attention feature.
[0028] The first cross-attention feature is obtained by cross-attention processing based on the first self-attention feature and the second self-attention feature; the second cross-attention feature is obtained by cross-attention processing based on the second self-attention feature and the first self-attention feature.
[0029] Multiply the first cross-attention feature with the second cross-attention feature to obtain the third feature;
[0030] The third feature is post-processed to obtain the fourth feature;
[0031] Based on the number of channels of the fourth feature, the number of channels of the second cross-attention feature is expanded by a linear layer to obtain the fifth feature;
[0032] The fourth feature is used as the first feature, and the fifth feature is used as the second feature. The process is repeated until the number of feature processing loops reaches the preset number of feature fusion levels. Finally, the fourth feature is used as the target feature.
[0033] In some embodiments, post-processing of the third feature includes the following steps:
[0034] The third feature is processed sequentially by convolution, normalization, and activation function.
[0035] On the other hand, embodiments of the present invention provide a target detection device, comprising:
[0036] The first module is used to acquire multimodal data and weather conditions of the target scene; the multimodal data includes camera data and millimeter-wave radar data;
[0037] The second module is used to extract features from multimodal data to obtain feature data; the feature data includes camera features and millimeter-wave radar features.
[0038] The third module is used to perform a first alignment process on camera features and millimeter-wave radar features based on a first data distribution of camera features when weather conditions are good.
[0039] The fourth module is used to convert camera features into a bird's-eye view and obtain stereo image features through stitching when weather conditions are poor. Based on the second data distribution of the stereo image features, the stereo image features and millimeter-wave radar features are subjected to a second alignment process.
[0040] The fifth module is used to perform feature fusion based on the feature results of the first or second alignment processing, through a bidirectional fusion strategy based on an attention mechanism, to obtain the target features;
[0041] The sixth module is used to perform target detection based on target features using a preset regression head, and obtain the target detection results in the target scene.
[0042] On the other hand, embodiments of the present invention provide an electronic device, including: a processor and a memory; the memory is used to store a program; the processor executes the program to implement the above-described target detection method.
[0043] On the other hand, embodiments of the present invention provide a computer storage medium storing a processor-executable program, which, when executed by a processor, is used to implement the above-described target detection method.
[0044] On the other hand, embodiments of the present invention provide a vehicle that includes the target detection device or the electronic device described above.
[0045] This invention acquires multimodal data and weather conditions of a target scene. The multimodal data includes camera data and millimeter-wave radar data. Feature extraction is performed on the multimodal data to obtain feature data, which includes camera features and millimeter-wave radar features. When weather conditions are favorable, a first alignment process is performed on the camera features and millimeter-wave radar features based on a first data distribution of the camera features. When weather conditions are unfavorable, the camera features are converted to a bird's-eye view and stitched together to obtain stereo image features. A second alignment process is then performed on the stereo image features and millimeter-wave radar features based on a second data distribution of the stereo image features. Based on the feature results of the first or second alignment process, feature fusion is performed using a bidirectional fusion strategy based on an attention mechanism to obtain target features. Based on the target features, target detection is performed using a preset regression head to obtain the target detection result for the target scene. This invention uses a target detection method that fuses millimeter-wave radar and cameras, which can improve the robustness of the perception system to environmental changes and abnormal situations. Furthermore, by selecting different combinations during the information fusion process according to different weather conditions, target detection can be performed more effectively, improving detection accuracy and precision. This invention can accurately detect targets. Attached Figure Description
[0046] The accompanying drawings are provided to further understand the technical solutions of the present invention and constitute a part of the specification. They are used together with the embodiments of the present invention to explain the technical solutions of the present invention, and do not constitute a limitation on the technical solutions of the present invention.
[0047] Figure 1 This is a schematic diagram of an implementation environment for target detection provided in an embodiment of the present invention;
[0048] Figure 2 This is a schematic flowchart of a target detection method provided in an embodiment of the present invention;
[0049] Figure 3 This is a schematic diagram illustrating the data acquisition process provided in an embodiment of the present invention;
[0050] Figure 4 This is a schematic diagram of the unfolding process of the first alignment process provided in an embodiment of the present invention;
[0051] Figure 5 This is a schematic diagram of the unfolding process of the second alignment process provided in an embodiment of the present invention;
[0052] Figure 6 This is a schematic diagram of a multi-level bidirectional communication structure provided in an embodiment of the present invention;
[0053] Figure 7 A schematic diagram of the FV-Align process provided in an embodiment of the present invention;
[0054] Figure 8 This is a schematic diagram of the BEV-Align process provided in an embodiment of the present invention;
[0055] Figure 9 This is a schematic diagram of the structure of a target detection device provided in an embodiment of the present invention;
[0056] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0057] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0058] It should be noted that although functional modules are divided in the system diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first / S100," "second / S200," etc., in the specification, claims, and the aforementioned figures are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0059] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0060] It is understood that the target detection method provided in this embodiment of the invention can be applied to any computer device with data processing and computing capabilities, and this computer device can be various types of terminals or servers. When the computer device in the embodiment is a server, the server is 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 communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. In some embodiments, the terminal is a smartphone, tablet computer, laptop computer, or desktop computer, but it is not limited to these.
[0061] like Figure 1 The diagram shown is a schematic representation of an implementation environment provided by an embodiment of the present invention. (Refer to...) Figure 1 The implementation environment includes at least one terminal 102 and a server 101. The terminal 102 and the server 101 can be connected via a network, either wirelessly or via a wired connection, to complete data transmission and exchange.
[0062] Server 101 can be a standalone physical server, 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 communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0063] Additionally, server 101 can also be a node server in a blockchain network. Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms.
[0064] Terminal 102 can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc. It can also be a vehicle-mounted terminal of the various device types described above, but is not limited to these. Terminal 102 and server 101 can be directly or indirectly connected via wired or wireless communication, and this embodiment of the invention does not impose any limitations.
[0065] Exemplary based on Figure 1 The implementation environment shown in this embodiment of the invention provides a target detection method. The following description uses the application of this target detection method in server 101 as an example. It can be understood that this target detection method can also be applied in terminal 102.
[0066] Reference Figure 2 , Figure 2 This is a flowchart illustrating a target detection method applied to a server according to an embodiment of the present invention. The execution subject of this target detection method can be any of the aforementioned computer devices (including servers or terminals). (Refer to...) Figure 2 The method includes the following steps:
[0067] S100: Acquire multimodal data and weather conditions for the target scene;
[0068] The multimodal data includes camera data and millimeter-wave radar data;
[0069] It should be noted that in some embodiments, such as Figure 3 As shown, step S100 may include the following steps: S101, acquiring camera data of the target scene through a camera device; the camera data is image data; S102, acquiring millimeter-wave radar data of the target scene through millimeter-wave radar; the millimeter-wave radar data is point cloud data; S103, acquiring weather conditions in response to input information from the target object, or, obtaining weather conditions by classifying the camera data through a pre-trained classification model.
[0070] For example, in some specific implementations, the classification model can be trained using a conventional classifier based on scene images labeled with weather conditions, and then used for classification processing of weather conditions; at the same time, weather data can also be obtained directly based on manual input from the user.
[0071] S200. Perform feature extraction on the multimodal data to obtain feature data;
[0072] The feature data includes camera features and millimeter-wave radar features;
[0073] For example, in some specific implementations, camera features are obtained from camera data through feature extraction, and millimeter-wave radar features are obtained from millimeter-wave radar data through feature extraction.
[0074] S300. When the weather conditions are good, the camera features and millimeter-wave radar features are first aligned based on the first data distribution of camera features.
[0075] It should be noted that in some embodiments, such as Figure 4 As shown, the first alignment process for camera features and millimeter-wave radar features based on the first data distribution of camera features may include the following steps: S301, performing a third alignment process on the image pixels of camera features and the depth points of millimeter-wave radar features through a noise filtering network; S302, based on the result of the third alignment process, using an attention alignment method to project the depth points onto the front view where the camera features are located, and performing depth enhancement and depth correction on the depth points, thereby completing the first alignment process for camera features and millimeter-wave radar features on the first data distribution of camera features.
[0076] For example, in some specific implementations, when the weather conditions are good, the fusion can be performed after alignment based on the front view. This experiment uses FCOS3D as the base network. First, the depth points of the projection are aligned with the pixels of the image through a noise filtering network. Then, the attention alignment method is used to perform depth enhancement and depth correction on the millimeter-wave radar points projected onto the front view, and alignment is performed on the strong modal data distribution.
[0077] S400 When weather conditions are poor, the camera features are converted to a bird's-eye view and stereo image features are obtained through stitching. Based on the second data distribution of the stereo image features, the stereo image features and millimeter-wave radar features are subjected to a second alignment process.
[0078] It should be noted that the stitching operation is used to stitch together feature images from different camera perspectives into a bird's-eye view (panoramic view).
[0079] It should be noted that in some embodiments, such as Figure 5 As shown, the second alignment processing of stereo image features and millimeter-wave radar features based on the second data distribution of stereo image features may include the following steps: S401, performing image feature fusion on stereo image features through continuous convolutional blocks; S402, performing back projection extraction based on the result of image feature fusion to obtain pseudo point cloud targets; S403, based on pseudo point cloud targets, completing the second alignment processing of stereo image features and millimeter-wave radar features on the second data distribution of stereo image features.
[0080] For example, in some specific implementations, when the weather conditions are poor, fusion can be performed based on BEV alignment. This experiment uses BEVDet as the base network and uses the LSS method to transform the front view features of the camera RGB image to BEV. Then, a simple stitching operation and continuous convolutional blocks are used to fuse the image features and extract the millimeter-wave radar pseudo point cloud target with columnar features, which aligns the two modes in the weak mode data distribution.
[0081] The purpose of LSS is to propose a model called 'Lift-Splat-Shooti' to learn consistent representations from multi-view images and achieve end-to-end autonomous driving planning. This model converts images into 3D point cloud representations and performs predictive planning from BEVs to achieve the fusion and utilization of contextual features within the camera's field of view.
[0082] Lift (feature extraction): By processing the image, a series of points at all possible depths are generated for each pixel in the image, and features are generated for each point. For the depth with the highest confidence for each pixel, a cone point cloud is generated to represent the contextual features within the camera's field of view, and a depth estimate is generated.
[0083] Splat (projection): Projecting each cone-shaped point cloud onto a reference plane to obtain a bird's-eye view representation. This process converts the cone-shaped point cloud into a fixed-dimensional tensor, which can be processed by subsequent convolutional neural networks.
[0084] Shoot (planning): Motion planning is performed using an inferred cost map. Different trajectories are "shooted," their costs are calculated, and the trajectory with the lowest cost is selected as the final planning result.
[0085] Pseudo LiDAR (pseudo point cloud) can generate a depth map by estimating the depth of a panoramic view (bird's-eye view) and then back-projecting the depth map to generate a 3D pseudo point cloud.
[0086] S500: Based on the feature results of the first alignment processing or the second alignment processing, feature fusion is performed through a bidirectional fusion strategy based on an attention mechanism to obtain the target features;
[0087] It should be noted that in some embodiments, step S500 may include the following steps: when the weather conditions are good, using camera features as the first feature and millimeter-wave radar features as the second feature; when the weather conditions are poor, using stereo image features as the first feature and millimeter-wave radar features as the second feature; and performing feature fusion based on the first feature and the second feature through bidirectional attention communication and multi-layer local spatial feature association to obtain target features.
[0088] In some embodiments, feature fusion is performed based on a first feature and a second feature, through bidirectional attention communication and multi-layer local spatial feature association, to obtain a target feature. This may include the following steps: performing self-attention processing on the first feature to obtain a first self-attention feature; performing self-attention processing on the second feature to obtain a second self-attention feature; performing cross-attention processing on the first and second self-attention features to obtain a first cross-attention feature; performing cross-attention processing on the second and first self-attention features to obtain a second cross-attention feature; performing feature multiplication on the first and second cross-attention features to obtain a third feature; performing post-processing on the third feature to obtain a fourth feature; expanding the channel number of the second cross-attention feature through a linear layer based on the channel number of the fourth feature to obtain a fifth feature; using the fourth feature as the first feature and the fifth feature as the second feature, returning to the step of performing self-attention processing on the first feature to obtain the first self-attention feature, until the number of feature processing loops reaches a preset number of feature fusion levels, and finally using the fourth feature as the target feature.
[0089] In some embodiments, post-processing of the third feature may include the following steps: sequentially performing convolution, normalization, and activation function processing on the third feature. Specifically, the aforementioned processing steps can be executed sequentially using convolution blocks, normalization blocks, and activation functions.
[0090] For example, in some specific embodiments, for dense-to-sparse but spatially corresponding modes such as camera-millimeter-wave radar, this invention proposes a bidirectional fusion strategy (BSF) based on an attention mechanism suitable for spatial relationships during the fusion process. BSF consists of two sub-modules: bidirectional attention communication and multi-layered local spatial feature association. Given camera features F... C Millimeter-wave radar characteristics F R The algorithm in BSF is as follows:
[0091]
[0092] F R =G[C Attn (S Attn (norm(F R S Attn (norm(F C )))];
[0093] Among them, C Attn S represents cross attention. Attn Let H represent self-attention, and let H and G represent post-processing networks for the two features, respectively.
[0094] The first part of BSF consists of self-attention and cross-attention. First, features within the sample are extracted in the self-attention structure. Then, cross-attention is used to communicate with another modality, thereby making the representation domains constructed from these features more similar. The attention mechanism can be abstracted into two stages: first, the question and keywords are determined; then, the weighted coefficients of similarity between the question and keywords are calculated; and finally, the values are weighted and summed based on these coefficients. The attention calculation in this invention adopts the deformable attention proposed by Deformable DETR, which utilizes the sampling of attention feature points learned for calculation. Based on this, since both the question and keywords come from the input itself, the self-attention mechanism's attention calculation is equivalent to capturing the internal correlation of features within the same representation. The biggest difference from CNN is that the attention calculation is global, while the usual two-dimensional convolution calculation is limited by the fixed parameters of the convolution kernel, and can only achieve local correlation within the convolution setting region.
[0095] The BSF module, after cross-attention, will respectively... C and F R Converting back to a 2D shape and expanding it in terms of channel count yields F. RC ∈R N×2C×H×W The image is processed through a module H consisting of a 3×3 convolutional block, a normalized block BatchNorm2D, and a ReLU activation function to extract local features specific to the image. To enhance intermodal communication while preserving original error information and reducing model training complexity, BSF uses short connections in multi-level communication processes, such as... Figure 6 (The camera features in the diagram correspond to the aforementioned camera features or the stereo image features after conversion to BEV in different application scenarios.) The arrow direction indicates the direction of information flow. To ensure that the input size and channels of the feature maps in the same stage are the same, the input size and channels are adjusted before the end of each stage. By using an additional linear layer G, its channel number is proportional to... To maintain consistency, the formula becomes:
[0096]
[0097] Among them, F i F represents the feature of the i-th layer. i-1 This represents the features of the (i-1)th layer, where the features of the first layer come from their respective feature base networks.
[0098] S600: Based on target features, target detection is performed using a preset regression head to obtain target detection results in the target scene.
[0099] For example, in some specific implementations, the regression head plays a crucial role in the object detection model. It predicts the precise location and / or other relevant attributes of the target by learning the mapping relationship between the input data and the target output. The output of the regression head typically includes the target's center coordinates, width, height, etc. These parameters are learned through a training process to minimize the gap between the predicted bounding box and the actual target bounding box. It should be noted that the technical focus of this invention is on the feature processing flow for multimodal data, and does not specifically limit the regression head. In other implementation scenarios, the regression head can also be used in conjunction with a classification head based on the target features obtained from the aforementioned feature processing results. The classification head is responsible for identifying the target category, while the regression head is responsible for adjusting the target's position and size.
[0100] To explain in detail the principle of the technical solution of the present invention, the overall process of the present invention will be described below with reference to some specific embodiments. It is easy to understand that the following is an explanation of the technical principle of the present invention and should not be regarded as a limitation of the present invention.
[0101] First, it's important to clarify that there are currently several approaches to target detection using sensor fusion with millimeter-wave radar and cameras: 1. Joint calibration synchronizes radar and camera data spatiotemporally. Radar data is then transformed into an image to generate a region of interest (ROI). Frame difference is used to determine the object's region, and distance is measured by comparing whether two ROIs overlap. This method is challenging in setting the ROI threshold. A large ROI may include multiple vehicle targets, while a small ROI may result in incomplete inclusion of vehicle targets. 2. After spatiotemporal calibration, sensor fusion primarily employs evidence-based reasoning. A recognition framework is established, and basic probability allocation functions for each piece of evidence are calculated based on information from each sensor. The basic probability allocation functions for all evidence are then calculated according to the DS evidence-based reasoning combination rules. Finally, the hypothesis with the highest confidence is selected as the fusion function based on a specified decision criterion. This method has a lower detection rate for vehicles on both sides of the lane. 3. Millimeter-wave radar data is acquired, and effective targets are extracted, removing stationary targets and random noise. Image data is then acquired through cameras mounted on roadside poles. Target detection and multi-target tracking are performed based on YOLOv3 and Deep SORT tracking algorithms to obtain camera data. Finally, a fusion algorithm is used to fuse the millimeter-wave radar data and camera data for multi-sensor fusion, enabling real-time target detection, tracking, and localization by roadside equipment. However, all of these solutions are complex, have low target recognition accuracy and precision, and are not very feasible.
[0102] In view of this, embodiments of the present invention provide a target detection method using millimeter-wave radar and camera fusion with different technical concepts, specifically implemented as follows:
[0103] Based on the fusion stage, the fusion process can be divided into pre-fusion and post-fusion. Pre-fusion refers to feature fusion, where the framework adaptively adjusts the fused features, allowing the output fused features to be naturally applied to the target task. Generally, pre-fusion is used for fusing LiDAR point clouds and camera RGB images. Post-fusion assumes that each modality can independently complete the target detection task, or even if a modality cannot complete the target detection task, it can still contribute to a certain metric of the task. The results of each modality are then combined and balanced, and the corrected output is obtained. Since the performance of commonly used modalities cannot fully meet the assumptions of post-fusion, the fused features obtained in the pre-fusion stage can more adaptively improve prediction accuracy. In target detection methods, pre-fusion generally has better accuracy than post-fusion.
[0104] In the fusion process, the mode that contributes more to the fusion result is called the strong mode, and the mode that contributes less is called the weak mode. This invention proposes an information fusion method that selects different combination methods during the information fusion process based on different weather conditions, thus switching between the selection of strong and weak modes. Since camera detection of targets and environmental perception are easily affected by weather conditions and light intensity, in the process of target detection and environmental perception fusion of millimeter-wave radar and camera, when weather conditions are good, the camera is selected as the strong mode and the millimeter-wave radar as the weak mode for target detection. In this case, the fusion method takes the camera as the dominant mode, prioritizing the information received by the camera during fusion, and using the information detected by the millimeter-wave radar as a supplement for distance, size, etc., to contribute one or two more points to improve the accuracy of the final data. When weather conditions are unfavorable, such as rain, snow, or fog, millimeter-wave radar is selected as the strong mode and the camera as the weak mode for target detection during the fusion process. In this case, the fusion method takes millimeter-wave radar as the dominant mode and prioritizes the information detected by millimeter-wave radar. The information received by the camera is used as a supplement for color, type, etc., to contribute one or two points to improve the accuracy of the final data.
[0105] The two methods provided in this invention are as follows: Figure 7 and Figure 8As shown, FV-Align performs target detection after aligning the data distribution of strong modalities; BEV-Align performs target detection after aligning the data distribution of weak modalities and aligning the data distributions of both modalities. This demonstrates the impact of the initial data distribution pattern on feature extraction and the accuracy of the final result. 1. FV-Align: This invention introduces millimeter-wave radar projection depth points into the classic front-view framework FCOS3D, and performs filtering enhancement in two ways: adjacent region and noise depth value completion. Finally, a 3D target detection task is performed under the front-view distribution for comparison. 2. BEV-Align: Using the data distribution under the BEV (Bird's-Eye-View) perspective, this invention develops a fusion-based 3D target detection method under BEV based on BEVDet. A comparative analysis is conducted on multimodal versus single-modal and front-view versus BEV aspects.
[0106] In some specific application scenarios, such as Figure 7 As shown, FV-Align: Based on front view alignment followed by fusion, this experiment uses FCOS3D as the base network. First, a noise filtering network is used to align the depth points of the projection with the pixels of the image. Then, an attention alignment method is used to perform depth enhancement and depth correction on the millimeter-wave radar points projected onto the front view. Depth feature points and image feature points are fused. Alignment is performed on the strong modality data distribution before the target detection task is completed.
[0107] FCOS3D projects the 3D location of a 7DoF object detection task onto a 2D image, using the projection center as the 3D center. Therefore, this center essentially contains 2.5D depth information. By utilizing the unique 2D attribute of this center, normalized across different feature levels, the 3D object detection task can be decoupled into 2.5D centrality and 3D attributes. The entire FCOS3D process can be categorized within the canonical framework of object detection: the base framework, the neck framework, and the prediction head.
[0108] like Figure 8 As shown, BEV-Align: Based on BEV alignment and then fusion, this experiment uses BEVDet as the base network and uses the LSS method to transform the front view features of the camera RGB image to BEV. Then, a simple stitching operation and continuous convolutional blocks are used to fuse the image features and extract the millimeter-wave radar pseudo point cloud target with columnar features. The two modes are aligned in the weak mode data distribution and then the target detection task is completed.
[0109] BEVDet proposes a method to transform camera-based 3D object detection into BEV (Browser-Edge-Based) models while maintaining comparable accuracy and detection speed. This improves the accuracy of BEV location and aligns with the BEV semantic segmentation paradigm, facilitating the integration of the entire perception framework. The transformed BEV features are applicable not only to 3D object detection but also to BEV semantic segmentation. BEVDet is a simple and general BEV framework. When transforming image features from the front-view distribution to the BEV distribution using the LSS (Laser-Side-Side) method, the BEV data integrates six surround-view cameras from the nuScenes dataset into a single scene for supervision. Therefore, its input data is significantly reduced compared to single-view models, making it prone to overfitting. To address this issue, BEVDet proposes a decoupling method for data augmentation. During the data preprocessing stage, parameters for image cropping, rotation, and flipping are pre-stored. After sharing the image feature extraction network, these parameters are used to map back to the original space, thus enhancing the input image data while avoiding disconnections between scenes. Secondly, he updated the NMS algorithm to improve its adaptability to 3D object detection scenarios, removing unnecessary sequential execution operators to speed up its execution process.
[0110] Specifically, for camera-millimeter-wave radar modalities with dense to sparse but spatially corresponding relationships, a bidirectional fusion strategy BSF based on an attention mechanism is proposed in the fusion process of FV-Align and BEV-Align, suitable for modalities with spatial relationships. For tasks like object detection that emphasize detecting spatial relationships, bidirectional fusion significantly improves object detection accuracy by addressing the comparison between dense and sparse data, in addition to similarity-weighted judgment, and by using local convolution to better align the two modalities.
[0111] This invention utilizes BSF, a spatial feature fusion module based on a bidirectional attention mechanism. BSF is a fusion module that fully communicates dense strong modalities and sparse weak modalities, and considers the local relationships of spatial alignment between the two modalities. This invention employs the concept of bidirectional attention, meaning that the computation process is not separated, and bidirectional comparisons are performed in parallel queries. The aim is to enhance semantic consistency in the feature alignment process by transforming the two modalities into the same semantic space through bidirectional communication during feature similarity calculation.
[0112] In summary, this invention selects different combination methods during information fusion based on varying weather conditions, transforming the selection of strong and weak modalities. When weather conditions are unfavorable, such as rain, snow, or fog, millimeter-wave radar is selected as the strong modality and the camera as the weak modality for target detection. Conversely, when weather conditions are favorable, the camera is selected as the strong modality and the millimeter-wave radar as the weak modality for target detection. Furthermore, this invention utilizes BSF, a spatial feature fusion module based on a bidirectional attention mechanism. BSF is a fusion module that fully communicates dense strong modalities and sparse weak modalities, taking into account the local relationships of spatial alignment between the two modalities. The concept of bidirectional attention, meaning that the computation process is not separated and involves parallel queries and bidirectional comparisons, aims to transform the two modalities into the same semantic space through bidirectional communication during feature similarity calculation, thereby enhancing semantic consistency during feature alignment. Specifically, this invention uses a target detection method that fuses millimeter-wave radar and a camera, improving the robustness of the perception system to environmental changes and anomalies. This invention solves the problem of low accuracy and precision in target recognition. This invention introduces a novel bidirectional spatial fusion strategy, BSF (Bidirectional Spatial Fusion), applicable to multimodal features with spatial relationships. Compared to single-frame modalities, BEV-Radar is less expensive and solves the problem of velocity prediction, giving it an advantage over other camera-millimeter-wave radar methods. Furthermore, by selecting different combination methods during information fusion based on varying weather conditions and switching between strong and weak modes, it can more effectively detect targets, improving detection accuracy and precision.
[0113] On the other hand, such as Figure 9 As shown, an embodiment of the present invention provides a target detection device 900, which may include:
[0114] The first module 910 is used to acquire multimodal data and weather conditions of the target scene; the multimodal data includes camera data and millimeter-wave radar data;
[0115] The second module 920 is used to extract features from multimodal data to obtain feature data; the feature data includes camera features and millimeter-wave radar features.
[0116] The third module 930 is used to perform a first alignment process on camera features and millimeter-wave radar features based on a first data distribution of camera features when weather conditions are good.
[0117] The fourth module 940 is used to convert camera features into a bird's-eye view and obtain stereo image features through a stitching operation when the weather conditions are poor. Based on the second data distribution of the stereo image features, the stereo image features and the millimeter-wave radar features are subjected to a second alignment process.
[0118] The fifth module 950 is used to perform feature fusion based on the feature results of the first alignment processing or the second alignment processing, through a bidirectional fusion strategy based on an attention mechanism, to obtain the target features;
[0119] The sixth module 960 is used to perform target detection based on target features using a preset regression head, and obtain the target detection results in the target scene.
[0120] The content of the method embodiments of the present invention is applicable to the device embodiments. The specific functions implemented by the device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above methods.
[0121] On the other hand, embodiments of the present invention also provide an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described target detection method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.
[0122] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0123] like Figure 10 As shown, Figure 10 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes:
[0124] The processor 1001 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present invention.
[0125] The memory 1002 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 1002 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1002 and is called and executed by the processor 1001 to execute the network node population optimization method of the embodiments of this invention.
[0126] Input / output interface 1003 is used to implement information input and output;
[0127] The communication interface 1004 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0128] Bus 1005 transmits information between various components of the device (e.g., processor 1001, memory 1002, input / output interface 1003, and communication interface 1004);
[0129] The processor 1001, memory 1002, input / output interface 1003 and communication interface 1004 are connected to each other within the device via bus 1005.
[0130] The electronic device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0131] The content of the method embodiments of the present invention is applicable to the embodiments of the present electronic device. The specific functions implemented by the embodiments of the present electronic device are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above methods.
[0132] Another aspect of this invention provides a computer-readable storage medium storing a program that is executed by a processor to implement the aforementioned method.
[0133] It should be noted that the computer-readable medium shown in the embodiments of the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD to ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, wherein computer-readable program code is carried. Such transmitted data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0134] The content of the method embodiments of the present invention is applicable to the computer-readable storage medium embodiments. The specific functions implemented by the computer-readable storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above methods.
[0135] This invention also discloses a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium and execute the computer instructions, causing the computer device to perform the aforementioned method.
[0136] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0137] It should be noted that although several modules for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0138] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, portable hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of the present invention.
[0139] In some alternative embodiments, the functions / operations mentioned in the block diagrams may not occur in the order shown in the operation diagrams. For example, depending on the functions / operations involved, two consecutively shown blocks may actually be executed substantially simultaneously, or the blocks may sometimes be executed in reverse order. Furthermore, the embodiments presented and described in the flowcharts of this invention are provided by way of example to provide a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and sub-operations described as part of a larger operation are executed independently.
[0140] Furthermore, although the invention has been described in the context of functional modules, it should be understood that, unless otherwise stated, one or more of the functions and / or features may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the invention. Rather, given the properties, functions, and internal relationships of the various functional modules in the apparatus disclosed herein, the actual implementation of the module will be understood within the scope of conventional skill of an engineer. Therefore, those skilled in the art can implement the invention as set forth in the claims using ordinary techniques without excessive experimentation. It is also understood that the specific concepts disclosed are merely illustrative and not intended to limit the scope of the invention, which is determined by the full scope of the appended claims and their equivalents.
[0141] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0142] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution means, apparatus, or device (such as a computer-based device, a processor-including device, or other means that can fetch and execute instructions from, or in conjunction with, an instruction execution means, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution means, apparatus, or device.
[0143] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0144] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution device. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0145] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0146] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
[0147] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of the present invention.
Claims
1. A target detection method, characterized in that, Includes the following steps: Acquire multimodal data and weather conditions of the target scene; the multimodal data includes camera data and millimeter-wave radar data from different perspectives; Feature extraction is performed on the multimodal data to obtain feature data; the feature data includes camera features and millimeter-wave radar features; When the weather conditions are good, the camera features and the millimeter-wave radar features are first aligned based on the first data distribution of the camera features. When the weather conditions are unfavorable, the camera features from different perspectives are converted into feature images of a bird's-eye view and obtained through a stitching operation to obtain stereo image features. Based on the second data distribution of the stereo image features, the stereo image features and the millimeter-wave radar features are subjected to a second alignment process. Based on the feature results of the first alignment process or the second alignment process, feature fusion is performed through a bidirectional fusion strategy based on an attention mechanism to obtain the target features; Based on the target features, target detection is performed using a preset regression head to obtain the target detection results in the target scene; The first alignment process for the camera features and the millimeter-wave radar features based on the first data distribution of the camera features includes the following steps: A third alignment process is performed on the image pixels of the camera features and the depth points of the millimeter-wave radar features using a noise filtering network. Based on the result of the third alignment process, the depth point is projected onto the front view where the camera feature is located using the attention alignment method, and the depth point is enhanced and corrected for depth. The camera feature and the millimeter-wave radar feature are aligned on the first data distribution of the camera feature. The second data distribution based on the stereo image features performs a second alignment process on the stereo image features and the millimeter-wave radar features, including the following steps: Image feature fusion is performed on the stereo image features using consecutive convolutional blocks; The pseudo-point cloud target is obtained by back-projection extraction based on the image feature fusion result. Based on the pseudo-point cloud target, the stereo image features and the millimeter-wave radar features are aligned on the second data distribution of the stereo image features.
2. The target detection method according to claim 1, characterized in that, The acquisition of multimodal data and weather conditions for the target scene includes the following steps: The camera data of the target scene is acquired through a camera device; the camera data is image data. The millimeter-wave radar data of the target scene is acquired by the millimeter-wave radar; the millimeter-wave radar data is point cloud data. The weather conditions are obtained in response to input information from the target object, or the weather conditions are obtained by classifying the camera data using a pre-trained classification model.
3. The target detection method according to claim 1, characterized in that, The feature results based on the first alignment processing or the second alignment processing are fused using a bidirectional fusion strategy based on an attention mechanism to obtain the target features, including the following steps: When the weather conditions are favorable, the camera features are used as the first feature, and the millimeter-wave radar features are used as the second feature; When the weather conditions are unfavorable, the stereo image features are used as the first feature, and the millimeter-wave radar features are used as the second feature; Based on the first feature and the second feature, the feature fusion is performed through bidirectional attention communication and multi-layer local spatial feature association to obtain the target feature.
4. The target detection method according to claim 3, characterized in that, The step of fusing the target features based on the first feature and the second feature through bidirectional attention communication and multi-layer local spatial feature association includes the following steps: The first feature is subjected to self-attention processing to obtain a first self-attention feature; the second feature is subjected to the same self-attention processing to obtain a second self-attention feature. A first cross-attention feature is obtained by cross-attention processing based on the first self-attention feature and the second self-attention feature; a second cross-attention feature is obtained by cross-attention processing based on the second self-attention feature and the first self-attention feature. Multiply the first cross-attention feature by the first cross-attention feature to obtain the third feature; The third feature is post-processed to obtain the fourth feature; Based on the number of channels of the fourth feature, the second cross-attention feature is expanded by a linear layer to obtain the fifth feature; The fourth feature is used as the first feature, and the fifth feature is used as the second feature. The process of performing self-attention processing on the first feature to obtain the first self-attention feature is repeated until the number of feature processing loops reaches the preset number of feature fusion levels. The fourth feature obtained at the end is then used as the target feature.
5. The target detection method according to claim 4, characterized in that, The post-processing of the third feature includes the following steps: The third feature is then subjected to convolution, normalization, and activation function processing in sequence.
6. A target detection device, characterized in that, include: The first module is used to acquire multimodal data and weather conditions of the target scene; the multimodal data includes camera data and millimeter-wave radar data from different perspectives; The second module is used to extract features from the multimodal data to obtain feature data; the feature data includes camera features and millimeter-wave radar features. The third module is used to perform a first alignment process on the camera features and the millimeter-wave radar features based on a first data distribution of the camera features when the weather conditions are good. The fourth module is used to convert the camera features from different perspectives into feature images of a bird's-eye view and obtain stereo image features through a stitching operation when the weather conditions are poor; and to perform a second alignment process on the stereo image features and the millimeter-wave radar features based on the second data distribution of the stereo image features. The fifth module is used to perform feature fusion based on the feature results of the first alignment processing or the second alignment processing, using a bidirectional fusion strategy based on an attention mechanism, to obtain the target features; The sixth module is used to perform target detection based on the target features using a preset regression head, and obtain the target detection results in the target scene. The first alignment process for the camera features and the millimeter-wave radar features based on the first data distribution of the camera features includes the following steps: A third alignment process is performed on the image pixels of the camera features and the depth points of the millimeter-wave radar features using a noise filtering network. Based on the result of the third alignment process, the depth point is projected onto the front view where the camera feature is located using the attention alignment method, and the depth point is enhanced and corrected for depth. The camera feature and the millimeter-wave radar feature are aligned on the first data distribution of the camera feature. The second data distribution based on the stereo image features performs a second alignment process on the stereo image features and the millimeter-wave radar features, including the following steps: Image feature fusion is performed on the stereo image features using consecutive convolutional blocks; The pseudo-point cloud target is obtained by back-projection extraction based on the image feature fusion result. Based on the pseudo-point cloud target, the stereo image features and the millimeter-wave radar features are aligned on the second data distribution of the stereo image features.
7. An electronic device, characterized in that, Including the processor and memory; The memory is used to store programs; The processor executes the program to implement the method as described in any one of claims 1 to 5.
8. A vehicle, characterized in that, The vehicle includes the target detection device as described in claim 6 or the electronic device as described in claim 7.
Citation Information
Patent Citations
4D millimeter wave radar and visual adaptive fusion target identification system
CN118155174A
