Multi-stage vehicle detection method based on image and millimeter wave radar data fusion

By adopting a multi-stage approach in vehicle detection and utilizing the fusion of images and millimeter-wave radar data to verify and correct visual detection results, the problems of high computational cost and complexity in the existing technology are solved and more accurate and efficient are achieved. Vehicle detection.

CN118747874APending Publication Date: 2024-10-08SICHUAN TIANFU NEW DISTRICT BEIJING INST OF TECH INNOVATION EQUIP RES INST
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410723653.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Existing vehicle detection methods suffer from high computational costs and algorithm complexity, and cannot meet real-time processing requirements, especially when fusing millimeter-wave radar and visual data.

Method used

A multi-stage vehicle detection method based on images and millimeter-wave radar data is used to detect object candidate areas through image data, use radar data to verify and correct visual detection results, and only perform repeated calculations on sub-areas that may have problems, reducing computational costs and complexity Spend.

Benefits of technology

It improves the accuracy and real-time performance of vehicle detection, solves the problems of high computational cost and algorithm complexity, and achieves more efficient vehicle detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747874A_ABST
    Figure CN118747874A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-stage vehicle detection method based on image and millimeter wave radar data fusion, and relates to the technical field of vehicle recognized.The method comprises the steps that firstly, an object candidate area, namely a visual detection result, is detected based on image data; then, whether a visual detection result has a problem or not is judged based on combination of radar point cloud data projection and the visual detection result, then only a false detection result possibly having the problem is calculated, and then a correct detection result and the false detection result are fused to obtain a more accurate fusion result; the problems that when an existing vehicle detection method is used, the calculation cost is high, the algorithm complexity is large, and the real-time processing requirement cannot be met are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle identification, and in particular to a multi-stage vehicle detection method based on image and millimeter wave radar data fusion. Background Art

[0002] As an important part of intelligent connected vehicle-road collaboration, roadside perception plays an important role in the intelligent connected vehicle system. Currently, commonly used single perception devices include cameras, millimeter-wave radars, and lidars, each of which has its own advantages and disadvantages: cameras can capture the semantic information of the scene very well, but are greatly affected by weather and environment; millimeter-wave radars can accurately detect the location, speed and other information of the target and will not be affected by weather and light, but they are prone to miss static targets and have more target noise; lidars can accurately detect the location and speed of static and moving targets, but they are highly sensitive to the environment and are easily affected by the environment.

[0003] At present, mainstream roadside perception systems usually use machine vision technology to detect passing vehicles. However, due to the height restrictions of camera equipment installation and the limited viewing angle of the camera equipment, the entire body of some vehicles cannot be fully captured, which may affect the detection of these obscured vehicles. In order to solve this problem, the data collected by sensors such as cameras, millimeter-wave radars, and lidars are generally fused and combined with roadside edge computing to finally detect passing vehicles.

[0004] The fusion strategies of radar and vision can be divided into three categories: data layer fusion, feature layer fusion, and decision layer fusion. The core idea of ​​data layer fusion is to generate candidate regions of target objects from data of one sensor, and then verify them on data of another sensor. This is equivalent to fusing the decision of one sensor with the data of another sensor. Compared with data layer fusion, feature layer fusion is more basic and more conducive to the neural network to learn the complementarity between different sensors, but the complexity of algorithm design is also relatively high. The general practice is to map point cloud data to the image coordinate system to form a "point cloud image" similar to the camera image. The point cloud image and the camera image are in the same coordinate system, so they can be easily fused through the neural network. The fusion of the decision layer is actually to process radar and image data separately and fuse the detection results obtained from the two data. In this process, matching the results from different sensors is a very critical step. Traditional methods generally directly calculate the similarity and match through the output of object detection, such as category, position, size, etc.

[0005] In the data layer fusion solution, there are currently two solutions:

[0006] The first solution is to use the location where the point cloud data is mapped to the image coordinate system as the object candidate area, and then generate various shape areas where the object may exist, namely anchor boxes, and finally verify whether there is actually an object in the area based on visual technology, and finally output the object area that has passed the verification. This solution is based on the point cloud data detection results to determine whether there is actually an object at the location, but the point cloud data may have missed detection problems, so this solution cannot complete vehicle detection very well.

[0007] The second solution is to generate predicted object candidate regions based on point cloud data target detection technology and image data target detection technology respectively, and then aggregate and verify the two predicted candidate regions based on machine learning methods, and finally output the object region that has passed the verification. This solution detects object candidate regions based on point cloud data and image data at the same time, which will cause the problem of redundant calculation. Therefore, it has the problem of high calculation cost, large algorithm complexity, and cannot meet the requirements of real-time processing.

[0008] In the invention with application number: 202310042195.5 and publication number CN116363623B, a vehicle detection method based on millimeter-wave radar and visual fusion is disclosed. It detects vehicles in image data, mixes data of urban roads with clear light and urban roads at night, fuses millimeter-wave radar data with visual data, and obtains a real-time traffic scene vehicle and pedestrian detection model through training, thereby completing vehicle detection. However, when it is used, it still has the problem of high computational cost, large algorithm complexity, and cannot meet the requirements of real-time processing. Summary of the invention

[0009] Based on this, in order to solve the above problems, the present invention proposes a multi-stage vehicle detection method based on the fusion of image and millimeter-wave radar data. By adopting a multi-stage object detection method, the candidate object area is first detected based on the image data, and then it is judged whether there is a problem with the image data detection result based on the radar data. Finally, only the sub-area data that may have problems is repeatedly calculated. This solves the problem that the current vehicle detection method has high computational cost and large algorithm complexity when in use, and cannot meet the real-time processing requirements.

[0010] The technical solution of the present invention is:

[0011] The multi-stage vehicle detection method based on image and millimeter wave radar data fusion includes the following steps:

