Target detection method, device and storage medium based on radar data fusion

By synchronizing and merging millimeter-wave radar and visual sensor data, dynamically extracting areas of interest and performing target detection, the problem of missed detection and false detection in the security system is solved, and the accuracy and real-time performance of target detection are improved.

CN117689877BActive Publication Date: 2024-08-27HUNAN NOVASKY ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311759502.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-20
Publication Date
2024-08-27
Estimated Expiration
2043-12-20

AI Technical Summary

Technical Problem

Existing security alert systems have problems with missed detections and false detections in target detection. Especially when complex scenes and multi-sensor information are integrated, the real-time performance is low and the information integrity is insufficient, resulting in high false alarm and false negative rates.

Method used

By acquiring data from millimeter-wave radar and visual sensors for time and space synchronization, combining the coordinate information of radar point clouds to perform target detection on images, dynamically extracting areas of interest, and using the target detection model to generate rectangular frames for fusion and filtering, the final implementation Classification and filtering of targets.

Benefits of technology

It effectively reduces the false detection rate, improves the target detection rate, ensures real-time detection, and reduces missed detections and false detections through deep fusion of radar and image information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117689877B
    Figure CN117689877B
Patent Text Reader

Abstract

The present invention discloses a target detection method, device and storage medium based on radar visual data fusion, wherein the target detection method comprises performing time synchronization and space synchronization on a radar point cloud and an image; mapping the radar point cloud to an image coordinate system to obtain coordinate information of the radar point cloud in the image; performing target detection on the image in combination with the coordinate information of the radar point cloud in the image to obtain a first target rectangular frame; dynamically extracting an area of ​​interest from the image according to the distance, speed and coordinate information of the radar point cloud in the image; performing target detection on the area of ​​interest to obtain a second target rectangular frame; fusing the first target rectangular frame and the second target rectangular frame to obtain a fusion result; performing target classification and filtering on the fusion result to finally obtain the category, coordinate information and confidence of the target. The present invention can effectively reduce the missed detection rate and the false detection rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of target detection, and in particular relates to a target detection method, device and storage medium based on radar vision data fusion. Background Art

[0002] In recent years, sensors such as millimeter-wave radar, visible light camera, and thermal infrared camera have played an important role in the field of security. Millimeter-wave radar has the advantages of all-weather operation, high penetration, speed measurement, and distance measurement; visible light camera has the advantages of high resolution, intuitive information, and easy classification and identification; thermal infrared camera has the advantages of being less affected by lighting conditions and stealth. Although only using a single sensor of millimeter-wave radar or camera for detection can meet the use requirements of some scenes, a single sensor has certain limitations, such as the limited resolution of millimeter-wave radar, the inability to provide color information, and the limitation of target reflection characteristics. Visible light camera is greatly affected by weather and lighting conditions, and it is difficult to handle the increasingly complex perimeter / regional security monitoring needs. Millimeter-wave radar and camera sensors have a high degree of information complementarity, so the existing security alarm system usually integrates millimeter-wave radar and camera sensors to apply to different scenes and improve the performance and robustness of the system.

[0003] Millimeter-wave radar and camera sensor fusion is usually divided into data-level fusion, feature-level fusion, and decision-level fusion. Data-level fusion is the integration of raw data from different sensors into a common dataset at the sensor level; data-level fusion aims to integrate data from different sensors to provide more comprehensive environmental perception and target information, which usually includes steps such as data preprocessing, calibration, and synchronization to ensure data consistency. Data-level fusion provides the advantage of multimodal information, but the need to process large amounts of data generated by multiple sensors increases the complexity of the system, and steps such as data preprocessing, synchronization, and calibration may require complex algorithms. At the same time, since data-level fusion is usually performed at the sensor level, it is necessary to wait for data from all sensors, which may result in higher latency, so radar-level fusion has the problem of low real-time performance.

[0004] Feature-level fusion is the process of integrating information from different sensors into a feature space during the feature extraction phase. The raw data from the sensors is first converted into features, and then these features are fused. Feature-level fusion usually involves feature selection, dimensionality reduction, and combination to create a more informative feature set, which helps reduce dimensionality and computational complexity while providing fusion of multi-sensor information.

