Data fusion method and device, computer equipment and storage medium
Determining the data of the same object through alignment processing and similarity matrix solves the problem of non-corresponding acquisition times during multi-sensor data fusion, and improves the accuracy and effect of data fusion.
Patent Information
- Application Number
- CN202410369123.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2024-08-23
AI Technical Summary
The data fusion effect between multiple sensors in the existing technology is not good, mainly because the data collection time does not correspond, resulting in low data fusion accuracy.
By obtaining the camera data set and radar data set whose collection time is before the preset time and closest to the preset time, alignment processing is performed, and the camera data and radar data of the same object are determined based on the similarity matrix, so as to perform data fusion.
It improves the accuracy of data fusion, ensures the data fusion effect, and solves the problem of poor data fusion effect caused by the mismatch in data collection time between multiple sensors.
Smart Images

Figure CN118536053A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data fusion method, device, computer equipment and storage medium. Background Art
[0002] Scene data is acquired through a single sensor. For scenes where a single sensor cannot perceive well or the perception data is not accurate enough, multiple sensors need to be deployed, but data fusion between multiple sensors is difficult.
[0003] Therefore, there is a problem of poor data fusion effect in traditional technology. Summary of the invention
[0004] Based on this, it is necessary to provide a data fusion method, device, computer equipment and storage medium that can ensure the data fusion effect in response to the above technical problems.
[0005] In a first aspect, the present application provides a data fusion method, comprising:
[0006] Acquire a camera data set and a radar data set whose collection time is before a preset time and closest to the preset time, wherein the camera data set is composed of camera data of each object in the target scene at the corresponding collection time, and the radar data set is composed of radar data of each object in the target scene at the corresponding collection time;
[0007] When the camera data set and the radar data set have different corresponding collection times, performing alignment processing based on the camera data set and the radar data set;
[0008] Obtaining a similarity matrix between the camera data set and the radar data set, and determining camera data and radar data corresponding to the same object based on the similarity matrix;
[0009] The camera data and radar data corresponding to the same object are fused to obtain fused data.
[0010] In one embodiment, the alignment processing based on the camera data set and the radar data set includes:
[0011] Obtaining the interval between the collection times of the camera data set and the radar data set;
[0012] The data set collected earlier than the camera data set and the radar data set is taken as the earlier data set, and the data set collected later than the radar data set is taken as the later data set. Based on the interval time, the data of each object in the earlier data set is adjusted.
[0013] In one embodiment, the obtaining a similarity matrix between the camera data set and the radar data set includes:
[0014] For the camera data of each object in the camera data set and the radar data of each object in the radar data set, based on the first lateral distance and the first longitudinal distance included in the camera data of the corresponding object in the camera data set, and the second lateral distance and the second longitudinal distance included in the radar data of the corresponding object in the radar data set, determine the similarity value between the camera data of the corresponding object in the camera data set and the radar data of the corresponding object in the radar data set, and construct a similarity matrix based on the similarity values.
[0015] In one embodiment, determining the camera data and radar data corresponding to the same object based on the similarity matrix includes:
[0016] Based on the similarity matrix, obtaining a square matrix;
[0017] Subtract the minimum value of the current row from the value of each row in the square matrix to obtain a row reduction matrix;
[0018] Subtract the minimum value of the current column from the value of each column in the row reduction matrix to obtain a column reduction matrix;
[0019] Determine the number of preset lines in the column reduction matrix; wherein the preset lines are lines that cover all zeros in the column reduction matrix through horizontal and vertical lines, and the sum of the number of horizontal and vertical lines is the smallest;
[0020] In the case where the number of the preset lines is less than the matrix dimension of the square matrix, the minimum value among the values not passed by the preset lines is determined as the target value, the target value is added to the values passed by two preset lines at the same time, the target value is subtracted from the values not passed by the preset lines, and the values passed by one preset line are not processed, to obtain a processed matrix;
[0021] Determine the number of the preset lines in the processed matrix, and if the number of the preset lines in the processed matrix is less than the matrix dimension of the square matrix, return to the step of determining the minimum value among the values not passed by the preset lines and continue to execute until the number of the preset lines in the processed matrix is the same as the matrix dimension of the square matrix, thereby obtaining a target matrix;
[0022] Determining target positions in the target matrix, wherein the number of the target positions is the same as the matrix dimension of the square matrix, the values of the target positions are all 0, and the target positions are in different rows and columns;
[0023] The data corresponding to the corresponding row and the corresponding column of the target position are determined as the camera data and the radar data corresponding to the same object.
[0024] In one embodiment, fusing the camera data and radar data corresponding to the same object includes:
[0025] The target data included in the camera data corresponding to the same object is fused with the longitudinal data included in the radar data corresponding to the same object to obtain fused data; wherein the target data includes transverse data and object type data.
[0026] In one embodiment, obtaining a camera data set and a radar data set whose collection time is before a preset time and closest to the preset time includes:
[0027] Acquire an original camera data set and an original radar data set whose collection time is before a preset time and closest to the preset time;
[0028] For the camera data of each object in the original camera data set, if the longitudinal distance included in the camera data of an object is greater than a preset distance, all camera data of the corresponding object are deleted from the original camera data set to obtain a camera data set;
[0029] For the radar data of each object in the original radar data set, when the longitudinal speed included in the radar data of an object is 0, all radar data of the corresponding object are deleted from the original radar data set to obtain a radar data set.
[0030] In a second aspect, the present application also provides a data fusion device, comprising:
[0031] A data set acquisition module, used to acquire a camera data set and a radar data set whose acquisition time is before a preset time and closest to the preset time, wherein the camera data set is composed of camera data of each object in the target scene at the corresponding acquisition time, and the radar data set is composed of radar data of each object in the target scene at the corresponding acquisition time;
[0032] An alignment processing module, configured to perform alignment processing based on the camera data set and the radar data set when the respective corresponding collection times of the camera data set and the radar data set are different;
[0033] A data determination module, configured to obtain a similarity matrix between the camera data set and the radar data set, and determine the camera data and the radar data corresponding to the same object based on the similarity matrix;
[0034] The data fusion module is used to fuse the camera data and radar data corresponding to the same object to obtain fused data.
[0035] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the above methods when executed by a processor.
[0037] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0038] The above-mentioned data fusion method, device, computer equipment and storage medium obtain a camera data set and a radar data set whose collection time is before a preset time and closest to the preset time, wherein the camera data set is composed of the camera data of each object in the target scene at the corresponding collection time, and the radar data set is composed of the radar data of each object in the target scene at the corresponding collection time. When the collection time of the camera data set and the radar data set is different, alignment processing is performed based on the camera data set and the radar data set, and a similarity matrix between the camera data set and the radar data set is obtained. Based on the similarity matrix, the camera data and radar data corresponding to the same object are determined, and the camera data and radar data corresponding to the same object are fused to obtain fused data. Compared with the problem of poor data fusion effect caused by the difficulty of data fusion between multiple sensors in traditional technology, the present application performs alignment processing based on the camera data set and the radar data set, takes into account the problem of non-corresponding data collection time between multiple sensors, and determines the camera data and radar data corresponding to the same object based on the similarity matrix, thereby performing data fusion, improving the accuracy of data fusion and ensuring the data fusion effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A schematic diagram of the flow of the data fusion method provided in the embodiment of the present application;
[0041] Figure 2 A schematic diagram of a process of performing alignment processing based on a camera data set and a radar data set in one embodiment;
[0042] Figure 3 A schematic diagram of a similarity matrix is provided in one embodiment;
[0043] Figure 4 A schematic diagram of a process for determining camera data and radar data corresponding to the same object in one embodiment;
[0044] Figure 5 A schematic diagram of a reduction matrix is provided in one embodiment;
[0045] Figure 6 A schematic diagram of a processed matrix is provided in one embodiment;
[0046] Figure 7 A structural block diagram of a data fusion device provided in an embodiment of the present application;
[0047] Figure 8 This is a diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0049] In this embodiment, a data fusion method is provided. This embodiment uses the method applied to a computer device as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a computer device and a server, and is implemented through the interaction between the computer device and the server.
[0050] Figure 1 FIG. 1 is a flow chart of a data fusion method provided in an embodiment of the present application. The method is applied to a computer device. In one embodiment, Figure 1As shown, the following steps are included:
[0051] S101, obtaining a camera data set and a radar data set whose collection time is before a preset time and closest to the preset time, wherein the camera data set is composed of camera data of each object in the target scene at the corresponding collection time, and the radar data set is composed of radar data of each object in the target scene at the corresponding collection time.
[0052] The objects in the target scene include motor vehicles, non-motor vehicles and pedestrians. The camera data is collected by the smart camera module, and the radar data is collected by the millimeter wave radar module. It should be understood that the camera data may include multiple data, and the radar data may also include multiple data.
[0053] Taking the camera data set as an example, there are three objects A, B and C in the target scene at the time of acquisition, then the camera data set is {WA, WB, WC}, where WA is the camera data of object A, WB is the camera data of object B, and WC is the camera data of object C. WA includes the object type, longitudinal speed, lateral speed, longitudinal acceleration, lateral acceleration of object A, and the longitudinal distance and lateral distance between object A and the smart camera module. The object type is bus, truck, motorcycle, bicycle, pedestrian or special vehicle. The lateral distance between object A and the smart camera module is the distance between the central axis of object A and the central axis of the smart camera module.
[0054] S102: When the camera data set and the radar data set have different collection times, perform alignment processing based on the camera data set and the radar data set.
[0055] S103, obtaining a similarity matrix between the camera data set and the radar data set, and determining the camera data and radar data corresponding to the same object based on the similarity matrix.
[0056] The similarity matrix includes the similarity between the camera data of each object in the camera data set and the radar data of each object in the radar data set.
[0057] It is worth noting that if the camera data set and the radar data set have different corresponding collection times, the camera data set and the radar data set in step S103 are obtained after the camera data set and the radar data set are aligned in step S102. If the camera data set and the radar data set have the same corresponding collection times, step S102 is not executed, and step S103 is directly executed.
[0058] S104, fusing the camera data and radar data corresponding to the same object to obtain fused data.
[0059] The data fusion method provided in this embodiment obtains a camera data set and a radar data set whose collection time is before a preset time and closest to the preset time, wherein the camera data set is composed of camera data of each object in the target scene at the corresponding collection time, and the radar data set is composed of radar data of each object in the target scene at the corresponding collection time. When the collection time of the camera data set and the radar data set is different, alignment processing is performed based on the camera data set and the radar data set, and a similarity matrix between the camera data set and the radar data set is obtained. Based on the similarity matrix, the camera data and radar data corresponding to the same object are determined, and the camera data and radar data corresponding to the same object are fused to obtain fused data. Compared with the problem of poor data fusion effect caused by the difficulty of data fusion between multiple sensors in traditional technology, this embodiment performs alignment processing based on the camera data set and the radar data set, takes into account the problem of non-corresponding data collection time between multiple sensors, and determines the camera data and radar data corresponding to the same object based on the similarity matrix, thereby performing data fusion, improving the accuracy of data fusion, and ensuring the data fusion effect.
[0060] In one embodiment, obtaining a camera data set and a radar data set whose collection time is before a preset time and closest to the preset time includes:
[0061] Acquire an original camera data set and an original radar data set whose collection time is before a preset time and closest to the preset time;
[0062] For the camera data of each object in the original camera data set, if the longitudinal distance included in the camera data of an object is greater than a preset distance, all camera data of the corresponding object are deleted from the original camera data set to obtain a camera data set;
[0063] For the radar data of each object in the original radar data set, when the longitudinal speed included in the radar data of an object is 0, all radar data of the corresponding object are deleted from the original radar data set to obtain a radar data set.
[0064] The preset distance can be set manually, for example, the preset distance is 200 meters.
[0065] In this embodiment, the data in the original camera data set and the original radar data set are screened to obtain the camera data set and the radar data set, which can reduce the amount of data, avoid interference of invalid data on subsequent data fusion, and ensure the data fusion effect.
[0066] In one embodiment, a flow chart of alignment processing based on a camera data set and a radar data set is shown as follows: Figure 2 As shown, including the following:
[0067] S201, obtaining the interval between the collection times of the camera data set and the radar data set.
[0068] S202, taking the data set with an earlier acquisition time in the camera data set and the radar data set as the earlier data set, taking the data set with a later acquisition time as the later data set, and adjusting the data of each object in the earlier data set based on the interval time.
[0069] It is worth noting that the data of each object is not adjusted in the latter data set.
[0070] For example, the previous data set is a camera data set and the next data set is a radar data set. The collection time of the camera data set is t1, the collection time of the radar data set is t2, and the interval between t1 and t2 is T.
[0071] Camera data WD for an object in the camera data set, such as object D, where WD includes a longitudinal velocity, a lateral velocity, a longitudinal acceleration, a lateral acceleration, and a longitudinal distance and a lateral distance between the object D and the smart camera module;
[0072] WD is adjusted by the data adjustment formula. The data adjustment formula is:
[0073] ,
[0074] in, , , , , and They are the lateral distance, longitudinal distance, lateral velocity, longitudinal velocity, lateral acceleration and longitudinal acceleration of the D object respectively. , , , , and They are the adjusted lateral distance, longitudinal distance, lateral speed, longitudinal speed, lateral acceleration and longitudinal acceleration of the D object respectively.
[0075] In this embodiment, the data in the camera data set and the radar data set are unified at all times based on the alignment process to improve the accuracy of subsequent data fusion.
[0076] In one embodiment, obtaining a similarity matrix between a camera data set and a radar data set includes:
[0077] For the camera data of each object in the camera data set and the radar data of each object in the radar data set, based on the first lateral distance and the first longitudinal distance included in the camera data of the corresponding object in the camera data set, and the second lateral distance and the second longitudinal distance included in the radar data of the corresponding object in the radar data set, determine the similarity value between the camera data of the corresponding object in the camera data set and the radar data of the corresponding object in the radar data set, and construct a similarity matrix based on the similarity values.
[0078] Taking the camera data set including the camera data Ei, Ej and Ek corresponding to the three objects i, j and k, and the radar data set including the radar data Fi, Fj and Fk corresponding to the three objects i, j and k as an example, the similarity value between Ei and Fk is obtained by the similarity formula. The similarity formula is:
[0079] ,
[0080] in, and are the first horizontal distance and the first vertical distance of object i respectively, and are the second horizontal distance and the second vertical distance of object k, respectively. is the similarity value between Ei and Fk.
[0081] It should be understood that in the actual processing process, the objects corresponding to the camera data Ei, Ej and Ek are not known, nor are the objects corresponding to the radar data Fi, Fj and Fk. Therefore, it is necessary to determine the camera data and radar data corresponding to the same object.
[0082] Furthermore, a similarity matrix is constructed based on each similarity value, and a schematic diagram of a similarity matrix is provided, such as Figure 3 shown. Figure 3 middle and Respectively represent the similarity values between the corresponding camera data and radar data.
[0083] In this embodiment, based on the lateral distance and longitudinal distance in the camera data and the lateral distance and longitudinal distance in the radar data, the similarity value between the camera data and the radar data of each object is calculated with high accuracy, which can help to subsequently determine the camera data and radar data corresponding to the same object.
[0084] In one embodiment, a flow chart of determining camera data and radar data corresponding to the same object based on a similarity matrix is shown as follows: Figure 4 As shown, including the following:
[0085] S401, obtaining a square matrix based on the similarity matrix.
[0086] In some embodiments, obtaining a square matrix based on the similarity matrix includes:
[0087] When the number of rows and columns of the similarity matrix is the same, the similarity matrix is treated as a square matrix;
[0088] When the number of rows and the number of columns of the similarity matrix are different, a larger value of the number of rows and the number of columns is determined as the matrix dimension, and the similarity matrix is filled based on the matrix dimension to obtain a square matrix.
[0089] S402, subtract the minimum value of the current row from the value of each row in the square matrix to obtain a row reduction matrix.
[0090] S403 , subtract the minimum value of the current column from the value of each column in the row reduction matrix to obtain a column reduction matrix.
[0091] S404, determining the number of preset lines in the column reduction matrix; wherein the preset lines are lines that cover all zeros in the column reduction matrix through horizontal and vertical lines, and the total number of horizontal and vertical lines is the smallest.
[0092] Exemplarily, a schematic diagram of a reduction matrix is provided, such as Figure 5 shown. Figure 5 The two lines in are preset lines.
[0093] S405, when the number of preset lines is less than the matrix dimension of the square matrix, determine the minimum value among the values not passed by the preset lines as the target value, add the target value to the values passed by two preset lines at the same time, subtract the target value from the values not passed by the preset lines, and do not process the values passed by one preset line to obtain the processed matrix.
[0094] The matrix dimension of the square matrix is 3, and the column reduction matrix is Figure 5 Taking the example shown in the figure, the target value is 32, and the values in the column reduction matrix are processed to obtain a processed matrix. A schematic diagram of the processed matrix is provided, as shown in FIG. Figure 6 shown. Figure 6 The three lines in are preset lines.
[0095] S406, determining the number of preset lines in the processed matrix. If the number of preset lines in the processed matrix is less than the matrix dimension of the square matrix, returning to the step of determining the minimum value among the values not passed by the preset lines, the process continues until the number of preset lines in the processed matrix is the same as the matrix dimension of the square matrix, and obtaining the target matrix.
[0096] The matrix dimension of the square matrix is 3. The processed matrix is as follows Figure 6 As shown in the figure, there are three preset lines in the processed matrix, which is the same as the matrix dimension of the square matrix, that is, Figure 6 The processed matrix shown is the target matrix.
[0097] S407, determining the target positions in the target matrix, wherein the number of the target positions is the same as the matrix dimension of the square matrix, the values of the target positions are all 0, and the target positions are in different rows and columns.
[0098] As Figure 6 The processed matrix shown is taken as an example of the target matrix, and the target positions are (1, 1), (2, 3) and (3, 2), where (1, 1) represents the first row and first column of the target matrix, and the same applies to (2, 3) and (3, 2).
[0099] S408, determining the data corresponding to the corresponding row and the corresponding column of the target position as the camera data and the radar data corresponding to the same object.
[0100] In this embodiment, the camera data and radar data corresponding to the same object determined based on the similarity matrix are relatively accurate and can ensure the subsequent data fusion effect.
[0101] In one embodiment, fusing camera data and radar data corresponding to the same object includes:
[0102] The target data included in the camera data corresponding to the same object and the longitudinal data included in the radar data corresponding to the same object are fused to obtain fused data; wherein the target data includes transverse data and object type data.
[0103] Specifically, the lateral data includes the lateral distance, lateral speed and lateral acceleration obtained by the smart camera module, and the longitudinal data includes the longitudinal distance, longitudinal speed and longitudinal acceleration obtained by the millimeter wave radar module.
[0104] In this embodiment, considering that the lateral data and object type data acquired by the smart camera module are relatively accurate, and the longitudinal data acquired by the millimeter wave radar module are relatively accurate, the accuracy of the fused data can be improved, thereby ensuring the data fusion effect.
[0105] The data fusion method provided in this embodiment can obtain fused data at consecutive preset moments, thereby performing track monitoring of the corresponding object.
[0106] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0107] Based on the same inventive concept, the embodiment of the present application also provides a data fusion device for implementing the data fusion method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data fusion device embodiments provided below can refer to the limitations on the data fusion method above, and will not be repeated here.
[0108] See also Figure 7 , Figure 7 700 is a structural block diagram of a data fusion device provided in an embodiment of the present application. The device 700 includes: a data set acquisition module 701, an alignment processing module 702, a data determination module 703 and a data fusion module 704, wherein:
[0109] The data set acquisition module 701 is used to acquire a camera data set and a radar data set whose acquisition time is before a preset time and closest to the preset time, wherein the camera data set is composed of camera data of each object in the target scene at the corresponding acquisition time, and the radar data set is composed of radar data of each object in the target scene at the corresponding acquisition time;
[0110] An alignment processing module 702, configured to perform alignment processing based on the camera data set and the radar data set when the camera data set and the radar data set have different corresponding collection times;
[0111] The data determination module 703 is used to obtain a similarity matrix between the camera data set and the radar data set, and determine the camera data and radar data corresponding to the same object based on the similarity matrix;
[0112] The data fusion module 704 is used to fuse the camera data and radar data corresponding to the same object to obtain fused data.
[0113] The data fusion device provided in this embodiment obtains a camera data set and a radar data set whose collection time is before a preset time and closest to the preset time, wherein the camera data set is composed of camera data of each object in the target scene at the corresponding collection time, and the radar data set is composed of radar data of each object in the target scene at the corresponding collection time. When the collection time of the camera data set and the radar data set is different, alignment processing is performed based on the camera data set and the radar data set, and a similarity matrix between the camera data set and the radar data set is obtained. Based on the similarity matrix, the camera data and radar data corresponding to the same object are determined, and the camera data and radar data corresponding to the same object are fused to obtain fused data. Compared with the problem of poor data fusion effect caused by the difficulty of data fusion between multiple sensors in traditional technology, this embodiment performs alignment processing based on the camera data set and the radar data set, takes into account the problem of non-corresponding data collection time between multiple sensors, and determines the camera data and radar data corresponding to the same object based on the similarity matrix, thereby performing data fusion, improving the accuracy of data fusion and ensuring the data fusion effect.
[0114] Optionally, the alignment processing module 702 includes:
[0115] An interval time acquisition unit, used to acquire the interval time between the collection moments of the camera data set and the radar data set;
[0116] The data adjustment unit is used to take the data set with an earlier acquisition time in the camera data set and the radar data set as the earlier data set, and take the data set with a later acquisition time as the later data set, and adjust the data of each object in the earlier data set based on the interval time.
[0117] Optionally, the data determination module 703 includes:
[0118] A similarity matrix construction unit is used to determine, for each object in the camera data set and each object in the radar data set, a similarity value between the camera data of the corresponding object in the camera data set and the radar data of the corresponding object in the radar data set based on a first lateral distance and a first longitudinal distance included in the camera data of the corresponding object in the camera data set and a second lateral distance and a second longitudinal distance included in the radar data of the corresponding object in the radar data set, and to construct a similarity matrix based on each similarity value.
[0119] Optionally, the data determination module 703 includes:
[0120] A square matrix acquisition unit, used for acquiring a square matrix based on a similarity matrix;
[0121] A row reduction matrix acquisition unit is used to subtract the minimum value of the current row from the value of each row in the square matrix to obtain a row reduction matrix;
[0122] A column reduction matrix acquisition unit is used to subtract the minimum value of the current column from the value of each column in the row reduction matrix to obtain a column reduction matrix;
[0123] A preset line number determination unit, used to determine the number of preset lines in the column reduction matrix; wherein the preset lines are lines that cover all 0s in the column reduction matrix through horizontal and vertical lines, and the total number of horizontal and vertical lines is the smallest;
[0124] a matrix processing unit, for determining, when the number of preset lines is less than the matrix dimension of the square matrix, the minimum value among the values not passed by the preset lines as the target value, adding the target value to the values passed by two preset lines at the same time, subtracting the target value from the values not passed by the preset lines, and not processing the values passed by one preset line, to obtain a processed matrix;
[0125] a target matrix acquisition unit, used to determine the number of preset lines in the processed matrix, and if the number of preset lines in the processed matrix is less than the matrix dimension of the square matrix, return to the step of determining the minimum value among the values not passed by the preset lines and continue to execute until the number of preset lines in the processed matrix is the same as the matrix dimension of the square matrix, thereby obtaining the target matrix;
[0126] A target position determination unit, used for determining target positions in a target matrix, wherein the number of target positions is the same as the matrix dimension of the square matrix, the values of the target positions are all 0, and the target positions are in different rows and columns;
[0127] The data determination unit is used to determine the data corresponding to the corresponding row and the corresponding column of the target position as the camera data and radar data corresponding to the same object.
[0128] Optionally, the data fusion module 704 includes:
[0129] The data fusion unit is used to fuse the target data included in the camera data corresponding to the same object with the longitudinal data included in the radar data corresponding to the same object to obtain fused data; wherein the target data includes transverse data and object type data.
[0130] Optionally, the data set acquisition module 701 includes:
[0131] The original data set acquisition unit is used to acquire the original camera data set and the original radar data set whose collection time is before the preset time and closest to the preset time;
[0132] A camera data set acquisition unit is used to delete all camera data of the corresponding object from the original camera data set for the camera data of each object in the original camera data set when the longitudinal distance included in the camera data of the object is greater than a preset distance, so as to obtain a camera data set;
[0133] The radar data set acquisition unit is used to delete all radar data of the corresponding object from the original radar data set for the radar data of each object in the original radar data set when the longitudinal speed included in the radar data of the object is 0, so as to obtain the radar data set.
[0134] Each module in the above data fusion device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0135] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data fusion method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0136] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0137] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the steps of the data fusion method provided in the above embodiment are implemented:
[0138] Obtain a camera data set and a radar data set whose collection time is before a preset time and closest to the preset time, wherein the camera data set is composed of camera data of each object in the target scene at the corresponding collection time, and the radar data set is composed of radar data of each object in the target scene at the corresponding collection time;
[0139] When the camera data set and the radar data set have different corresponding collection times, an alignment process is performed based on the camera data set and the radar data set;
[0140] Obtaining a similarity matrix between the camera data set and the radar data set, and determining the camera data and the radar data corresponding to the same object based on the similarity matrix;
[0141] The camera data and radar data corresponding to the same object are fused to obtain fused data.
[0142] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0143] Obtain the interval between the collection times of the camera data set and the radar data set;
[0144] The data set with the earlier acquisition time among the camera data set and the radar data set is taken as the earlier data set, and the data set with the later acquisition time is taken as the later data set. Based on the interval time, the data of each object in the earlier data set is adjusted.
[0145] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0146] For the camera data of each object in the camera data set and the radar data of each object in the radar data set, based on the first lateral distance and the first longitudinal distance included in the camera data of the corresponding object in the camera data set, and the second lateral distance and the second longitudinal distance included in the radar data of the corresponding object in the radar data set, determine the similarity value between the camera data of the corresponding object in the camera data set and the radar data of the corresponding object in the radar data set, and construct a similarity matrix based on the similarity values.
[0147] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0148] Based on the similarity matrix, obtain a square matrix;
[0149] Subtract the minimum value of the current row from the value of each row in the square matrix to obtain a row reduction matrix;
[0150] Subtract the minimum value of the current column from the value of each column in the row reduction matrix to obtain the column reduction matrix;
[0151] Determine the number of preset lines in the column reduction matrix; wherein the preset lines are lines that cover all zeros in the column reduction matrix through horizontal and vertical lines, and the total number of horizontal and vertical lines is the smallest;
[0152] In the case where the number of preset lines is less than the matrix dimension of the square matrix, the minimum value among the values not passed by the preset lines is determined as the target value, the target value is added to the values passed by two preset lines at the same time, the target value is subtracted from the values not passed by the preset lines, and the values passed by one preset line are not processed to obtain a processed matrix;
[0153] Determine the number of preset lines in the processed matrix. If the number of preset lines in the processed matrix is less than the matrix dimension of the square matrix, return to the step of determining the minimum value among the values not passed by the preset lines and continue to execute until the number of preset lines in the processed matrix is the same as the matrix dimension of the square matrix, thereby obtaining a target matrix.
[0154] Determine the target positions in the target matrix, wherein the number of the target positions is the same as the matrix dimension of the square matrix, the values of the target positions are all 0, and the target positions are in different rows and columns;
[0155] The data corresponding to the corresponding row and the corresponding column of the target position are determined as the camera data and radar data corresponding to the same object.
[0156] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0157] The target data included in the camera data corresponding to the same object and the longitudinal data included in the radar data corresponding to the same object are fused to obtain fused data; wherein the target data includes transverse data and object type data.
[0158] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0159] Acquire an original camera data set and an original radar data set whose collection time is before a preset time and closest to the preset time;
[0160] For the camera data of each object in the original camera data set, if the longitudinal distance included in the camera data of an object is greater than a preset distance, all camera data of the corresponding object are deleted from the original camera data set to obtain a camera data set;
[0161] For the radar data of each object in the original radar data set, when the longitudinal speed included in the radar data of an object is 0, all radar data of the corresponding object are deleted from the original radar data set to obtain a radar data set.
[0162] The implementation principle and technical effects of the above embodiment are similar to those of the above method embodiment and will not be repeated here.
[0163] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data fusion method provided in the above embodiment are implemented:
[0164] Obtain a camera data set and a radar data set whose collection time is before a preset time and closest to the preset time, wherein the camera data set is composed of camera data of each object in the target scene at the corresponding collection time, and the radar data set is composed of radar data of each object in the target scene at the corresponding collection time;
[0165] When the camera data set and the radar data set have different corresponding collection times, an alignment process is performed based on the camera data set and the radar data set;
[0166] Obtaining a similarity matrix between the camera data set and the radar data set, and determining the camera data and the radar data corresponding to the same object based on the similarity matrix;
[0167] The camera data and radar data corresponding to the same object are fused to obtain fused data.
[0168] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0169] Obtain the interval between the collection times of the camera data set and the radar data set;
[0170] The data set with the earlier acquisition time among the camera data set and the radar data set is taken as the earlier data set, and the data set with the later acquisition time is taken as the later data set. Based on the interval time, the data of each object in the earlier data set is adjusted.
[0171] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0172] For the camera data of each object in the camera data set and the radar data of each object in the radar data set, based on the first lateral distance and the first longitudinal distance included in the camera data of the corresponding object in the camera data set, and the second lateral distance and the second longitudinal distance included in the radar data of the corresponding object in the radar data set, determine the similarity value between the camera data of the corresponding object in the camera data set and the radar data of the corresponding object in the radar data set, and construct a similarity matrix based on the similarity values.
[0173] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0174] Based on the similarity matrix, obtain a square matrix;
[0175] Subtract the minimum value of the current row from the value of each row in the square matrix to obtain a row reduction matrix;
[0176] Subtract the minimum value of the current column from the value of each column in the row reduction matrix to obtain the column reduction matrix;
[0177] Determine the number of preset lines in the column reduction matrix; wherein the preset lines are lines that cover all zeros in the column reduction matrix through horizontal and vertical lines, and the total number of horizontal and vertical lines is the smallest;
[0178] In the case where the number of preset lines is less than the matrix dimension of the square matrix, the minimum value among the values not passed by the preset lines is determined as the target value, the target value is added to the values passed by two preset lines at the same time, the target value is subtracted from the values not passed by the preset lines, and the values passed by one preset line are not processed to obtain a processed matrix;
[0179] Determine the number of preset lines in the processed matrix. If the number of preset lines in the processed matrix is less than the matrix dimension of the square matrix, return to the step of determining the minimum value among the values not passed by the preset lines and continue to execute until the number of preset lines in the processed matrix is the same as the matrix dimension of the square matrix, thereby obtaining a target matrix.
[0180] Determine the target positions in the target matrix, wherein the number of the target positions is the same as the matrix dimension of the square matrix, the values of the target positions are all 0, and the target positions are in different rows and columns;
[0181] The data corresponding to the corresponding row and the corresponding column of the target position are determined as the camera data and radar data corresponding to the same object.
[0182] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0183] The target data included in the camera data corresponding to the same object and the longitudinal data included in the radar data corresponding to the same object are fused to obtain fused data; wherein the target data includes transverse data and object type data.
[0184] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0185] Acquire an original camera data set and an original radar data set whose collection time is before a preset time and closest to the preset time;
[0186] For the camera data of each object in the original camera data set, if the longitudinal distance included in the camera data of an object is greater than a preset distance, all camera data of the corresponding object are deleted from the original camera data set to obtain a camera data set;
[0187] For the radar data of each object in the original radar data set, when the longitudinal speed included in the radar data of an object is 0, all radar data of the corresponding object are deleted from the original radar data set to obtain a radar data set.
[0188] The implementation principle and technical effects of the above embodiment are similar to those of the above method embodiment and will not be repeated here.
[0189] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the data fusion method provided in the above embodiment:
[0190] Obtain a camera data set and a radar data set whose collection time is before a preset time and closest to the preset time, wherein the camera data set is composed of camera data of each object in the target scene at the corresponding collection time, and the radar data set is composed of radar data of each object in the target scene at the corresponding collection time;
[0191] When the camera data set and the radar data set have different corresponding collection times, an alignment process is performed based on the camera data set and the radar data set;
[0192] Obtaining a similarity matrix between the camera data set and the radar data set, and determining the camera data and the radar data corresponding to the same object based on the similarity matrix;
[0193] The camera data and radar data corresponding to the same object are fused to obtain fused data.
[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0195] Obtain the interval between the collection times of the camera data set and the radar data set;
[0196] The data set with the earlier acquisition time among the camera data set and the radar data set is taken as the earlier data set, and the data set with the later acquisition time is taken as the later data set. Based on the interval time, the data of each object in the earlier data set is adjusted.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] For the camera data of each object in the camera data set and the radar data of each object in the radar data set, based on the first lateral distance and the first longitudinal distance included in the camera data of the corresponding object in the camera data set, and the second lateral distance and the second longitudinal distance included in the radar data of the corresponding object in the radar data set, determine the similarity value between the camera data of the corresponding object in the camera data set and the radar data of the corresponding object in the radar data set, and construct a similarity matrix based on the similarity values.
[0199] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0200] Based on the similarity matrix, obtain a square matrix;
[0201] Subtract the minimum value of the current row from the value of each row in the square matrix to obtain a row reduction matrix;
[0202] Subtract the minimum value of the current column from the value of each column in the row reduction matrix to obtain the column reduction matrix;
[0203] Determine the number of preset lines in the column reduction matrix; wherein the preset lines are lines that cover all zeros in the column reduction matrix through horizontal and vertical lines, and the total number of horizontal and vertical lines is the smallest;
[0204] In the case where the number of preset lines is less than the matrix dimension of the square matrix, the minimum value among the values not passed by the preset lines is determined as the target value, the target value is added to the values passed by two preset lines at the same time, the target value is subtracted from the values not passed by the preset lines, and the values passed by one preset line are not processed to obtain a processed matrix;
[0205] Determine the number of preset lines in the processed matrix. If the number of preset lines in the processed matrix is less than the matrix dimension of the square matrix, return to the step of determining the minimum value among the values not passed by the preset lines and continue to execute until the number of preset lines in the processed matrix is the same as the matrix dimension of the square matrix, thereby obtaining a target matrix.
[0206] Determine the target positions in the target matrix, wherein the number of the target positions is the same as the matrix dimension of the square matrix, the values of the target positions are all 0, and the target positions are in different rows and columns;
[0207] The data corresponding to the corresponding row and the corresponding column of the target position are determined as the camera data and radar data corresponding to the same object.
[0208] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0209] The target data included in the camera data corresponding to the same object and the longitudinal data included in the radar data corresponding to the same object are fused to obtain fused data; wherein the target data includes transverse data and object type data.
[0210] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0211] Acquire an original camera data set and an original radar data set whose collection time is before a preset time and closest to the preset time;
[0212] For the camera data of each object in the original camera data set, if the longitudinal distance included in the camera data of an object is greater than a preset distance, all camera data of the corresponding object are deleted from the original camera data set to obtain a camera data set;
[0213] For the radar data of each object in the original radar data set, when the longitudinal speed included in the radar data of an object is 0, all radar data of the corresponding object are deleted from the original radar data set to obtain a radar data set.
[0214] The implementation principle and technical effects of the above embodiment are similar to those of the above method embodiment and will not be repeated here.
[0215] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0216] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0217] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data fusion method, characterized in that: The method comprises: Acquire a camera data set and a radar data set whose collection time is before a preset time and closest to the preset time, wherein the camera data set is composed of camera data of each object in the target scene at the corresponding collection time, and the radar data set is composed of radar data of each object in the target scene at the corresponding collection time; When the camera data set and the radar data set have different corresponding collection times, performing alignment processing based on the camera data set and the radar data set; Obtaining a similarity matrix between the camera data set and the radar data set, and determining camera data and radar data corresponding to the same object based on the similarity matrix; The camera data and radar data corresponding to the same object are fused to obtain fused data.
2. The method according to claim 1, characterized in that The performing alignment processing based on the camera data set and the radar data set includes: Obtaining the interval between the collection times of the camera data set and the radar data set; The data set collected earlier than the camera data set and the radar data set is taken as the earlier data set, and the data set collected later than the radar data set is taken as the later data set. Based on the interval time, the data of each object in the earlier data set is adjusted.
3. The method according to claim 1, characterized in that The obtaining a similarity matrix between the camera data set and the radar data set includes: For the camera data of each object in the camera data set and the radar data of each object in the radar data set, based on the first lateral distance and the first longitudinal distance included in the camera data of the corresponding object in the camera data set, and the second lateral distance and the second longitudinal distance included in the radar data of the corresponding object in the radar data set, determine the similarity value between the camera data of the corresponding object in the camera data set and the radar data of the corresponding object in the radar data set, and construct a similarity matrix based on the similarity values.
4. The method according to claim 1, characterized in that: The determining, based on the similarity matrix, the camera data and the radar data corresponding to the same object comprises: Based on the similarity matrix, obtaining a square matrix; Subtract the minimum value of the current row from the value of each row in the square matrix to obtain a row reduction matrix; Subtract the minimum value of the current column from the value of each column in the row reduction matrix to obtain a column reduction matrix; Determine the number of preset lines in the column reduction matrix; wherein the preset lines are lines that cover all zeros in the column reduction matrix through horizontal and vertical lines, and the sum of the number of horizontal and vertical lines is the smallest; In the case where the number of the preset lines is less than the matrix dimension of the square matrix, the minimum value among the values not passed by the preset lines is determined as the target value, the target value is added to the values passed by two preset lines at the same time, the target value is subtracted from the values not passed by the preset lines, and the values passed by one preset line are not processed, to obtain a processed matrix; Determine the number of the preset lines in the processed matrix, and if the number of the preset lines in the processed matrix is less than the matrix dimension of the square matrix, return to the step of determining the minimum value among the values not passed by the preset lines and continue to execute until the number of the preset lines in the processed matrix is the same as the matrix dimension of the square matrix, thereby obtaining a target matrix; Determining target positions in the target matrix, wherein the number of the target positions is the same as the matrix dimension of the square matrix, the values of the target positions are all 0, and the target positions are in different rows and columns; The data corresponding to the corresponding row and the corresponding column of the target position are determined as the camera data and the radar data corresponding to the same object.
5. The method according to claim 1, characterized in that: The fusing of the camera data and the radar data corresponding to the same object includes: The target data included in the camera data corresponding to the same object is fused with the longitudinal data included in the radar data corresponding to the same object to obtain fused data; wherein the target data includes transverse data and object type data.
6. The method according to any one of claims 1 to 5, characterized in that: The acquiring of the camera data set and the radar data set whose collection time is before the preset time and closest to the preset time comprises: Acquire an original camera data set and an original radar data set whose collection time is before a preset time and closest to the preset time; For the camera data of each object in the original camera data set, if the longitudinal distance included in the camera data of an object is greater than a preset distance, all camera data of the corresponding object are deleted from the original camera data set to obtain a camera data set; For the radar data of each object in the original radar data set, when the longitudinal speed included in the radar data of an object is 0, all radar data of the corresponding object are deleted from the original radar data set to obtain a radar data set.
7. A data fusion device, characterized in that: The device comprises: A data set acquisition module, used to acquire a camera data set and a radar data set whose acquisition time is before a preset time and closest to the preset time, wherein the camera data set is composed of camera data of each object in the target scene at the corresponding acquisition time, and the radar data set is composed of radar data of each object in the target scene at the corresponding acquisition time; An alignment processing module, configured to perform alignment processing based on the camera data set and the radar data set when the respective corresponding collection times of the camera data set and the radar data set are different; A data determination module, configured to obtain a similarity matrix between the camera data set and the radar data set, and determine the camera data and the radar data corresponding to the same object based on the similarity matrix; The data fusion module is used to fuse the camera data and radar data corresponding to the same object to obtain fused data.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Target detection method, device and system, electronic equipment and storage medium
CN113447923A
Data fusion method and device
CN114114241A
Target detection and tracking method based on millimeter wave radar and monocular vision fusion
CN115372958A
Traffic target tracking method based on thunder-vision integration
CN115965655A