[0012] S1: Input the image data into the target detection model 1, extract the image features in the image data through the encoder network, and predict the category and position of the target detection frame based on the extracted image features to obtain the position of the visual detection frame, that is, the visual detection result;

[0013] S2: The radar-camera joint calibration method is used to obtain the transformation matrix from the radar coordinate system to the camera coordinate system, and then the radar point cloud data is projected into the image coordinate system based on the transformation matrix to obtain the projection coordinates of the radar point cloud data in the image coordinate system;

[0014] S3: Match the visual detection frame and the projection coordinates of the radar point cloud data in the image coordinate system, calculate whether the projection coordinates of each radar point cloud data are contained in the visual detection frame, and determine whether the visual detection result is a correct detection result or a false detection result according to the judgment condition;

[0015] S4: extracting the object area for correction according to the false detection result;

[0016] S5: After splicing the image data corresponding to the extracted area, the radar point cloud data and the image features extracted by the encoder network, the data are input into the target detection model 2 to obtain the correction result;

[0017] S6: After removing the false detection results, the visual detection results of the target detection model one are fused with the correction results of the target detection model two to obtain the final fusion result, that is, the correct detection results of the target detection model one and the correction results of the target model two are fused to obtain the final fusion result.

[0018] Preferably, the target detection model 1 adopts the YOLO target detection model, the encoder network adopts the CNN convolutional neural network, the input data of the target detection model 1 is image data, and the number of input channels of the target detection model 1 is 3 channels, namely, the image RGB channels.

[0019] Preferably, step S1 comprises the following steps:

[0020] S11: Divide the input image data into an S×S grid;

[0021] S12: For each grid, predict the categories and positions of multiple detection boxes;

[0022] For each grid, a CNN convolutional neural network is used to predict multiple detection boxes, each of which includes 4 coordinate values ​​(x, y, w, h) and 1 confidence score;

[0023] Among them, x, y represent the center of the detection box, w, h represent the width and height of the detection box respectively, and the confidence score represents the credibility of the detection box. The confidence score ranges from 0 to 1. The larger the confidence score, the higher the credibility of the detection box.

[0024] Specifically, the object detection model 1 first uses the CNN convolutional neural network to extract image features from the image data, and then uses the fully connected layer to obtain the categories and positions of multiple detection boxes corresponding to each grid;

[0025] S13: Use non-maximum suppression (NMS) to delete redundant detection boxes, and obtain the category and position of the target detection box, that is, the position of the visual detection box, that is, the visual detection result;

[0026] Select the detection frame with the highest confidence score, calculate the overlapping area between it and the remaining detection frames, and use the IOU indicator to measure the size of the overlapping area, that is, calculate the ratio of the overlapping area of ​​the two detection frames to the area after the two detection frames are merged. The calculation formula is as follows:

[0027]

[0028] Among them, B represents the area of ​​the overlapping area of ​​the two detection frames, A and B represent the area of ​​the non-overlapping area of ​​the two detection frames, and A+B+C represents the area of ​​the area after the two detection frames are merged;

[0029] Then delete the detection frames whose IOU index values ​​are greater than the threshold, and repeat this step until the remaining detection frames are processed, and finally obtain the category and position of the target detection frame, that is, the position of the visual detection frame, that is, the visual detection result.

[0030] Preferably, step S2 specifically comprises:

[0031] Ten sets of pixel-longitude and latitude matching pairs are collected, and then the coordinate system transformation matrix is ​​obtained through geometric transformation fitting. For any collected longitude and latitude coordinates [lon, lat], a 2*2 matrix can be used to transform to another vector space to obtain the corresponding pixel coordinates [o x , o y ], by collecting pixel-longitude and latitude matching pairs, the transformation matrix of the two coordinate systems can be calculated. The transformation matrix is ​​shown as follows:

[0032]

[0033] Transform the transformation matrix into an expression form as shown below:

[0034] o x =a*lon+b*lat

[0035] o v =c*lon+d*lat

[0036] Among them, a, b, c, d are the four matrix values ​​that need to be obtained by the conversion matrix. The values ​​of a, b, c, d can be obtained through 4 sets of pixel-latitude and longitude matching pairs;

[0037] Then, the radar point cloud data is projected into the image coordinate system based on the transformation matrix to obtain the projection coordinates of the radar point cloud data in the image coordinate system.

[0038] Preferably, in step S2, using 10 sets of pixel-longitude and latitude matching pairs can make the calculated transformation matrix closer to the real transformation matrix.

[0039] Preferably, the judgment condition in step S3 is as follows:

[0040] Set the coordinates of the upper left corner of the visual detection box to (x1, y1), the coordinates of the lower right corner to (x2, y2), and the projection coordinates of the radar point cloud to (x3, y3). If x1<x3<x2 and y1<y3<y2, the radar point cloud is determined to be contained in the visual detection box and the match is considered successful.

[0041] Preferably, in step S3, when the number of projection coordinates of the visual detection box and the radar point cloud data is the same, and the visual detection box successfully matches the projection coordinates of only one radar point cloud data, the visual detection result is regarded as a correct detection result;

[0042] Since the projection coordinates of the visual detection box and the radar point cloud data represent the detection of the target in the image data and radar data respectively, there may be a problem with the number of inconsistencies between the two. When the number of inconsistencies between the two occurs, it is considered that there may be a problem with the visual detection result of the area, which can be divided into the following two situations:

[0043] Case 1: The visual detection frame successfully matches the projection coordinates of more than one radar point cloud data;

[0044] The second case: the projection coordinates of the radar point cloud data do not match the visual detection frame successfully;

[0045] When these two situations occur, it is believed that there may be a problem of missed detection in the visual inspection result, and the visual inspection result is regarded as a false detection result.