[0005] Decision-level fusion is the integration of information from different sensors into a comprehensive decision at the decision-making stage. The information from the sensors is used to make the final decision or judgment. Decision-level fusion usually includes the development of decision rules and the implementation of decision algorithms. Decision-level fusion is to achieve higher-level goals, such as target recognition, trajectory tracking, etc. For example, only the high-dimensional information detected and recognized by the radar and camera is matched and fused in the decision-making process. Although the amount of calculation is small, only the recognition results of the two sensors are simply fused in the decision-making process, which may lose some original information and cause the loss of effective information in the decision-making process. The integrity of the information of the two sensors cannot be guaranteed, and the information of the two sensors cannot be fully utilized, resulting in high false alarm and missed alarm rates when the target invades. Different sensors may have errors and uncertainties. These uncertainties may propagate in the decision-level fusion and increase the overall uncertainty of the system, which may lead to instability of the decision. In addition, decision-level fusion needs to wait for the data of different sensors and make decisions after integration, which may lead to high latency and is not suitable for applications that require real-time response.

[0006] Existing security alarm systems are prone to missed detections and false detections due to the diversity and complexity of scenes, the long distance of the target, the partial obstruction of the target, or the proximity of some interfering objects to the target shape.

[0007] For example, the patent document with application number 202210782225.1 and titled "A target detection method based on radar-visual fusion" performs strategic-level fusion on the radar-visual data after spatiotemporal calibration, and extracts motion features from the acquired fused regions of interest by constructing multiple sliding windows to further refine the mobile target detection area. Although this method can reduce missed detection of mobile targets, it relies on the construction of multiple sliding windows and requires sliding window operations on the entire image, which increases the amount of system calculations. Extracting motion features from the region of interest also requires a lot of calculations, which reduces the real-time performance of the system. At the same time, this method only considers the problem of missed detection and has no specific solution to the problem of false detection. Summary of the invention

[0008] The object of the present invention is to provide a target detection method, device and storage medium based on radar data fusion to solve the problems of missed detection and false detection in traditional target detection technology.

[0009] The present invention solves the above technical problems through the following technical solutions: a target detection method based on radar data fusion, comprising the following steps:

[0010] Obtain radar point clouds collected by millimeter-wave radar and images collected by visual sensors;

[0011] Performing time synchronization and space synchronization on the radar point cloud and the image to obtain a conversion matrix between the radar coordinate system and the image coordinate system;

[0012] Mapping the radar point cloud to the image coordinate system through the transformation matrix to obtain coordinate information of the radar point cloud in the image;

[0013] Combined with the coordinate information of the radar point cloud in the image, target detection is performed on the image to obtain N first target rectangular frames;

[0014] Dynamically extracting a region of interest from the image according to the distance and speed of the radar point cloud and the coordinate information of the radar point cloud in the image;

[0015] Performing target detection on the region of interest to obtain M second target rectangular frames;

[0016] Fusing the first target rectangular frame and the second target rectangular frame to obtain a fusion result;

[0017] The fusion result is subjected to target classification and filtering, and finally the target category, coordinate information and confidence are obtained.

[0018] Furthermore, combining the coordinate information of the radar point cloud in the image, target detection is performed on the image, specifically including:

[0019] Calling a first target detection model, wherein the first target detection model includes an input layer, a backbone network, a connection network, and a detection head output layer connected in sequence;

[0020] The first target detection model is used to perform target detection on the image, and the coordinate information of the radar point cloud in the image is input into the detection head output layer, an anchor frame is generated at the coordinates of the radar point cloud in the image, and the first target rectangular frame is generated at the anchor frame.

[0021] Further, the input layer is used to perform scaling and preprocessing on the image;

[0022] The backbone network adopts the EfficientRep network and is used to extract features from the data output by the input layer;

[0023] The connection network adopts the CSPStackRep module and is used to fuse, reduce dimension, enhance information and scale the features output by the backbone network;

[0024] The detection head output layer is used to generate a first target rectangular frame.

[0025] Furthermore, according to the distance and speed of the radar point cloud and the coordinate information of the radar point cloud in the image, the region of interest is dynamically extracted from the image, specifically including:

[0026] The region of interest is dynamically generated according to the coordinate information of the radar point cloud in the image, and the size of the region of interest is adjusted in combination with the distance and speed of the radar point cloud, and the region of interest is merged according to the distance between two radar points.

[0027] Furthermore, the region of interest is dynamically generated according to the coordinate information of the radar point cloud in the image, and the size of the region of interest is adjusted in combination with the distance and speed of the radar point cloud, and the region of interest is merged according to the distance between two radar points, specifically:

[0028] The larger the distance of the radar point cloud, the smaller the generated region of interest; the smaller the distance of the radar point cloud, the larger the generated region of interest;

[0029] The greater the speed of the radar point cloud, the larger the generated region of interest; the smaller the distance of the radar point cloud, the smaller the generated region of interest;

[0030] When the distance between two radar points is less than a distance threshold, the regions of interest corresponding to the two radar points are merged.

