Association method and device of target detection track, equipment and storage medium
By converting the detection results of millimeter-wave radar and visual sensors to camera and pixel coordinate systems, calculating the target matching cost and performing trajectory correlation, the problem of low correlation accuracy caused by the speed measurement deviation of the visual sensor under bumpy road sections is solved, and the detection trajectory correlation is improved. accuracy and matching efficiency.
Patent Information
- Application Number
- CN202410669033.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-30
AI Technical Summary
On bumpy road sections, the visual sensor's speed measurement and ranging deviation is large, resulting in low accuracy in the correlation between millimeter wave radar and visual sensor detection trajectories.
By converting the detection results of millimeter-wave radar and visual sensors to the camera coordinate system and pixel coordinate system, the target matching cost is calculated, trajectory association is performed based on the matching relationship, and the pre-stored matching relationship list is used to improve matching efficiency.
It improves the accuracy of target detection trajectory correlation, reduces the problem of low correlation accuracy caused by visual sensor speed measurement deviation under bumpy road sections, and improves matching efficiency.
Smart Images

Figure CN118566903A
Abstract
Description
Technical Field
[0001] The present application relates to the field of autonomous driving technology, and in particular to a method, device, equipment and storage medium for associating target detection trajectories. Background Art
[0002] Both millimeter-wave radar-based object detection and visual sensor-based object detection are widely used in the fields of intelligent transportation and autonomous driving. In order to improve the perception ability of autonomous vehicles, the detection trajectory of millimeter-wave radar and the detection trajectory of visual sensors can be associated, so that the detection capabilities of visual sensors and millimeter-wave radar can complement each other, thereby helping vehicles better cope with target detection tasks in complex scenes.
[0003] At present, when associating the detection trajectory of the millimeter-wave radar and the detection trajectory of the visual sensor, the matching cost value is usually determined by calculating the Mahalanobis distance based on the distance or speed, and then the matching relationship of the detection target is determined based on the cost value. However, due to the large deviation in speed and distance measurement of the visual sensor on bumpy roads, the accuracy of this method is not high. Summary of the invention
[0004] The present application provides a method for associating target detection trajectories, which can improve the accuracy of associating detection trajectories of two different sensors.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect of an embodiment of the present application, a method for associating target detection trajectories is provided, the method comprising:
[0007] Acquire a first detection result of the millimeter wave radar and a second detection result of the visual sensor, wherein the first detection result includes first track coordinates corresponding to the plurality of first targets detected, and the second detection result includes second track coordinates corresponding to the plurality of second targets detected;
[0008] Convert each of the first trajectory coordinates and each of the second trajectory coordinates to the camera coordinate system of the visual sensor to obtain corresponding first camera trajectory coordinates and second camera trajectory coordinates;
[0009] Convert each of the first track coordinates into a pixel coordinate system corresponding to the visual sensor to obtain corresponding first pixel track coordinates;
[0010] Determining a target matching cost between each first target and each second target according to each first camera trajectory coordinate, each second camera trajectory coordinate, each first pixel trajectory coordinate and each second trajectory coordinate;
[0011] A matching relationship between each first target and each second target is determined according to each target matching cost, and trajectory association is performed based on the matching relationship, wherein the matching relationship includes a plurality of matching pairs, and a matching pair indicates a second target identifier corresponding to a first target identifier.
[0012] As a possible implementation manner, determining the target matching cost of each first target and each second target according to each first camera trajectory coordinate, each second camera trajectory coordinate, each first pixel trajectory coordinate, and each second trajectory coordinate includes:
[0013] Determine a first matching cost between each first target and each second target according to the Z coordinate in each of the first camera trajectory coordinates and the Z coordinate in each of the second camera trajectory coordinates;
[0014] Determine a second matching cost of each first target and each second target according to the X coordinate and the Y coordinate in each of the first pixel trajectory coordinates and the X coordinate and the Y coordinate in each of the second trajectory coordinates;
[0015] A target matching cost between each first target and each second target is determined according to the first matching cost and the corresponding second matching cost.
[0016] As a possible implementation manner, the first detection result includes a first target identifier corresponding to each of the first targets, and the second detection result includes a second target identifier corresponding to each of the second targets;
[0017] Before converting each of the first track coordinates and each of the second track coordinates into the camera coordinate system of the visual sensor, the method further includes:
[0018] Matching the first target identifier with the first target identifier in the pre-stored matching relationship list, if the same target identifier can be matched in the matching relationship list, obtaining the corresponding second target identifier from the second detection result according to the target matching pair of the same target identifier matched, and updating the matching time of the target matching pair;
[0019] If the same target identifier is not matched in the matching relationship list, each of the first track coordinates and each of the second track coordinates are converted into the camera coordinate system of the visual sensor respectively.
[0020] As a possible implementation manner, before converting each of the first track coordinates and each of the second track coordinates into a camera coordinate system of the visual sensor, the method further includes:
[0021] Convert the first trajectory coordinates and the second trajectory coordinates into a world coordinate system to obtain corresponding first world trajectory coordinates and second world trajectory coordinates;
[0022] The converting each of the first track coordinates and each of the second track coordinates into the camera coordinate system of the visual sensor includes:
[0023] Each of the first world trajectory coordinates and each of the second world trajectory coordinates are respectively converted into a camera coordinate system of a visual sensor.
[0024] As a possible implementation manner, after converting the first trajectory coordinates and the second trajectory coordinates into a world coordinate system, the method further includes:
[0025] obtaining a millimeter wave frame timestamp of the millimeter wave sensor and an image timestamp of the visual sensor,
[0026] According to the millimeter wave frame visual stamp and the image visual stamp, the first world trajectory coordinate and the second world trajectory coordinate are subjected to time synchronization processing to obtain corresponding first synchronized world trajectory coordinates and second synchronized world trajectory coordinates;
[0027] The converting each of the first world trajectory coordinates and each of the second world trajectory coordinates into a camera coordinate system of a visual sensor includes:
[0028] The first synchronized world trajectory coordinates and the second synchronized world trajectory coordinates are respectively converted into the camera coordinate system of the visual sensor.
[0029] As a possible implementation manner, determining the matching relationship between each of the first targets and each of the second targets according to each of the target matching costs includes:
[0030] The matching cost of each of the targets is input into a preset KM matching algorithm to obtain a matching relationship between each of the first targets and each of the second targets.
[0031] As a possible implementation manner, the method further includes:
[0032] The matching relationship is added to the matching relationship list, and the matching time of each matching pair in the matching relationship list is detected, and the matching pairs whose matching time exceeds a preset interval time are deleted from the matching relationship list.
[0033] In a second aspect of an embodiment of the present application, a device for associating target detection trajectories is provided, the device comprising:
[0034] an acquisition module, configured to acquire a first detection result of the millimeter wave radar and a second detection result of the visual sensor, wherein the first detection result includes first track coordinates corresponding to the plurality of first targets detected, and the second detection result includes second track coordinates corresponding to the plurality of second targets detected;
[0035] A first conversion module, used for converting each of the first trajectory coordinates and each of the second trajectory coordinates into the camera coordinate system of the visual sensor, to obtain corresponding first camera trajectory coordinates and second camera trajectory coordinates;
[0036] A second conversion module, used for converting each of the first track coordinates into a pixel coordinate system corresponding to the visual sensor to obtain corresponding first pixel track coordinates;
[0037] A first determination module, configured to determine a target matching cost between each first target and each second target according to each first camera trajectory coordinate, each second camera trajectory coordinate, each first pixel trajectory coordinate, and each second trajectory coordinate;
[0038] The second determination module is used to determine the matching relationship between each first target and each second target according to the target matching cost, and perform trajectory association based on the matching relationship, wherein the matching relationship includes multiple matching pairs, and one matching pair indicates a second target identifier corresponding to a first target identifier.
[0039] According to a third aspect of an embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for associating target detection trajectories in the first aspect of an embodiment of the present application is implemented.
[0040] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for associating target detection trajectories in the first aspect of an embodiment of the present application is implemented.
[0041] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0042] The target detection trajectory association method of the embodiment of the present application obtains the first detection result of the millimeter wave radar and the second detection result of the visual sensor, and then converts the first trajectory coordinates of each first target in the first detection result and the second trajectory coordinates corresponding to each second target in the second detection result to the camera coordinate system of the visual sensor respectively, to obtain the corresponding first camera trajectory coordinates and second camera trajectory coordinates, and then converts each first trajectory coordinate to the pixel coordinate system corresponding to the visual sensor to obtain the corresponding first pixel trajectory coordinates, and then determines the target matching cost of each first target and each second target according to each first camera trajectory coordinate, each second camera trajectory coordinate, each first pixel trajectory coordinate and each second trajectory coordinate, and finally determines the matching relationship between each first target and each second target according to each target matching cost, and performs trajectory association based on the matching relationship, so that the matching cost of the first target and the second target is determined according to the mapped coordinates, which can avoid the problem of low association accuracy caused by large speed measurement deviation of the visual sensor on bumpy roads. Furthermore, a matching relationship list is formed by binding and storing the matching relationships, so that before matching, the corresponding matching relationship can be found and determined in the matching relationship list according to the target identifier in advance, thereby improving the matching efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A process of associating a target detection trajectory provided in an embodiment of the present application Figure 1 ;
[0044] Figure 2 A process of associating a target detection trajectory provided in an embodiment of the present application Figure 2 ;
[0045] Figure 3 A structural diagram of a target detection trajectory association device provided in an embodiment of the present application;
[0046] Figure 4 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.
[0049] Additionally, the use of “based on” or “according to” is meant to be open and inclusive, as a process, step, calculation, or other action “based on” or “according to” one or more conditions or values may, in practice, be based on additional conditions or beyond values.
[0050] Both millimeter-wave radar-based object detection and visual sensor-based object detection are widely used in the fields of intelligent transportation and autonomous driving. Visual sensors are easily affected by insufficient light or bad weather, and visual sensors alone cannot provide accurate distance and speed information. Millimeter-wave radar can provide accurate distance, speed, and other information, and can operate around the clock, but sparsity and noise make radar unable to be used as the main source of information.
[0051] In general, visual sensors have good resolution and classification capabilities, and radars have accurate measurement capabilities such as target distance and speed and are robust to severe weather. By associating and fusing the detection trajectory of the millimeter-wave radar with the detection trajectory information of the visual sensor, the detection capabilities of the visual sensor and the millimeter-wave radar can complement each other to help vehicles better cope with target detection tasks in complex scenarios. In the process of trajectory association, the most important thing is to find the matching relationship between targets in different trajectories, that is, to find the corresponding trajectory information of the same target in different trajectories.
[0052] At present, when associating the detection trajectory of the millimeter-wave radar and the detection trajectory of the visual sensor, the matching cost value is usually determined by calculating the Mahalanobis distance based on the distance or speed, and then the matching relationship of the detection target is determined based on the cost value. However, due to the large deviation in speed and distance measurement of the visual sensor on bumpy roads or in bad weather, the accuracy of this method is not high.
[0053] In order to solve the above problems, the present application embodiment provides a method for associating target detection trajectories, such as Figure 1 As shown, the method comprises the following steps:
[0054] Step 101, obtaining a first detection result of the millimeter wave radar and a second detection result of the visual sensor, wherein the first detection result includes first trajectory coordinates corresponding to multiple first targets detected, and the second detection result includes second trajectory coordinates corresponding to multiple second targets detected.
[0055] Among them, the first detection result of the millimeter wave radar includes multiple data sets, each data set corresponds to a detected target, and each data set includes the target identification, position coordinates, speed information and timestamp corresponding to the target, and the position coordinates and speed information are based on the millimeter wave radar coordinate system.
[0056] Similarly, the second detection result of the visual sensor also includes multiple data sets, each data set corresponds to a detected target, and each data set includes a target identifier, position coordinates, target type and timestamp corresponding to the target. The position coordinates in the second detection result are based on the pixel coordinate system of the visual sensor. It should be noted that the visual sensor can be a two-dimensional sensor or a three-dimensional sensor, and this application does not specifically limit this.
[0057] It should be noted that there are only a few tracking units inside the millimeter-wave radar, and each tracking unit corresponds to only one tracking target identifier, that is, the target ID. Therefore, the target ID actually given by the millimeter-wave radar has only a few fixed values, but the millimeter-wave radar will use a certain field to distinguish whether the current target is a newly tracked target. Considering that the downstream requires this ID to be unique, the ID needs to be remapped; the ID remapping method is as follows, for the current target cur_id, assuming that the current ID set id_set is known, if cur_id∈id_set, and there is a certain output attribute of the millimeter-wave radar that knows that the current tracking target is a newly tracked target, then cur_id=cur_id+1, otherwise keep cur_id unchanged.
[0058] Step 102: Convert each of the first trajectory coordinates and each of the second trajectory coordinates into the camera coordinate system of the visual sensor to obtain corresponding first camera trajectory coordinates and second camera trajectory coordinates.
[0059] Step 103: convert each of the first track coordinates into a pixel coordinate system corresponding to the visual sensor to obtain corresponding first pixel track coordinates.
[0060] Step 104: determine the target matching cost of each first target and each second target according to each of the first camera trajectory coordinates, each of the second camera trajectory coordinates, each of the first pixel trajectory coordinates, and each of the second trajectory coordinates.
[0061] Step 105: Determine a matching relationship between each first target and each second target according to each target matching cost, and perform trajectory association based on the matching relationship.
[0062] The matching relationship includes a plurality of matching pairs, and a matching pair indicates a second target identifier corresponding to a first target identifier. The first target identifier and the second target identifier in a matching pair are used to indicate a target in reality.
[0063] In addition, trajectory association based on matching relationships refers to determining the association relationship between trajectory information corresponding to the first target identifier in a matching pair and the trajectory information of the second target identifier. The associated trajectory information can be used for vehicle perception in an autonomous driving scenario after information fusion processing.
[0064] Optionally, the first detection result includes a first target identifier corresponding to each of the first targets, and the second detection result includes a second target identifier corresponding to each of the second targets; after executing step 101 and before executing step 102, if Figure 2 As shown, the method also includes:
[0065] Step 201: Match the first target identifier with the first target identifier in the pre-stored matching relationship list;
[0066] Step 202: If the same target identifier can be matched in the matching relationship list, then according to the target matching pair of the same target identifier, the corresponding second target identifier is obtained from the second detection result, and the matching time of the target matching pair is updated.
[0067] Step 203: If the same target identifier is not matched in the matching relationship list, each of the first trajectory coordinates and each of the second trajectory coordinates are converted to the camera coordinate system of the visual sensor.
[0068] Among them, the matching relationship list includes multiple matching pair sets match_id determined previously, and a matching pair can be expressed as {id_r_cur, id_v_cur, stamp}, id_r_cur represents the current trajectory of a first target in the current millimeter-wave radar, id_v_cur represents the current trajectory of a second target in the current visual sensor, stamp is the current update time of the matching pair, and id_r_cur and id_v_cur represent the trajectory of the same target in reality.
[0069] That is to say, for the next frame of millimeter wave trajectory id_r_next, if a match id_r_next=id_r_cur can be found in the set match_id, then id_v_next=id_v_cur, that is, {id_r_next, id_v_next} is a matching pair, and if a new matching relationship is established, stamp is updated to the current time. If id_r_next cannot find a matching pair in match_id, that is, id_r_cur cannot be found, then the ordinary matching algorithm is entered, that is, step 102 is started. By binding the matching relationship and storing it in the matching relationship list when the matching relationship can be determined, so as to facilitate the relationship matching of the next frame of trajectory, the matching efficiency can be improved while ensuring the accuracy of the matching relationship.
[0070] Optionally, before executing step 102, the method further includes:
[0071] Convert the first trajectory coordinates and the second trajectory coordinates into a world coordinate system to obtain corresponding first world trajectory coordinates and second world trajectory coordinates;
[0072] Correspondingly, the process of converting each of the first track coordinates and each of the second track coordinates into the camera coordinate system of the visual sensor in step 102 may also be:
[0073] Each of the first world trajectory coordinates and each of the second world trajectory coordinates are respectively converted into a camera coordinate system of a visual sensor.
[0074] For example, the coordinate position P of the first target detected by the millimeter wave radar in the millimeter wave radar coordinate system (R coordinate system) is R It can be expressed as (x R ,y R , 0), speed information V R It can be expressed as (v xR , v yR , 0), and the rotation relationship from the millimeter wave radar coordinates to the world coordinate system (M coordinate system) is P 1 Matrix, the translation relationship is T 1 Matrix, the velocity information V of the millimeter wave radar in the world coordinate system RM It can be expressed as (v xRM ,v yRM ,0), the position coordinates of the millimeter wave radar in the world coordinate system P RM It can be expressed as (x RM ,y RM , 0), then P RM =P R *P 1+ T 1 , VRM =V R *P 1 .
[0075] The coordinate position P of the second target detected by the visual sensor in the pixel coordinate system (V coordinate system) corresponding to the visual sensor V It can be expressed as (x V ,y V , 0), speed information V V It can be expressed as (v Xv , v Yv , 0), and the rotation relationship matrix from pixel coordinates to the world coordinate system (M coordinate system) is P 2 Matrix, the translation relationship is T 2 Matrix, the velocity V of the second target in the world coordinate system VM It can be expressed as (V xVM ,V yvM ,0), the position of the second target in the world coordinate system P VM It can be expressed as (x vM ,y vM , 0). Then P VM =p v *P 2+ T 2 , V VM =V V *P 2 .
[0076] Optionally, after converting each of the first world trajectory coordinates and each of the second world trajectory coordinates into a camera coordinate system of a visual sensor, the method further includes:
[0077] obtaining a millimeter wave frame timestamp of the millimeter wave sensor and an image timestamp of the visual sensor,
[0078] According to the millimeter wave frame visual stamp and the image visual stamp, the first world trajectory coordinate and the second world trajectory coordinate are subjected to time synchronization processing to obtain corresponding first synchronized world trajectory coordinates and second synchronized world trajectory coordinates;
[0079] The converting of each of the first world trajectory coordinates and each of the second world trajectory coordinates into the camera coordinate system of the visual sensor includes: converting the first synchronous world trajectory coordinates and the second synchronous world trajectory coordinates into the camera coordinate system of the visual sensor, thereby avoiding position errors caused by time errors and improving matching accuracy.
[0080] For example, it is known that the millimeter wave frame timestamp is t R , unit is (us), image timestamp is t P, the unit is (us), then the millimeter wave position after time synchronization is:
[0081] x RM =x RM +vx RM *(t R -t P ) / 1e -6
[0082] y RM =y RM +vy RM *(t R -t P ) / 1e -6
[0083] The corresponding visual target position is (x VM ,y VM , 0).
[0084] Optionally, the process of determining the target matching cost of each first target and each second target according to each first camera trajectory coordinate, each second camera trajectory coordinate, each first pixel trajectory coordinate and each second trajectory coordinate in step 104 may be:
[0085] Determine a first matching cost between each first target and each second target according to the Z coordinate in each of the first camera trajectory coordinates and the Z coordinate in each of the second camera trajectory coordinates;
[0086] Determine a second matching cost of each first target and each second target according to the X coordinate and the Y coordinate in each of the first pixel trajectory coordinates and the X coordinate and the Y coordinate in each of the second trajectory coordinates;
[0087] A target matching cost between each first target and each second target is determined according to the first matching cost and the corresponding second matching cost.
[0088] In the actual implementation process, the rotation relationship from the world coordinate system (M coordinate system) to the camera coordinate system (C coordinate system) is known to be P C The matrix and translation relationship are T C Matrix, the rotation relationship from the camera coordinate system to the pixel coordinate system is P I Matrix, the translation relationship is T I Matrix, for P RM Projected into the camera coordinate system, the coordinates of the first camera trajectory can be expressed as P RMC , for P VM Projected into the camera coordinate system, the coordinates of the second camera trajectory can be expressed as P VMC Then, P RMC =P C *P RM+T C , P VMC =P C *P VM +T C .P RMC The Z coordinate in the coordinates is the Z coordinate in the first camera coordinates, which can be expressed as Z 1 , P VMC The Z coordinate in the coordinates is the Z coordinate in the second camera coordinates, which can be expressed as Z 2 .
[0089] For example, the first matching cost d =(Z 1 -Z 2 ) / Z 1 Of course, the first matching cost can be calculated in a variety of ways as long as the representation indicator Z 1 and Z 2 The similarity between them is sufficient, and this application does not make any specific limitation on this.
[0090] P RMC Projected to the pixel coordinate system, the first pixel trajectory coordinate P RMCV =P I *P RMC +T I Then P RMCV The X coordinate and Y coordinate in are the X coordinate and Y coordinate in the coordinate of the first pixel trajectory, which can be expressed as X 1 and Y 1 , then according to the coordinate position P of the second target pixel in the coordinate system V The width and height of the 2D frame corresponding to the coordinate position can be obtained as w and h, respectively. The two-dimensional points at the upper left corner and lower right corner of the 2D frame are (x left_up ,y left_up )、(x right_up ,y right_up ), if x left_up = <X 1 <=x right_up And y left_up = <Y 1 <=y right_up , then the second matching cost cost t =1.0; otherwise the second matching cost cost t =std::min(w / 2*X 1 ,h / 2*Y 1 ). The final target matching cost cost = 1.0-cost t *cost d .
[0091] Optionally, the process of determining the matching relationship between each first target and each second target according to each target matching cost in step 105 may be:
[0092] In one implementation, each target matching cost may be input into a preset KM matching algorithm to obtain a matching relationship between each first target and each second target.
[0093] It should be noted that when the KM matching algorithm is used to obtain the matching relationship, the matching relationship can be determined when multiple matches have the same matching results, which can prevent matching errors.
[0094] In another embodiment, if the target matching cost indicates that the approximation between the first target and the second target is less than a preset condition, then the matching relationship is determined. Specifically, if the target matching cost between the first target and the second target is less than a preset threshold, then the matching relationship is determined.
[0095] Optionally, after determining the matching relationship between each first target and each second target according to each target matching cost in step 105, the method further includes:
[0096] The matching relationship is added to the matching relationship list, and the matching time of each matching pair in the matching relationship list is detected, and the matching pairs whose matching time exceeds the preset interval time are deleted from the matching relationship list. This can reduce memory usage and prevent the problem of accidental deletion due to a short interval time.
[0097] The present application also provides a target detection track association device, such as Figure 3 As shown, the device comprises:
[0098] An acquisition module 11 is used to acquire a first detection result of the millimeter wave radar and a second detection result of the visual sensor, wherein the first detection result includes first track coordinates corresponding to the detected multiple first targets, and the second detection result includes second track coordinates corresponding to the detected multiple second targets;
[0099] A first conversion module 12 is used to convert each of the first trajectory coordinates and each of the second trajectory coordinates into the camera coordinate system of the visual sensor to obtain corresponding first camera trajectory coordinates and second camera trajectory coordinates;
[0100] A second conversion module 13, used for converting each of the first track coordinates into a pixel coordinate system corresponding to the visual sensor to obtain corresponding first pixel track coordinates;
[0101] A first determination module 14 is used to determine the target matching cost of each first target and each second target according to each first camera trajectory coordinate, each second camera trajectory coordinate, each first pixel trajectory coordinate and each second trajectory coordinate;
[0102] The second determination module 15 is used to determine the matching relationship between each first target and each second target according to the target matching cost, and perform trajectory association based on the matching relationship, wherein the matching relationship includes multiple matching pairs, and one matching pair indicates a second target identifier corresponding to a first target identifier.
[0103] In one embodiment, the first determining module 14 is specifically configured to:
[0104] Determine a first matching cost between each first target and each second target according to the Z coordinate in each of the first camera trajectory coordinates and the Z coordinate in each of the second camera trajectory coordinates;
[0105] Determine a second matching cost of each first target and each second target according to the X coordinate and the Y coordinate in each of the first pixel trajectory coordinates and the X coordinate and the Y coordinate in each of the second trajectory coordinates;
[0106] A target matching cost between each first target and each second target is determined according to the first matching cost and the corresponding second matching cost.
[0107] In one embodiment, the first detection result includes a first target identifier corresponding to each of the first targets, and the second detection result includes a second target identifier corresponding to each of the second targets; the device further includes a matching module 16, and the matching module 16 is used to:
[0108] Matching the first target identifier with the first target identifier in the pre-stored matching relationship list, if the same target identifier can be matched in the matching relationship list, obtaining the corresponding second target identifier from the second detection result according to the target matching pair of the same target identifier matched, and updating the matching time of the target matching pair;
[0109] If the same target identifier is not matched in the matching relationship list, each of the first track coordinates and each of the second track coordinates are converted into the camera coordinate system of the visual sensor respectively.
[0110] In one embodiment, the first conversion module 12 is further configured to:
[0111] Convert the first trajectory coordinates and the second trajectory coordinates into a world coordinate system to obtain corresponding first world trajectory coordinates and second world trajectory coordinates;
[0112] The first conversion module 12 is specifically used for:
[0113] Each of the first world trajectory coordinates and each of the second world trajectory coordinates are respectively converted into a camera coordinate system of a visual sensor.
[0114] In one embodiment, the first conversion module 12 is further configured to:
[0115] obtaining a millimeter wave frame timestamp of the millimeter wave sensor and an image timestamp of the visual sensor,
[0116] According to the millimeter wave frame visual stamp and the image visual stamp, the first world trajectory coordinate and the second world trajectory coordinate are subjected to time synchronization processing to obtain corresponding first synchronized world trajectory coordinates and second synchronized world trajectory coordinates;
[0117] Correspondingly, the first conversion module 12 is specifically used for:
[0118] The first synchronized world trajectory coordinates and the second synchronized world trajectory coordinates are respectively converted into the camera coordinate system of the visual sensor.
[0119] In one embodiment, the second determining module 15 is specifically configured to:
[0120] The matching cost of each of the targets is input into a preset KM matching algorithm to obtain a matching relationship between each of the first targets and each of the second targets.
[0121] In one embodiment, the second determining module 15 is further configured to:
[0122] The matching relationship is added to the matching relationship list, and the matching time of each matching pair in the matching relationship list is detected, and the matching pair whose matching time exceeds a preset interval time is deleted from the matching relationship list.
[0123] The target detection trajectory association device provided in this embodiment can execute the target detection trajectory association method embodiment described above, and its implementation principle and technical effect are similar, which will not be elaborated herein.
[0124] For the specific definition of the association device of the target detection trajectory, please refer to the definition of the association method of the target detection trajectory above, which will not be repeated here. Each module in the above-mentioned association device of the target detection trajectory can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor of the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0125] The execution subject of the target detection trajectory association method provided in the embodiment of the present application may be an electronic device, which may be a computer device, a terminal device, a server or a server cluster, and the embodiment of the present application does not specifically limit this.
[0126] Figure 4 This is a schematic diagram of the internal structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown, the electronic device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement the steps of the method for associating the target detection trajectory provided in each of the above embodiments. The internal memory provides a cache operating environment for the operating system and the computer program in the non-volatile storage medium.
[0127] Those skilled in the art will understand that Figure 4 The internal structure diagram of the electronic device shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0128] In another embodiment of the present application, 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 method for associating target detection trajectories in the embodiment of the present application are implemented.
[0129] In another embodiment of the present application, a computer program product is further provided. The computer program product includes computer instructions. When the computer instructions execute the various steps of the method for associating target detection trajectories in the method flow shown in the above method embodiment,
[0130] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer execution instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more servers that can be integrated with a medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0131] 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.
[0132] The above 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 invention patent. 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 patent of the present application shall be subject to the attached claims.
Claims
1. A method for associating target detection trajectories, It is characterized in that The method comprises: Acquire a first detection result of the millimeter wave radar and a second detection result of the visual sensor, wherein the first detection result includes first track coordinates corresponding to the plurality of first targets detected, and the second detection result includes second track coordinates corresponding to the plurality of second targets detected; Convert each of the first trajectory coordinates and each of the second trajectory coordinates to the camera coordinate system of the visual sensor to obtain corresponding first camera trajectory coordinates and second camera trajectory coordinates; Convert each of the first track coordinates into a pixel coordinate system corresponding to the visual sensor to obtain corresponding first pixel track coordinates; Determining a target matching cost between each first target and each second target according to each first camera trajectory coordinate, each second camera trajectory coordinate, each first pixel trajectory coordinate and each second trajectory coordinate; A matching relationship between each first target and each second target is determined according to each target matching cost, and trajectory association is performed based on the matching relationship, wherein the matching relationship includes a plurality of matching pairs, and a matching pair indicates a second target identifier corresponding to a first target identifier.
2. The method according to claim 1, It is characterized in that The determining the target matching cost of each first target and each second target according to each first camera trajectory coordinate, each second camera trajectory coordinate, each first pixel trajectory coordinate and each second trajectory coordinate comprises: Determine a first matching cost between each first target and each second target according to the Z coordinate in each of the first camera trajectory coordinates and the Z coordinate in each of the second camera trajectory coordinates; Determine a second matching cost of each first target and each second target according to the X coordinate and the Y coordinate in each of the first pixel trajectory coordinates and the X coordinate and the Y coordinate in each of the second trajectory coordinates; A target matching cost between each first target and each second target is determined according to the first matching cost and the corresponding second matching cost.
3. The method according to claim 1 or 2, It is characterized in that The first detection result includes a first target identifier corresponding to each of the first targets, and the second detection result includes a second target identifier corresponding to each of the second targets; Before converting each of the first track coordinates and each of the second track coordinates into the camera coordinate system of the visual sensor, the method further includes: Matching the first target identifier with the first target identifier in the pre-stored matching relationship list, if the same target identifier can be matched in the matching relationship list, obtaining the corresponding second target identifier from the second detection result according to the target matching pair of the same target identifier matched, and updating the matching time of the target matching pair; If the same target identifier is not matched in the matching relationship list, each of the first track coordinates and each of the second track coordinates are converted into the camera coordinate system of the visual sensor respectively.
4. The method according to claim 1, It is characterized in that Before converting each of the first track coordinates and each of the second track coordinates into the camera coordinate system of the visual sensor, the method further includes: Convert the first trajectory coordinates and the second trajectory coordinates into a world coordinate system to obtain corresponding first world trajectory coordinates and second world trajectory coordinates; The converting each of the first track coordinates and each of the second track coordinates into the camera coordinate system of the visual sensor includes: Each of the first world trajectory coordinates and each of the second world trajectory coordinates are respectively converted into a camera coordinate system of a visual sensor.
5. The method according to claim 4, It is characterized in that After converting the first trajectory coordinates and the second trajectory coordinates into a world coordinate system, the method further includes: obtaining a millimeter wave frame timestamp of the millimeter wave sensor and an image timestamp of the visual sensor, According to the millimeter wave frame visual stamp and the image visual stamp, the first world trajectory coordinate and the second world trajectory coordinate are subjected to time synchronization processing to obtain corresponding first synchronized world trajectory coordinates and second synchronized world trajectory coordinates; The converting each of the first world trajectory coordinates and each of the second world trajectory coordinates into a camera coordinate system of a visual sensor includes: The first synchronized world trajectory coordinates and the second synchronized world trajectory coordinates are respectively converted into the camera coordinate system of the visual sensor.
6. The method according to claim 1, It is characterized in that The determining the matching relationship between each of the first targets and each of the second targets according to the target matching cost includes: The matching cost of each of the targets is input into a preset KM matching algorithm to obtain a matching relationship between each of the first targets and each of the second targets.
7. The method according to claim 3, It is characterized in that The method further comprises: The matching relationship is added to the matching relationship list, and the matching time of each matching pair in the matching relationship list is detected, and the matching pair whose matching time exceeds a preset interval time is deleted from the matching relationship list.
8. A device for associating target detection trajectories, It is characterized in that The device comprises: an acquisition module, configured to acquire a first detection result of the millimeter wave radar and a second detection result of the visual sensor, wherein the first detection result includes first track coordinates corresponding to the plurality of first targets detected, and the second detection result includes second track coordinates corresponding to the plurality of second targets detected; A first conversion module, used for converting each of the first trajectory coordinates and each of the second trajectory coordinates into the camera coordinate system of the visual sensor, to obtain corresponding first camera trajectory coordinates and second camera trajectory coordinates; A second conversion module, used for converting each of the first track coordinates into a pixel coordinate system corresponding to the visual sensor to obtain corresponding first pixel track coordinates; A first determination module, configured to determine a target matching cost between each first target and each second target according to each first camera trajectory coordinate, each second camera trajectory coordinate, each first pixel trajectory coordinate, and each second trajectory coordinate; The second determination module is used to determine the matching relationship between each first target and each second target according to the target matching cost, and perform trajectory association based on the matching relationship, wherein the matching relationship includes multiple matching pairs, and one matching pair indicates a second target identifier corresponding to a first target identifier.
9. An electronic device, It is characterized in that The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for associating target detection trajectories according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor, the method for associating target detection trajectories as described in any one of claims 1 to 7 is implemented.