[0046] Preferably, step S4 is specifically:

[0047] In the first case, the region is extracted based on the position of the visual detection box;

[0048] In the second case, the region is extracted based on the position of the radar point cloud projection;

[0049] The height of the predefined object is 3 meters and the width is 2 meters. Based on the transformation matrix of the two coordinate systems, the extraction area in the image coordinate system can be obtained.

[0050] Preferably, the target detection model 2 adopts the YOLO target detection model, the encoder network adopts the CNN convolutional neural network, the input data of the target detection model 2 is image data, radar point cloud data and image feature data extracted by the encoder network, and the number of input channels of the target detection model 2 is 260 channels, wherein the number of channels for extracting image features by the encoder network is 256 channels, the number of channels for image data is 3 channels, and the number of channels for radar point cloud data is 1 channel.

[0051] Preferably, step S6 specifically comprises:

[0052] The visual detection results of target detection model 1 are removed from the false detection results and fused with the correction results of target detection model 2 to obtain the final fusion result, that is, the correct detection results of target detection model 1 and the correction results of target model 2 are fused to obtain the final fusion result. The expression is as follows:

[0053] Fusion result = visual detection result - false detection result + correction result Fusion result = correct detection result + correction result

[0054] Among them, the visual detection result of the target detection model 1 minus the false detection result is the correct detection result.

[0055] Compared with the prior art, the present invention has the following beneficial effects:

[0056] The present invention inputs image data into a target detection model 1, extracts image features in the image data through an encoder network, predicts the category and position of a target detection frame based on the extracted image features, obtains the position of a visual detection frame, i.e., a visual detection result, and then obtains a conversion matrix from a radar coordinate system to a camera coordinate system through a radar-camera joint calibration method, and then projects radar point cloud data into an image coordinate system based on the conversion matrix to obtain the projection coordinates of the radar point cloud data in the image coordinate system, and then matches the projection coordinates of the visual detection frame and the radar point cloud data in the image coordinate system, calculates whether the projection coordinates of each radar point cloud data are contained in the visual detection frame, and determines whether the visual detection result is a correct detection result or a false detection result according to a judgment condition, and then extracts the object area for correction for the false detection result, and then splices the image data corresponding to the extracted area, the radar point cloud data, and the image features extracted by the encoder network, and then inputs the target detection model 2 to obtain a correction result, and then removes the false detection result from the visual detection result of the target detection model 1 and fuses it with the correction result of the target detection model 2 to obtain a final fusion result, that is, the correct detection result of the target detection model 1 and the correction result of the target model 2 are fused to obtain the final fusion result.

[0057] The present invention first detects the candidate area of ​​the object based on the image data, that is, the visual detection result, and then judges whether there is a problem with the visual detection result based on the combination of radar point cloud data projection and the visual detection result, and then only calculates the false detection results that may have problems, and then fuses the correct detection result and the false detection result to obtain a more accurate fusion result, which solves the problem that the current vehicle detection method has high calculation cost and large algorithm complexity when in use, and cannot meet the real-time processing requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 Schematic diagram of the algorithm framework structure of the multi-stage vehicle detection method based on image and millimeter wave radar data fusion described in an embodiment of the present invention;

[0059] Figure 2 is a schematic diagram of an algorithm flow of a multi-stage vehicle detection method based on image and millimeter-wave radar data fusion described in an embodiment of the present invention;

[0060] Figure 3 is a schematic diagram of the structure of the visual misdetection result correction described in an embodiment of the present invention;

[0061] Figure 4 is a schematic diagram of the structure of the YOLO network described in an embodiment of the present invention;

[0062] Figure 5 It is a structural diagram of the IOU indicator described in an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0064] Embodiment 1:

[0065] like Figure 1 to Figure 2 As shown, this embodiment discloses a multi-stage vehicle detection method based on image and millimeter wave radar data fusion, comprising the following steps:

[0066] S1: Input the image data into the target detection model 1, extract the image features in the image data through the encoder network, and predict the category and position of the target detection frame based on the extracted image features to obtain the position of the visual detection frame, that is, the visual detection result;

[0067] S2: The radar-camera joint calibration method is used to obtain the transformation matrix from the radar coordinate system to the camera coordinate system, and then the radar point cloud data is projected into the image coordinate system based on the transformation matrix to obtain the projection coordinates of the radar point cloud data in the image coordinate system;

[0068] S3: Match the visual detection frame and the projection coordinates of the radar point cloud data in the image coordinate system, calculate whether the projection coordinates of each radar point cloud data are contained in the visual detection frame, and determine whether the visual detection result is a correct detection result or a false detection result according to the judgment condition;

[0069] S4: extracting the object area for correction according to the false detection result;

[0070] S5: After splicing the image data corresponding to the extracted area, the radar point cloud data and the image features extracted by the encoder network, the data are input into the target detection model 2 to obtain the correction result;

[0071] S6: After removing the false detection results, the visual detection results of the target detection model one are fused with the correction results of the target detection model two to obtain the final fusion result, that is, the correct detection results of the target detection model one and the correction results of the target model two are fused to obtain the final fusion result.

[0072] The present invention inputs image data into a target detection model 1, extracts image features in the image data through an encoder network, predicts the category and position of a target detection frame based on the extracted image features, obtains the position of a visual detection frame, i.e., a visual detection result, and then obtains a conversion matrix from a radar coordinate system to a camera coordinate system through a radar-camera joint calibration method, and then projects radar point cloud data into an image coordinate system based on the conversion matrix to obtain the projection coordinates of the radar point cloud data in the image coordinate system, and then matches the projection coordinates of the visual detection frame and the radar point cloud data in the image coordinate system, calculates whether the projection coordinates of each radar point cloud data are contained in the visual detection frame, and determines whether the visual detection result is a correct detection result or a false detection result according to a judgment condition, and then extracts the object area for correction for the false detection result, and then splices the image data corresponding to the extracted area, the radar point cloud data, and the image features extracted by the encoder network, and then inputs the target detection model 2 to obtain a correction result, and then removes the false detection result from the visual detection result of the target detection model 1 and fuses it with the correction result of the target detection model 2 to obtain a final fusion result, that is, the correct detection result of the target detection model 1 and the correction result of the target model 2 are fused to obtain the final fusion result.