[0031] Further, target detection is performed on the region of interest, specifically including:

[0032] Calling a second target detection model, where the second target detection model is a lightweight target detection model;

[0033] Using the second target detection model to perform target detection on the region of interest, to obtain M target rectangular frames in the region of interest;

[0034] The M target rectangular frames in the region of interest are restored to the image to obtain M second target rectangular frames.

[0035] Further, the first target rectangular frame and the second target rectangular frame are merged using a non-maximum suppression algorithm, specifically including:

[0036] Sort the N first target rectangular boxes in descending order according to the confidence level;

[0037] Starting from the first target rectangular box with the highest confidence, for each first target rectangular box, the intersection-and-union ratio between the first target rectangular box and each second target rectangular box is calculated;

[0038] If the intersection-and-union ratio is greater than the intersection-and-union ratio threshold, the first target rectangular box is retained and the second target rectangular box corresponding to the intersection-and-union ratio is deleted; if the intersection-and-union ratio is less than or equal to the intersection-and-union ratio threshold, the first target rectangular box and the second target rectangular box corresponding to the intersection-and-union ratio are retained; thereby obtaining a fusion result.

[0039] Furthermore, the fusion result is subjected to target classification and filtering, specifically including:

[0040] Cutting out a sub-image from the image according to the fusion result;

[0041] Using a lightweight classification model to classify the sub-images into objects, and obtaining the categories of the objects;

[0042] The category of each target obtained by using the lightweight classification model is compared with the category of each target in the fusion result. If the target categories of the two are the same, the target is retained; if the target categories of the two are different, the target is deleted from the fusion result, and finally the category, coordinate information and confidence of each target are obtained.

[0043] Based on the same concept, the present invention also provides a terminal device, the terminal device comprising:

[0044] Memory for storing computer programs;

[0045] A processor is used to implement the target detection method based on radar vision data fusion as described above when executing the computer program.

[0046] Based on the same concept, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the target detection method based on radar data fusion as described above is implemented.

[0047] Beneficial Effects

[0048] Compared with the prior art, the advantages of the present invention are:

[0049] The present invention combines the coordinate information of the radar point cloud in the image when performing target detection on the image to obtain the first target rectangular frame. There is no need to generate anchor frames on all grid cells and cover the entire image. The anchor frame is generated only at the coordinates where the radar point cloud is mapped to the image, which greatly saves detection time, reduces the attention to areas of no interest (focusing on targets detected by the radar), effectively reduces the false detection rate, and deeply integrates the radar point cloud and image information to improve the target detection rate.

[0050] The present invention uses radar point cloud to generate an area of ​​interest, and then performs target detection on the area of ​​interest, which greatly reduces the amount of calculation, avoids detection in an area without moving targets, and ensures real-time calculation of detection; the first target rectangular frame is fused with the second target rectangular frame, and then the fusion result is subjected to target filtering, which avoids missed detection and further reduces the false detection rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only one embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0052] Figure 1 is a flow chart of a target detection method based on radar data fusion in an embodiment of the present invention;

[0053] Figure 2 is a framework diagram of a CSPStackRep module in an embodiment of the present invention;

[0054] Figure 3 is a flow chart of radar data fusion detection in an embodiment of the present invention;

[0055] Figure 4 It is a classification detection flow chart in an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The following is a clear and complete description of the technical solutions in the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0058] Example 1

[0059] like Figure 1 As shown, a target detection method based on radar data fusion provided by an embodiment of the present invention includes the following steps:

[0060] Step S1: Acquire the radar point cloud collected by the millimeter wave radar and the image collected by the visual sensor.

[0061] A millimeter-wave radar and a visual sensor (such as a camera) are set in the detection scene. The millimeter-wave radar collects radar point clouds of the detection scene, and the visual sensor collects images of the detection scene. The millimeter-wave radar sends the collected radar point clouds to the processor, and the visual sensor sends the collected images to the processor. The processor obtains the radar point clouds and images, and processes the radar point clouds and images in steps S2 to S8 to achieve target detection.

[0062] Step S2: Perform time synchronization and space synchronization on the radar point cloud and the image to obtain the transformation matrix between the radar coordinate system and the image coordinate system.

[0063] Since the sampling frequencies of millimeter wave radar and vision sensors are different, and the time when these two sensors start collecting data is usually different, there may be a time deviation between the acquired radar point cloud and image. Before the radar and vision data are fused, the data acquired by these two sensors need to be unified to the same time standard. Time registration is the process of selecting a reference time point and synchronizing the data of the two sensors.

[0064] The radar uses the timestamp of receiving the target reflected wave signal as the timestamp of the radar target, that is, the timestamp of the radar point cloud; the visual sensor uses the timestamp of imaging as the timestamp of the current frame of the video image. In step S2, the radar target trajectory is synchronized with the video stream, which specifically includes:

[0065] Find the radar point cloud (i.e., radar target) that is temporally closest to each frame of video image from the radar target trajectory; calculate the time difference between the timestamp of each frame of video image and the timestamp of the corresponding nearest radar point cloud; when the time difference is less than the set time threshold, update the radar point cloud according to the movement speed of the radar point cloud to achieve time synchronization between the radar target trajectory and the video stream.

[0066] Another way to implement time synchronization is: first, ensure that the timestamps of the radar and visual sensors are synchronized, that is, the radar and visual sensors operate under the same time base; then, use a multi-threaded approach to obtain the radar point cloud and the images collected by the time sensor respectively, use the radar sampling frequency as a benchmark, interpolate and extrapolate the images collected at the same time, and use the data with known timestamps and known time points to estimate the data at future time points.

[0067] The interpolation and extrapolation method is suitable for situations where the frame rates between sensors are not multiples, or the sensor frame rates are unstable. It mainly uses the timestamps on the two sensor frames to calculate the time difference, and then combines the target frame containing motion information with the time difference to calculate the position of each target in the frame, calculate the position of each target in the new frame, and create a new frame between the original two frames.

[0068] Millimeter-wave radar and visual sensors (such as cameras) are two sensors with different working principles and obtain data with great differences. Millimeter-wave radar and cameras work in different spectrum ranges, and the data collected must have large spatial differences. Therefore, before performing radar-visual fusion, the data collected by these two sensors must be unified into the same coordinate system. Spatial registration or spatial synchronization is the process of unifying the observation data obtained by different sensors into a reference coordinate system.

[0069] After completing the spatiotemporal synchronization or spatiotemporal registration of the radar and visual sensors, the transformation matrix between the radar coordinate system and the image coordinate system can be obtained. The radar point cloud can be mapped to the image coordinate system through the transformation matrix, and vice versa, the image can be mapped to the radar coordinate system through the transformation matrix.

[0070] Step S3: Map the radar point cloud to the image coordinate system through the transformation matrix to obtain the coordinate information of the radar point cloud in the image.

[0071] The radar point cloud obtains the distance information (unit: meter) and azimuth information (unit: degree) of the radar target in the radar coordinate system. The radar point cloud is converted into a point (unit: pixel) in the image coordinate system through the transformation matrix. Each radar point cloud can be converted into a point in the image coordinate system through the transformation matrix, and the point retains the distance, speed and position information (i.e., coordinate information) of the radar point cloud, that is, the coordinate information of the radar point cloud in the image synchronized with the radar point cloud in time and space is obtained.

[0072] Step S4: combining the coordinate information of the radar point cloud in the image, performing target detection on the image to obtain N first target rectangular frames.

[0073] In step S4, target detection is performed on the image (i.e., the image synchronized with the radar point cloud in time and space) in combination with the coordinate information of the radar point cloud in the image, specifically including:

[0074] Step S41: calling a first target detection model, the first target detection model includes an input layer, a backbone network, a connection network and a detection head output layer connected in sequence;

[0075] Step S42: Use the first target detection model to perform target detection on the image, and at the same time input the coordinate information of the radar point cloud in the image to the detection head output layer, generate anchor frames of different sizes and aspect ratios at the coordinates of the radar point cloud in the image, and generate a first target rectangular frame at the anchor frame.

[0076] The first target detection model (main detector) is a deep learning neural network model. In this embodiment, the deep learning neural network model adopts an improved YOLOv6. The improved YOLOv6 includes an input layer, a backbone network, a connection network and a detection head output layer connected in sequence.

[0077] The input layer is used to receive the image captured by the camera and preprocess the image into data of specified dimensions. In the specific application, the image captured by the camera is first scaled to 640×640 with its original aspect ratio, and then the image is preprocessed. The preprocessing includes but is not limited to adding Gaussian blur, converting to black and white images, image cropping and splicing, enhancing contrast and brightness, etc. At the same time, data enhancement operations are used to improve the adaptability and generalization ability of the model. Data enhancement operations include Mosaic and CutOut. Mosaic is to randomly crop, scale and splice four images into the same image, so that different objects of interest can be collaged with background images of different scenes and sent to subsequent model training to improve the generalization of the model. CutOut is to randomly crop part of the image to achieve the effect of scenes such as partial occlusion of the target. Through the two data enhancement operations of Mosaic and CutOut, the generalization ability of the model can be effectively improved.