[0073] The present invention first detects the candidate area of ​​the object based on the image data, that is, the visual detection result, and then judges whether there is a problem with the visual detection result based on the combination of radar point cloud data projection and the visual detection result, and then only calculates the false detection results that may have problems, and then fuses the correct detection result and the false detection result to obtain a more accurate fusion result, which solves the problem that the current vehicle detection method has high calculation cost and large algorithm complexity when in use, and cannot meet the real-time processing requirements.

[0074] Preferably, the target detection model 1 adopts the YOLO target detection model, the encoder network adopts the CNN convolutional neural network, the input data of the target detection model 1 is image data, and the number of input channels of the target detection model 1 is 3 channels, namely, the image RGB channels.

[0075] Preferably, step S1 comprises the following steps:

[0076] S11: Divide the input image data into an S×S grid;

[0077] S12: For each grid, predict the categories and positions of multiple detection boxes;

[0078] For each grid, a CNN convolutional neural network is used to predict multiple detection boxes, each of which includes 4 coordinate values ​​(x, y, w, h) and 1 confidence score;

[0079] Among them, x, y represent the center of the detection box, w, h represent the width and height of the detection box respectively, and the confidence score represents the credibility of the detection box. The confidence score ranges from 0 to 1. The larger the confidence score, the higher the credibility of the detection box.

[0080] Specifically, the object detection model 1 first uses the CNN convolutional neural network to extract image features from the image data, and then uses the fully connected layer to obtain the categories and positions of multiple detection boxes corresponding to each grid;

[0081] S13: Use non-maximum suppression (NMS) to delete redundant detection boxes, and obtain the category and position of the target detection box, that is, the position of the visual detection box, that is, the visual detection result;

[0082] Select the detection frame with the highest confidence score, calculate the overlapping area between it and the remaining detection frames, and use the IOU indicator to measure the size of the overlapping area, that is, calculate the ratio of the overlapping area of ​​the two detection frames to the area after the two detection frames are merged. The calculation formula is as follows:

[0083]

[0084] Among them, B represents the area of ​​the overlapping area of ​​the two detection frames, A and B represent the area of ​​the non-overlapping area of ​​the two detection frames, and A+B+C represents the area of ​​the area after the two detection frames are merged;

[0085] Then delete the detection frames whose IOU index values ​​are greater than the threshold, and repeat this step until the remaining detection frames are processed, and finally obtain the category and position of the target detection frame, that is, the position of the visual detection frame, that is, the visual detection result.

[0086] Preferably, step S2 specifically comprises:

[0087] Ten sets of pixel-longitude and latitude matching pairs are collected, and then the coordinate system transformation matrix is ​​obtained through geometric transformation fitting. For any collected longitude and latitude coordinates [lon, lat], a 2*2 matrix can be used to transform to another vector space to obtain the corresponding pixel coordinates [o x , o y ], by collecting pixel-longitude and latitude matching pairs, the transformation matrix of the two coordinate systems can be calculated. The transformation matrix is ​​shown as follows:

[0088]

[0089] Transform the transformation matrix into an expression form as shown below:

[0090] o x =a*lon+b*lat

[0091] o v =c*lon+d*lat

[0092] Among them, a, b, c, d are the four matrix values ​​that need to be obtained by the conversion matrix. The values ​​of a, b, c, d can be obtained through 4 sets of pixel-latitude and longitude matching pairs;

[0093] Then, the radar point cloud data is projected into the image coordinate system based on the transformation matrix to obtain the projection coordinates of the radar point cloud data in the image coordinate system.

[0094] Preferably, in step S2, using 10 sets of pixel-longitude and latitude matching pairs can make the calculated transformation matrix closer to the real transformation matrix.

[0095] Preferably, the judgment condition in step S3 is as follows:

[0096] Set the coordinates of the upper left corner of the visual detection box to (x1, y1), the coordinates of the lower right corner to (x2, y2), and the projection coordinates of the radar point cloud to (x3, y3). If x1<x3<x2 and y1<y3<y2, the radar point cloud is determined to be contained in the visual detection box and the match is considered successful.

[0097] Preferably, in step S3, when the number of projection coordinates of the visual detection box and the radar point cloud data is the same, and the visual detection box successfully matches the projection coordinates of only one radar point cloud data, the visual detection result is regarded as a correct detection result;

[0098] Since the projection coordinates of the visual detection box and the radar point cloud data represent the detection of the target in the image data and radar data respectively, there may be a problem with the number of inconsistencies between the two. When the number of inconsistencies between the two occurs, it is considered that there may be a problem with the visual detection result of the area, which can be divided into the following two situations:

[0099] Case 1: The visual detection frame successfully matches the projection coordinates of more than one radar point cloud data;

[0100] The second case: the projection coordinates of the radar point cloud data do not match the visual detection frame successfully;

[0101] When these two situations occur, it is believed that there may be a problem of missed detection in the visual inspection result, and the visual inspection result is regarded as a false detection result.

[0102] Preferably, step S4 is specifically:

[0103] In the first case, the region is extracted based on the position of the visual detection box;

[0104] In the second case, the region is extracted based on the position of the radar point cloud projection;