[0078] The backbone network is used to extract features from the data output by the input layer. In specific applications, the backbone network extracts features from the image data output by the input layer through a series of convolutional layers, pooling layers, and activation functions. These features include low-level and mid-level features such as edges, textures, colors, and shapes. In this embodiment, the EfficientRep network is used as the backbone network, which uses a deeper neural network and has a stronger feature extraction capability.

[0079] The connection network is used to connect the backbone network and the output layer, and its main functions are feature fusion, feature dimension reduction, information enhancement, scale processing, etc. In this embodiment, the connection network uses the CSPStackRep module. Figure 2 As shown in the figure, the CSPStackRep module consists of three 1×1 convolutional layers, two RepVGG and two ReLU activation functions, and is connected through residuals. RepVGG is a deep convolutional neural network architecture that reduces the number of model parameters and improves computational efficiency by using repeated structural blocks; ReLU activation function refers to the rectified linear unit, which is a commonly used deep learning activation function. In addition, the use of CSP connection improves performance without increasing computational costs. CSP is a deep neural network architecture that improves information flow and feature extraction efficiency by cross-stage partial connections, thereby improving model performance.

[0080] The output layer of the detection head is used to generate the final target rectangular box or target box. It usually contains two subnetworks, one for target classification and the other for target bounding box regression. The output of the detection head output layer includes the target category, confidence and location information. In specific applications, the output layer of the detection head uses anchor boxes to define predefined bounding boxes (i.e., target rectangular boxes) of potential target positions and sizes. Anchor boxes are defined based on prior knowledge and the characteristics of a specific data set. Anchor boxes are used to assume the position and size range of targets that may appear in an image. Usually, anchor boxes include rectangular boxes of different widths and heights. Target detection requires detecting targets at different scales. To this end, anchor boxes of multiple scales and aspect ratios can be defined, which helps detect targets of different scales, from small objects to large objects. Anchor box generation is usually generated at different locations (e.g., different grid cells) in the image to cover the entire image. These generated anchor boxes usually correspond to pixel positions on the feature map of the image.

[0081] The improvement of the present invention is that anchor frames of different aspect ratios and sizes are generated at the coordinates of the radar point cloud in the image, and several anchor frames are generated at the coordinates of each radar point cloud in the image. Only a small number of anchor frames are generated, and there is no need to generate anchor frames on all grid cells and cover the entire image, which can save a lot of time, deeply integrate radar and image information, and improve the target detection rate of the first target detection model. At the same time, since anchor frames are only generated at the coordinates of the radar point cloud in the image, the attention of uninterested areas (i.e., non-target areas) is reduced, which can effectively reduce false detection phenomena.

[0082] The first target rectangular frame extracted by the first target detection model is a common movable target that may invade, such as a person, a car, a small animal, or a drone, in a detection scenario (such as perimeter warning or security warning).

[0083] Due to the diversity and complexity of detection scenarios (such as security alert scenarios), only using the first target detection model to detect images is prone to a large number of false detections and missed detections. Therefore, it is necessary to fuse radar point cloud data with image data to improve the adaptability of the security alert system in different scenarios. Figure 3 The figure shows the flow chart of radar data fusion detection, corresponding to steps S5 to S7.

[0084] Step S5: dynamically extracting the region of interest from the image according to the distance and speed of the radar point cloud and the coordinate information of the radar point cloud in the image.

[0085] The region of interest is dynamically generated according to the coordinate information of the radar point cloud in the image, and the size of the region of interest is adjusted in combination with the distance and speed of the radar point cloud, and the region of interest is merged according to the distance between two radar points. Specifically:

[0086] When the distance of the radar point cloud (i.e. the distance between the target and the radar device) is farther, the corresponding target occupies fewer pixels in the image, and the corresponding generated region of interest is smaller; when the distance of the radar point cloud (i.e. the distance between the target and the radar device) is closer, the corresponding target occupies more pixels in the image, and the corresponding generated region of interest is larger. When the speed of the radar point cloud is faster, the corresponding target moves in the image. The larger the corresponding generated region of interest is; when the speed of the radar point cloud is slower, the corresponding target moves in the image. The smaller the corresponding generated region of interest is smaller. At the same time, for relatively close radar points (i.e. two targets with a short distance), the regions of interest generated by the two can be merged to reduce the amount of calculation for cutting and subsequent detection, that is, when the distance between two radar points is less than the set distance threshold, the regions of interest corresponding to the two radar points are merged. The radar point cloud is a collection of all radar points, and one radar point corresponds to one target.

[0087] It should be noted that the field of view of the radar and camera may be different, so it is possible that the radar point cloud is mapped outside the camera field of view or there is no radar point cloud mapping at the edge of the camera field of view. In this case, no corresponding region of interest is generated.

[0088] The region of interest is dynamically generated from the image according to the coordinate information of the radar point cloud in the image, which can make full use of the distance, direction, speed and other information of the radar point cloud. At the same time, it can ensure that redundant regions of interest are not generated for detection in areas without targets, further reducing the amount of calculation.

[0089] Step S6: Perform target detection on the region of interest to obtain M second target rectangular frames.

[0090] In step S6, target detection is performed on the region of interest, specifically including:

[0091] Step S61: calling a second target detection model, where the second target detection model is a lightweight target detection model;

[0092] Step S62: using the second target detection model to perform target detection on the region of interest, and obtaining M target rectangular frames in the region of interest;

[0093] Step S63: restore the M target rectangular frames in the region of interest to the image to obtain M second target rectangular frames.

[0094] In this embodiment, the second target detection model (secondary detector) adopts the YOLOv6Lite lightweight model, and its input size is modified to 320×320, the model parameter amount is 0.55M, and the calculation amount is 0.56G FLOPs, so that real-time calculation can be guaranteed when the number of radar point clouds is large.

[0095] Since the second target rectangular frame is extracted from the region of interest, it is necessary to restore the target rectangular frame in the region of interest to the image. In this embodiment, it is assumed that the coordinate information of the radar point cloud in the image is (x roi ,y roi ), assuming that there are M targets detected in the region of interest, and their coordinates in the region of interest are (x1,y1),(x2,y2),…,(x M ,y M ), the restored coordinates are

[0096] Step S7: Fusing the first target rectangular frame obtained in step S4 and the second target rectangular frame obtained in step S6 to obtain a fusion result.

[0097] Since the first target rectangular frame and the restored second target rectangular frame are bound to be repeated, it is necessary to merge the first target rectangular frame and the second target rectangular frame to remove the repeated area. In this embodiment, a non-maximum suppression algorithm is used to merge the first target rectangular frame and the second target rectangular frame, which specifically includes:

[0098] Step S71: sorting the N first target rectangular boxes in descending order according to the confidence level;

[0099] Step S72: starting from the first target rectangular frame with the highest confidence, for each first target rectangular frame, calculating the intersection-over-union ratio between the first target rectangular frame and each second target rectangular frame;

[0100] Step S73: If the IoU ratio is greater than the IoU ratio threshold, the first target rectangular frame is retained and the second target rectangular frame corresponding to the IoU ratio is deleted; if the IoU ratio is less than or equal to the IoU ratio threshold, the first target rectangular frame and the second target rectangular frame corresponding to the IoU ratio are retained; thereby obtaining a fusion result.

[0101] Non-maximum suppression is mainly used to eliminate redundant target rectangles and ensure that each target is associated with only one target rectangle to improve the accuracy and interpretability of the detection results. Object detection generates a score for each generated target rectangle, which indicates the confidence of whether the target rectangle contains the target. Generally, target rectangles with higher scores are more likely to contain targets. The non-maximum suppression algorithm sorts the generated target rectangles from high to low according to their confidence; then, starting with the target rectangle with the highest score, the target rectangle is added to the final screening list, and other target rectangles with high overlap (IoU, intersection over union) with the target rectangle are removed until all target rectangles have completed this process. The performance of the non-maximum suppression algorithm can be controlled by setting an IoU threshold. The removal operation is performed only when the IoU between two target rectangles is greater than the IoU threshold. After non-maximum suppression processing, only a set of non-maximum suppressed target bounding boxes remains, which is the final fusion result.

[0102] Step S8: classify and filter the fusion result obtained in step S7, and finally obtain the target category, image coordinate information and confidence.

[0103] In step S8, the fusion results are classified and filtered. Figure 4 As shown, specifically including:

[0104] Step S81: extracting a sub-image from the image according to the fusion result, that is, extracting the image within the target rectangular frame from the image to obtain a sub-image;

[0105] Step S82: using a lightweight classification model to classify the sub-images to obtain the categories of each target;

[0106] Step S83: Compare the category of each target obtained by using the lightweight classification model with the category of each target in the fusion result. If the target categories of the two are the same, the target is retained; if the target categories of the two are different, the target is deleted from the fusion result to avoid false detection, and finally the category, image coordinate information and confidence of each target are obtained.