[0105] The height of the predefined object is 3 meters and the width is 2 meters. Based on the transformation matrix of the two coordinate systems, the extraction area in the image coordinate system can be obtained.

[0106] Preferably, the target detection model 2 adopts the YOLO target detection model, the encoder network adopts the CNN convolutional neural network, the input data of the target detection model 2 is image data, radar point cloud data and image feature data extracted by the encoder network, and the number of input channels of the target detection model 2 is 260 channels, wherein the number of channels for extracting image features by the encoder network is 256 channels, the number of channels for image data is 3 channels, and the number of channels for radar point cloud data is 1 channel.

[0107] Preferably, step S6 specifically comprises:

[0108] The visual detection results of target detection model 1 are removed from the false detection results and fused with the correction results of target detection model 2 to obtain the final fusion result, that is, the correct detection results of target detection model 1 and the correction results of target model 2 are fused to obtain the final fusion result. The expression is as follows:

[0109] Fusion result = visual detection result - false detection result + correction result Fusion result = correct detection result + correction result

[0110] Among them, the visual detection result of the target detection model 1 minus the false detection result is the correct detection result.

[0111] Embodiment 2:

[0112] like Figure 1 to Figure 2 As shown, in this embodiment, an example of a multi-stage vehicle detection method based on image and millimeter wave radar data fusion is specifically disclosed, including the following steps:

[0113] S1: Input the image data into the target detection model 1, extract the image features in the image data through the encoder network, and predict the category and position of the target detection frame based on the extracted image features to obtain the position of the visual detection frame, that is, the visual detection result;

[0114] Among them, the target detection model 1 adopts the YOLO target detection model, the encoder network adopts the CNN convolutional neural network, the input data of the target detection model 1 is image data, and the number of input channels of the target detection model 1 is 3 channels, namely, the image RGB channels;

[0115] S11: Divide the input image data into a 7x7 grid;

[0116] S12: For each grid, predict the categories and positions of multiple detection boxes;

[0117] For each grid, predict the category and position of two detection boxes, each of which includes 4 coordinate values ​​(x, y, w, h) and 1 confidence score;

[0118] Among them, x, y represent the center of the detection box, w, h represent the width and height of the detection box respectively, and the confidence score represents the credibility of the detection box. The confidence score ranges from 0 to 1. The larger the confidence score, the higher the credibility of the detection box. That is, the closer the confidence score is to 1, the higher the credibility of the detection box.

[0119] like Figure 4 As shown in the figure, specifically, the target detection model 1 first uses the CNN convolutional neural network to extract image features from the image data, and then uses the fully connected layer to obtain the detection box prediction value corresponding to each grid, and the output is a tensor of size 7x7x30. 7x7 means that the input image data is divided into a 7x7 grid, and 30 means that each cell of the tensor has 30 elements, of which the first 20 elements represent the value of the category probability of the detection box, and then 2 elements represent the confidence scores of the two detection boxes, and the last 8 elements represent the coordinate values ​​of the two detection boxes, that is, the position information;

[0120] S13: Use non-maximum suppression (NMS) to delete redundant detection boxes, and obtain the category and position of the target detection box, that is, the position of the visual detection box, that is, the visual detection result;

[0121] Select the detection frame with the highest confidence score, calculate the overlapping area between it and the remaining detection frames, and use the IOU indicator to measure the size of the overlapping area, that is, calculate the ratio of the overlapping area of ​​the two detection frames to the area after the two detection frames are merged. The calculation formula is as follows:

[0122]

[0123] like Figure 5As shown in the figure, B represents the area of ​​the overlapping region of the two detection frames, A and B represent the area of ​​the non-overlapping region of the two detection frames, and A+B+C represents the area of ​​the region after the two detection frames are merged.

[0124] Then delete the detection frames whose IOU index values ​​are greater than the threshold, and repeat this step until the remaining detection frames are processed, and finally obtain the category and position of the target detection frame, that is, the position of the visual detection frame, that is, the visual detection result.

[0125] In step S1, the predicted position of all vehicles, i.e., the position of the visual detection frame, is obtained based on the visual detection technology. However, due to the height limit of the camera equipment installation, the viewing angle of the camera equipment is limited to a certain extent, and the complete body of some vehicles cannot be captured, which will have a negative impact on the detection of these obscured vehicles.

[0126] For example: Figure 2 , Figure 3 In the example shown in the figure, there are two cars in the actual scene, but most of the rear car is blocked by the front car, resulting in the visual detection model detecting only one car. This problem is more of a hardware limitation than a software limitation, so it is difficult to solve the problem by improving algorithm performance.

[0127] S2: The radar-camera joint calibration method is used to obtain the transformation matrix from the radar coordinate system to the camera coordinate system, and then the radar point cloud data is projected into the image coordinate system based on the transformation matrix to obtain the projection coordinates of the radar point cloud data in the image coordinate system;

[0128] Step S2 is specifically as follows:

[0129] Ten sets of pixel-longitude and latitude matching pairs are collected, and then the coordinate system transformation matrix is ​​obtained through geometric transformation fitting. For any collected longitude and latitude coordinates [lon, lat], a 2*2 matrix can be used to transform to another vector space to obtain the corresponding pixel coordinates [o x , o y ], by collecting pixel-longitude and latitude matching pairs, the transformation matrix of the two coordinate systems can be calculated. The transformation matrix is ​​shown as follows:

[0130]

[0131] Transform the transformation matrix into an expression form as shown below:

[0132] o x =a*lon+b*lat

[0133] o v =c*lon+d*lat

[0134] Among them, a, b, c, d are the four matrix values ​​that need to be obtained by the conversion matrix. The values ​​of a, b, c, d can be obtained through 4 sets of pixel-latitude and longitude matching pairs:

[0135] Then, based on the transformation matrix, the radar point cloud data is projected into the image coordinate system to obtain the projection coordinates of the radar point cloud data in the image coordinate system. Using 10 sets of pixel-longitude and latitude matching pairs can make the calculated transformation matrix closer to the real transformation matrix.

[0136] S3: Match the visual detection frame and the projection coordinates of the radar point cloud data in the image coordinate system, calculate whether the projection coordinates of each radar point cloud data are contained in the visual detection frame, and determine whether the visual detection result is a correct detection result or a false detection result according to the judgment condition;

[0137] The judgment conditions are as follows:

[0138] Set the coordinates of the upper left corner of the visual detection box to (x1, y1), the coordinates of the lower right corner to (x2, y2), and the projection coordinates of the radar point cloud to (x3, y3). If x1<x3<x2 and y1<y3<y2, the radar point cloud is determined to be contained in the visual detection box and the match is considered successful.

[0139] When the number of projection coordinates of the visual detection box and the radar point cloud data is the same, and the visual detection box only successfully matches the projection coordinates of one radar point cloud data, the visual detection result is regarded as a correct detection result;

[0140] Since the projection coordinates of the visual detection box and the radar point cloud data represent the detection of the target in the image data and radar data respectively, there may be a problem with the number of inconsistencies between the two. When the number of inconsistencies between the two occurs, it is considered that there may be a problem with the visual detection result of the area, which can be divided into the following two situations:

[0141] Case 1: The visual detection frame successfully matches the projection coordinates of more than one radar point cloud data;

[0142] The second case: the projection coordinates of the radar point cloud data do not match the visual detection frame successfully;

[0143] When these two situations occur, it is believed that there may be a problem of missed detection in the visual inspection result, and the visual inspection result is regarded as a false detection result.

[0144] S4: extracting the object area for correction according to the false detection result;

[0145] In the first case, the region is extracted based on the position of the visual detection box;

[0146] In the second case, the region is extracted based on the position of the radar point cloud projection;

[0147] The height of the predefined object is 3 meters and the width is 2 meters. Based on the transformation matrix of the two coordinate systems, the extraction area in the image coordinate system can be obtained.

[0148] S5: After splicing the image data corresponding to the extracted area, the radar point cloud data and the image features extracted by the encoder network, the data are input into the target detection model 2 to obtain the correction result;

[0149] The target detection model 2 adopts the YOLO target detection model, and the encoder network adopts the CNN convolutional neural network. The input data of the target detection model 2 is image data, radar point cloud data, and image feature data extracted by the encoder network. The number of input channels of the target detection model 2 is 260 channels, of which the number of channels for extracting image features by the encoder network is 256 channels, the number of channels for image data is 3 channels, and the number of channels for radar point cloud data is 1 channel.

[0150] S6: After removing the false detection results, the visual detection results of the target detection model one are fused with the correction results of the target detection model two to obtain the final fusion result, that is, the correct detection results of the target detection model one and the correction results of the target model two are fused to obtain the final fusion result.

[0151] The visual detection results of target detection model 1 are removed from the false detection results and fused with the correction results of target detection model 2 to obtain the final fusion result, that is, the correct detection results of target detection model 1 and the correction results of target model 2 are fused to obtain the final fusion result. The expression is as follows:

[0152] Fusion result = visual detection result - false detection result + correction result Fusion result = correct detection result + correction result

[0153] Among them, the visual detection result of the target detection model 1 minus the false detection result is the correct detection result.

[0154] Millimeter-wave radar can detect non-line-of-sight highly reflective objects, such as obscured vehicles, by virtue of its multipath propagation characteristics. Figure 2 and Figure 3 As shown, we project the radar point cloud data into the image data, and we can find that the rear vehicle can be detected by the millimeter-wave radar. Therefore, in steps S2 and S3, we screen the false detection results and correct detection results in the visual detection results based on the radar point cloud data, and then correct the false detection results by combining the radar point cloud data and the image feature data in the image data extracted by an encoder model of the target detection model to obtain the correction result, and then fuse the correct detection result with the correction result to obtain the fusion result. The fusion result combines the visual detection technology with the millimeter-wave radar point cloud data, so it will be more accurate.

[0155] exist Figure 2 and Figure 3 In the figure, the green dots are the projection coordinates of the millimeter-wave radar point cloud data projected into the image data, and the red boxes are the locations of the visual detection boxes, i.e., the visual detection results.

[0156] The present invention is divided into three stages. In the first stage, the present invention performs vehicle detection based on image data. Figure 1 and Figure 2 As shown, the image data is input into the target detection model 1, and the image features are first extracted through the encoder network, and then the category and position of the target detection frame are predicted based on the extracted image features. In the present invention, the mainstream visual detection model YOLO is used as the target detection model.

[0157] The YOLO algorithm is a fast and efficient target detection algorithm proposed in 2015. Compared with traditional target detection methods, the YOLO algorithm does not need to scan the image multiple times. Instead, it uses a single neural network model to directly detect and classify the entire image and output the location and category probability of each target box. The YOLO network structure is as follows: Figure 4 shown.

[0158] In the first stage, i.e., step S1, we obtain the predicted positions of all vehicles, i.e., the positions of the visual detection frames, based on visual detection technology. However, due to the height limit of the camera device installation, the viewing angle of the camera device is limited to a certain extent, and the complete body of some vehicles cannot be captured, which will have a negative impact on the detection of these obscured vehicles. For example: Figure 2 , Figure 3 In the example shown in the figure, there are two cars in the actual scene, but most of the rear car is blocked by the front car, resulting in the visual detection model detecting only one car. This problem is more of a hardware limitation than a software limitation, so it is difficult to solve the problem by improving algorithm performance.