[0107] In the security alarm system, due to the diversity and complexity of application scenarios, image areas similar to the shapes of the targets of interest may appear. Common intrusion target types are movable targets such as people, cars, cats, dogs, etc., and since the security alarm system may be deployed in various scenarios, interference such as wind-blown branches, birds, and roadblocks may cause radar false alarms and video misdetections, resulting in misdetections. At the same time, the real intrusion target is also prone to misdetection when it is partially blocked. In the previous steps, the detection rate of small targets was improved due to the adoption of radar-visual data-level fusion, but the lightweight secondary detector (second target detection model) may cause certain misdetections due to its own network depth limitations. Therefore, samples of different interference and occlusion targets can be collected, and the lightweight classification model can be trained with the original target samples of interest. The fusion results generated in step S7 are reclassified, which can effectively reduce the misdetection phenomenon.

[0108] Since the classification task is relatively simple compared to the detection task, and the number of classification categories required for security scenarios is not large, a lightweight classification model can achieve a higher classification accuracy. At the same time, the use of a lightweight classification model can minimize the computational burden of the entire system and improve real-time performance.

[0109] In this embodiment, the lightweight classification model adopts the shuffleNetV2 network. ShuffleNetV2 is a lightweight convolutional neural network architecture that achieves efficient image classification under limited computing resources. ShuffleNetV2 uses a grouped convolution strategy to divide the input channels of the convolution layer into multiple groups, and then performs convolution operations on each group. This design reduces computational complexity and the number of parameters while maintaining high model performance. ShuffleNetV2 introduces the operation of channel rearrangement to facilitate information exchange between different groups. Channel rearrangement rearranges the input channels to increase the flow of information between groups and improves the representation ability of the network. The basic building block of ShuffleNetV2 is the ShuffleNet block, which includes grouped convolution, channel rearrangement, and point-by-point channel-by-channel activation functions. These ShuffleNet blocks are stacked repeatedly to build a network.

[0110] ShuffleNetV2 is designed for lightweight and computationally limited environments, using efficient depth-wise separable convolutions, point-by-point channel-by-channel convolutions, and reducing the number of groups to reduce the computational complexity of the network.

[0111] Due to the existence of lightweight sub-detectors and lightweight classification models, a lower filtering threshold can be set, that is, more candidate boxes can be output, thereby further improving the detection rate of small and difficult targets.

[0112] The present invention makes full use of the inherent advantages of millimeter-wave radar and camera to fuse radar point cloud and image at data level; utilizes the complementarity of information obtained by two sensors to make up for the performance defects of a single sensor; in the detection head output layer of the main detector, the radar point cloud is mapped to the coordinates on the image to generate anchor frames of different aspect ratios and sizes, which can effectively improve the detection speed, reduce the interference of irrelevant information, and reduce the problem of missed detection; the radar point cloud data is mapped to the image, and combined with the distance, azimuth, speed and other information of the radar point cloud, a lightweight secondary detector is used to complete the data-level radar-vision fusion, thereby reducing the missed detection phenomenon of the security alarm system; the detected targets are reclassified by a lightweight classifier, effectively reducing the false detection phenomenon of the security alarm system.

[0113] Example 2

[0114] An embodiment of the present invention further provides a terminal device, which includes: a processor and a memory storing a computer program, wherein the processor is configured to implement the target detection method based on radar data fusion as described above when executing the computer program.

[0115] Although not shown, the terminal device includes a processor, which can perform various appropriate operations and processes according to the program and / or data stored in a read-only memory (ROM) or the program and / or data loaded from the storage part into a random access memory (RAM). The processor can be a multi-core processor or can include multiple processors. In some embodiments, the processor can include a general main processor and one or more special coprocessors, such as a central processing unit, a graphics processing unit (GPU), a neural network processor (NPU), a digital signal processor (DSP), etc. In RAM, various programs and data required for the operation of the terminal device are also stored. The processor, ROM and RAM are connected to each other via a bus. The input / output (I / O) interface is also connected to the bus.

[0116] The processor and the memory are used together to execute the program stored in the memory. When the program is executed by the computer, the methods, steps or functions described in the above embodiments can be implemented.

[0117] Although not shown, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the target detection method based on radar data fusion as described above is implemented.

[0118] Storage media in embodiments of the present invention include permanent and non-permanent, removable and non-removable items that can be implemented by any method or technology to store information. Examples of storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

[0119] This invention is funded by the Hunan Science and Technology Innovation Program, Project No. 2023RC3230.

[0120] What is disclosed above is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or modifications within the technical scope disclosed in the present invention, which should be covered within the protection scope of the present invention.

Claims