[0159] Millimeter-wave radar can detect non-line-of-sight highly reflective objects, such as obscured vehicles, by virtue of its multipath propagation characteristics. Figure 1 As shown, we project the point cloud data into the image data and find that the rear vehicle can be detected by the millimeter-wave radar. Therefore, in the second stage, that is, in steps S2 to S5, we filter out possible erroneous results in the visual inspection results based on the millimeter-wave point cloud data, and correct them in combination with the point cloud data and the image features extracted in the first stage, so as to obtain more accurate detection results.

[0160] Millimeter-wave radar can detect non-line-of-sight highly reflective objects, such as obscured vehicles, by virtue of its multipath propagation characteristics. Figure 2 and Figure 3As shown, we project the radar point cloud data into the image data, and we can find that the rear vehicle can be detected by the millimeter wave radar. Therefore, in the second stage, that is, in steps S2 to S5, we screen the false detection results and correct detection results in the visual detection results based on the radar point cloud data, and then correct the false detection results in combination with the radar point cloud data and the image feature data in the image data extracted by an encoder model of the target detection model to obtain the correction result.

[0161] Then in the third stage, that is, in step 6, the correct detection result is fused with the correction result to obtain a fusion result. The fusion result combines the visual detection technology with the millimeter-wave radar point cloud data, so it will be more accurate.

[0162] Both target detection model 2 and target detection model 1 are designed based on the YOLO algorithm, and the main difference lies in the input data. The input data of target detection model 1 is image data, and the number of channels is 3 channels, namely the image RGB channels; the input data of target detection model 2 is image data, millimeter wave radar point cloud data, and image feature data extracted from the image data by the encoder model of target detection model 1, with the number of channels being 260 channels. The encoder network is set to extract feature channels of 256, image channels of 3, and millimeter wave radar point cloud channels of 1.

[0163] Because millimeter-wave radar point cloud data can effectively detect obscured vehicles, target detection model 2 can obtain more accurate detection results based on this information. Therefore, the fusion results of the third stage are more accurate than the visual detection results of the first stage and can effectively detect obscured vehicles in the scene.

[0164] Working principle of the present invention:

[0165] The present invention inputs image data into a target detection model 1, extracts image features in the image data through an encoder network, predicts the category and position of a target detection frame based on the extracted image features, obtains the position of a visual detection frame, i.e., a visual detection result, and then obtains a conversion matrix from a radar coordinate system to a camera coordinate system through a radar-camera joint calibration method, and then projects radar point cloud data into an image coordinate system based on the conversion matrix to obtain the projection coordinates of the radar point cloud data in the image coordinate system, and then matches the projection coordinates of the visual detection frame and the radar point cloud data in the image coordinate system, calculates whether the projection coordinates of each radar point cloud data are contained in the visual detection frame, and determines whether the visual detection result is a correct detection result or a false detection result according to a judgment condition, and then extracts the object area for correction for the false detection result, and then splices the image data corresponding to the extracted area, the radar point cloud data, and the image features extracted by the encoder network, and then inputs the target detection model 2 to obtain a correction result, and then removes the false detection result from the visual detection result of the target detection model 1 and fuses it with the correction result of the target detection model 2 to obtain a final fusion result, that is, the correct detection result of the target detection model 1 and the correction result of the target model 2 are fused to obtain the final fusion result.

[0166] The present invention first detects the candidate area of ​​the object based on the image data, that is, the visual detection result, and then judges whether there is a problem with the visual detection result based on the combination of radar point cloud data projection and the visual detection result. Then, only the false detection results that may have problems are calculated, and then the correct detection results and the false detection results are fused to obtain a more accurate fusion result.

[0167] The above-mentioned embodiments only express the specific implementation of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A multi-stage vehicle detection method based on image and millimeter-wave radar data fusion, It is characterized in that The following steps are involved: S1: Input the image data into the target detection model 1, extract the image features in the image data through the encoder network, and predict the category and position of the target detection frame based on the extracted image features to obtain the position of the visual detection frame, that is, the visual detection result; S2: The radar-camera joint calibration method is used to obtain the transformation matrix from the radar coordinate system to the camera coordinate system, and then the radar point cloud data is projected into the image coordinate system based on the transformation matrix to obtain the projection coordinates of the radar point cloud data in the image coordinate system; S3: Match the projection coordinates of the visual detection frame and the radar point cloud data in the image coordinate system, calculate whether the projection coordinates of each radar point cloud data are contained in the visual detection frame, and determine whether the visual detection result is a correct detection result or a false detection result according to the judgment condition; S4: extracting the object area for correction according to the false detection result; S5: After splicing the image data corresponding to the extracted area, the radar point cloud data and the image features extracted by the encoder network, the data are input into the target detection model 2 to obtain the correction result; S6: After removing the false detection results, the visual detection results of the target detection model one are fused with the correction results of the target detection model two to obtain the final fusion result, that is, the correct detection results of the target detection model one and the correction results of the target model two are fused to obtain the final fusion result.

2. The multi-stage vehicle detection method based on image and millimeter wave radar data fusion according to claim 1, It is characterized in that The target detection model 1 adopts the YOLO target detection model, the encoder network adopts the CNN convolutional neural network, the input data of the target detection model 1 is image data, and the number of input channels of the target detection model 1 is 3 channels, namely, the image RGB channels.

3. The multi-stage vehicle detection method based on image and millimeter wave radar data fusion according to claim 2, It is characterized in that Step S1 includes the following steps: S11: Divide the input image data into an S×S grid; S12: For each grid, predict the categories and positions of multiple detection boxes; For each grid, a CNN convolutional neural network is used to predict multiple detection boxes, each of which includes 4 coordinate values ​​(x, y, w, h) and 1 confidence score; Among them, x, y represent the center of the detection box, w, h represent the width and height of the detection box respectively, and the confidence score represents the credibility of the detection box. The confidence score ranges from 0 to 1. The larger the confidence score, the higher the credibility of the detection box. Specifically, the object detection model 1 first uses the CNN convolutional neural network to extract image features in the image data, and then uses the fully connected layer to obtain the categories and positions of multiple detection boxes corresponding to each grid; S13: Use non-maximum suppression (NMS) to delete redundant detection boxes, and obtain the category and position of the target detection box, that is, the position of the visual detection box, that is, the visual detection result; Select the detection frame with the highest confidence score, calculate the overlapping area between it and the remaining detection frames, and use the IOU indicator to measure the size of the overlapping area, that is, calculate the ratio of the overlapping area of ​​the two detection frames to the area after the two detection frames are merged. The calculation formula is as follows: Among them, B represents the area of ​​the overlapping area of ​​the two detection frames, A and B represent the area of ​​the non-overlapping area of ​​the two detection frames, and A+B+C represents the area of ​​the area after the two detection frames are merged; Then delete the detection frames whose IOU index values ​​are greater than the threshold, and repeat this step until the remaining detection frames are processed, and finally obtain the category and position of the target detection frame, that is, the position of the visual detection frame, that is, the visual detection result.

4. The multi-stage vehicle detection method based on image and millimeter wave radar data fusion according to claim 1, It is characterized in that Step S2 is specifically as follows: Ten sets of pixel-longitude and latitude matching pairs are collected, and then the coordinate system transformation matrix is ​​obtained through geometric transformation fitting. For any collected longitude and latitude coordinates [lon, lat], a 2*2 matrix can be used to transform to another vector space to obtain the corresponding pixel coordinates [o x , o y ], by collecting pixel-longitude and latitude matching pairs, the transformation matrix of the two coordinate systems can be calculated. The transformation matrix is ​​shown as follows: Transform the transformation matrix into an expression form as shown below: about x =a*lon+b*lat about v =c*lon+d*lat Among them, a, b, c, d are the four matrix values ​​that need to be obtained by the conversion matrix. The values ​​of a, b, c, d can be obtained through 4 sets of pixel-latitude and longitude matching pairs; Then, the radar point cloud data is projected into the image coordinate system based on the transformation matrix to obtain the projection coordinates of the radar point cloud data in the image coordinate system.

5. The multi-stage vehicle detection method based on image and millimeter wave radar data fusion according to claim 4, It is characterized in that In step S2, using 10 sets of pixel-longitude and latitude matching pairs can make the calculated transformation matrix closer to the actual transformation matrix.

6. The multi-stage vehicle detection method based on image and millimeter wave radar data fusion according to claim 1, It is characterized in that The judgment conditions in step S3 are as follows: Set the coordinates of the upper left corner of the visual detection box to (x 1 ,y 1 ), the coordinate of the lower right corner is (x 2 ,y 2 ), the projection coordinates of the radar point cloud are (x 3 ,y 3 ), if x 1 <x 3 <x 2 And y 1 <y 3 <y 2 , then the radar point cloud is determined to be contained in the visual detection frame and is considered a successful match.

7. The multi-stage vehicle detection method based on image and millimeter wave radar data fusion according to claim 1, It is characterized in that In step S3, when the number of projection coordinates of the visual detection box and the radar point cloud data is the same, and the visual detection box successfully matches the projection coordinates of only one radar point cloud data, the visual detection result is regarded as a correct detection result; Since the projection coordinates of the visual detection box and the radar point cloud data represent the detection of the target in the image data and radar data respectively, there may be a problem with the number of inconsistencies between the two. When the number of inconsistencies between the two occurs, it is considered that there may be a problem with the visual detection result of the area, which can be divided into the following two situations: Case 1: The visual detection frame successfully matches the projection coordinates of more than one radar point cloud data; The second case: the projection coordinates of the radar point cloud data do not match the visual detection frame successfully; When these two situations occur, it is believed that there may be a problem of missed detection in the visual inspection result, and the visual inspection result is regarded as a false detection result.

8. The multi-stage vehicle detection method based on image and millimeter wave radar data fusion according to claim 3, It is characterized in that Step S4 is specifically as follows: In the first case, the region is extracted based on the position of the visual detection box; In the second case, the region is extracted based on the position of the radar point cloud projection; The height of the predefined object is 3 meters and the width is 2 meters. Based on the transformation matrix of the two coordinate systems, the extraction area in the image coordinate system can be obtained.

9. The multi-stage vehicle detection method based on image and millimeter wave radar data fusion according to claim 3, It is characterized in that The target detection model 2 adopts the YOL0 target detection model, and the encoder network adopts the CNN convolutional neural network. The input data of the target detection model 2 is image data, radar point cloud data, and image feature data extracted by the encoder network. The number of input channels of the target detection model 2 is 260 channels, of which the number of channels for extracting image features by the encoder network is 256 channels, the number of channels for image data is 3 channels, and the number of channels for radar point cloud data is 1 channel.

10. The multi-stage vehicle detection method based on image and millimeter wave radar data fusion according to claim 1, It is characterized in that Step S6 is specifically as follows: The visual detection results of target detection model 1 are removed from the false detection results and fused with the correction results of target detection model 2 to obtain the final fusion result, that is, the correct detection results of target detection model 1 and the correction results of target model 2 are fused to obtain the final fusion result. The expression is as follows: Fusion result = visual detection result - false detection result + correction result Fusion result = correct detection result + correction result Among them, the visual detection result of the target detection model 1 minus the false detection result is the correct detection result.

Citation Information

Patent Citations

  • Target detection method, device, equipment and system

    CN111856445A

  • Target detection method based on millimeter wave radar and camera and related equipment

    CN117036657A

  • Data processing method and device based on multi-sensor fusion, and multi-sensor fusion method

    US20210012165A1