1. A target detection method based on radar data fusion, characterized in that: The target detection method comprises the following steps: Acquire radar point clouds collected by millimeter-wave radar and images collected by visual sensors; Performing time synchronization and space synchronization on the radar point cloud and the image to obtain a conversion matrix between the radar coordinate system and the image coordinate system; Mapping the radar point cloud to the image coordinate system through the transformation matrix to obtain coordinate information of the radar point cloud in the image; Combined with the coordinate information of the radar point cloud in the image, target detection is performed on the image to obtain N first target rectangular frames; Dynamically extracting a region of interest from the image according to the distance and speed of the radar point cloud and the coordinate information of the radar point cloud in the image; Performing target detection on the region of interest to obtain M second target rectangular frames; Fusing the first target rectangular frame and the second target rectangular frame to obtain a fusion result; Performing target classification and filtering on the fusion results, and finally obtaining the target category, coordinate information and confidence level; The step of performing target detection on the image in combination with the coordinate information of the radar point cloud in the image specifically includes: Calling a first target detection model, wherein the first target detection model includes an input layer, a backbone network, a connection network, and a detection head output layer connected in sequence; Performing target detection on the image using the first target detection model, inputting coordinate information of the radar point cloud in the image into the detection head output layer, generating an anchor frame at the coordinates of the radar point cloud in the image, and generating the first target rectangular frame at the anchor frame; The method of dynamically extracting an area of ​​interest from the image according to the distance and speed of the radar point cloud and the coordinate information of the radar point cloud in the image specifically includes: Dynamically generate the region of interest based on the coordinate information of the radar point cloud in the image, adjust the size of the region of interest based on the distance and speed of the radar point cloud, and merge the regions of interest based on the distance between two radar points; The target detection is performed on the region of interest, specifically including: Calling a second target detection model, where the second target detection model is a lightweight target detection model; Using the second target detection model to perform target detection on the region of interest, to obtain M target rectangular frames in the region of interest; The M target rectangular frames in the region of interest are restored to the image to obtain M second target rectangular frames.

2. The target detection method based on radar data fusion according to claim 1 is characterized in that: The input layer is used to perform scaling and preprocessing on the image; The backbone network adopts the EfficientRep network and is used to extract features from the data output by the input layer; The connection network adopts the CSPStackRep module and is used to fuse, reduce dimension, enhance information and scale the features output by the backbone network; The detection head output layer is used to generate a first target rectangular frame.

3. The target detection method based on radar data fusion according to claim 1 is characterized in that: The region of interest is dynamically generated according to the coordinate information of the radar point cloud in the image, and the size of the region of interest is adjusted in combination with the distance and speed of the radar point cloud, and the region of interest is merged according to the distance between two radar points. Specifically: The larger the distance of the radar point cloud, the smaller the generated region of interest; the smaller the distance of the radar point cloud, the larger the generated region of interest; The greater the speed of the radar point cloud, the larger the generated region of interest; The smaller the distance of the radar point cloud, the smaller the generated region of interest; When the distance between two radar points is less than a distance threshold, the regions of interest corresponding to the two radar points are merged.

4. The target detection method based on radar data fusion according to claim 1, characterized in that: The first target rectangular frame and the second target rectangular frame are merged by using a non-maximum suppression algorithm, specifically including: Sort the N first target rectangular boxes in descending order according to the confidence level; Starting from the first target rectangular box with the highest confidence, for each first target rectangular box, the intersection-and-union ratio between the first target rectangular box and each second target rectangular box is calculated; If the intersection-and-union ratio is greater than the intersection-and-union ratio threshold, the first target rectangular box is retained and the second target rectangular box corresponding to the intersection-and-union ratio is deleted; if the intersection-and-union ratio is less than or equal to the intersection-and-union ratio threshold, the first target rectangular box and the second target rectangular box corresponding to the intersection-and-union ratio are retained; thereby obtaining a fusion result.

5. The target detection method based on radar data fusion according to any one of claims 1 to 4, characterized in that: The fusion result is subjected to target classification and filtering, specifically including: Cutting out a sub-image from the image according to the fusion result; Using a lightweight classification model to classify the sub-images into objects, and obtaining the categories of the objects; The category of each target obtained by using the lightweight classification model is compared with the category of each target in the fusion result. If the target categories of the two are the same, the target is retained; if the target categories of the two are different, the target is deleted from the fusion result, and finally the category, coordinate information and confidence of each target are obtained.

6. A terminal device, characterized in that: The terminal device comprises: Memory for storing computer programs; A processor, configured to implement the target detection method based on radar data fusion as described in any one of claims 1 to 5 when executing the computer program.

7. 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 based on radar data fusion as described in any one of claims 1 to 5 is implemented.