Trajectory-based target id re-authentication and matching method and system

By dividing the breakpoints of the target's motion trajectory into H points and T points, and using the physical law of no sudden change in speed for matching, combined with the backtracking rematching scheme, the problem of identity ID changes caused by the loss of tracking of moving targets in a short period of time is solved, and the problem is improved. It improves matching accuracy and tracking accuracy, and enhances recognition efficiency and error tolerance.

WO2024198606A1PCT designated stage expired Publication Date: 2024-10-03NANJING UNIV OF POSTS & TELECOMM
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/070714
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-29
Filing Date
2024-01-05
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In a moving target tracking video analysis environment, the target may be lost in a short period of time, causing the identified ID to change and reducing the recognition efficiency. The matching accuracy and tracking accuracy of the existing technology are low.

Method used

By dividing the breakpoints of the target's motion trajectory into H points and T points, the physical law that the speed does not suddenly change is used for matching, and the backtracking rematching scheme is used to detect and correct mismatches and improve the matching accuracy.

Benefits of technology

It achieves high matching accuracy and tracking accuracy, reduces the amount of data processing, improves recognition efficiency, reduces the requirements for video clarity, and enhances fault tolerance and real-time performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024070714_03102024_PF_FP_ABST
    Figure CN2024070714_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention provides a trajectory-based target ID re-authentication and matching method and system. The method comprises: obtaining trajectory data of each target, respectively obtaining start point classifications of trajectories and end point classifications of the trajectories to respectively serve as H points and T points, and setting IDs for the H points and the T points; performing identity matching on different identities of the same target by means of trajectory characteristics, such that an H temporary storage unit stores H points that have been scanned and do not match the T points, an S temporary storage unit stores matched H-T point pairs, and a T temporary storage unit stores T points that have been scanned and do not match the H points, and the T points from the S temporary storage unit; re-matching the mismatched trajectories of the target; and using the H-T point pairs in an updated S temporary storage unit as matching results. The present invention can match two motion trajectories of the same target that are disconnected within a short period of time, has relatively high matching accuracy and tracking precision, involves a relatively small data processing amount, and can ensure the real-time performance of re-authentication.
Need to check novelty before this filing date? Find Prior Art

Description

Target ID re-authentication matching method and system based on trajectory Technical Field

[0001] The present invention relates to a trajectory-based target ID re-authentication matching method, and belongs to the field of computer identity recognition and matching. Background Art

[0002] Current identity recognition can identify objects with distinct features in a video and continuously track each object. However, in video analysis environments where moving objects are tracked, tracking of the target can be lost for a short period of time due to various reasons, resulting in the re-detection of the same target being identified as a different object from the original. For example, during video capture, an object may be obscured or the video resolution may be insufficient, resulting in loss of tracking of the target.

[0003] If tracking of a target is lost for a short period of time, it is necessary to re-identify the target. Since the identified ID may change, subsequent data processing is very complicated and requires re-identification, which significantly reduces recognition efficiency. Therefore, it is necessary to accurately and quickly match the same target that was lost for a short period of time to facilitate subsequent data processing.

[0004] To address the above issues, Chinese patent application publication number CN115170602A discloses an online multi-target tracking method, device, and storage medium, which also suffers from low matching accuracy and tracking precision.

[0005] The above problems are issues that should be considered and resolved in the trajectory-based target ID re-authentication matching process. Summary of the Invention

[0006] The purpose of the present invention is to provide a trajectory-based target ID re-authentication matching method to solve the problem that the target re-authentication matching accuracy and tracking precision need to be improved in the prior art.

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

[0008] A target ID re-authentication matching method based on trajectory includes the following steps:

[0009] S1. Obtain the trajectory data of each target and classify the first and last trajectory points of the trajectory, respectively obtaining the starting point of the trajectory as the H point and the ending point of the trajectory as the T point, and setting IDs for the H point and the T point;

[0010] S2. Set up the H temporary storage unit, the S temporary storage unit, and the T temporary storage unit. Match different identities of the same target based on trajectory characteristics. The H temporary storage unit stores the H points that have been scanned and not matched with the T points, the S temporary storage unit stores the matched HT point pairs, and the T temporary storage unit stores the T points that have been scanned and not matched with the H points and the T points from the S temporary storage unit.

[0011] S3, backtracking rematching, detecting whether the matched trajectory identity matching is a mismatch, and rematching the trajectory of the mismatched target;

[0012] S4. Loop step S3 to perform backtracking rematching until there are no T points in the T temporary storage unit or all remaining T points have performed backtracking rematching of step S3 for a set number of times, and obtain the updated S temporary storage unit. The HT point pairs in the updated S temporary storage unit are the matching results.

[0013] Furthermore, in step S1, the trajectory data of each target is obtained, and the first and last trajectory points are classified, specifically,

[0014] S11, using target detection and target tracking methods to extract each frame data of each target, including the two-dimensional coordinate information of the target in all frames and the frame number corresponding to the target appearance;

[0015] S12. The two-dimensional coordinate information of each target obtained in step S11 is used to form the trajectory of the target according to the number of frames. According to the start and end of the trajectory, the starting point of each trajectory is classified as an H point, and the ending point of each trajectory is classified as a T point.

[0016] Furthermore, in step S2, different identities of the same target are matched by trajectory characteristics, specifically,

[0017] S21, distribute the H point and T point obtained in step S1 in the three-dimensional space composed of the target two-dimensional information and the frame number;

[0018] S22. In the three-dimensional space, starting from frame 0, scanning frame by frame, starting from scanning to the first T point, adding a T temporary storage unit every time a T point is scanned, and adding a H temporary storage unit every time a H point is scanned, until the last frame;

[0019] S23. Match the obtained T point of the T temporary storage unit with the H point of the H temporary storage unit. If the match is successful, a HT point pair is obtained, and the obtained HT point pair is added to the S temporary storage unit; otherwise, the match fails, and the T point remains in the T temporary storage unit, and the H point remains in the H temporary storage unit.

[0020] Furthermore, in step S23, the obtained T point of the temporary storage unit T is matched with the H point of the temporary storage unit H, specifically,

[0021] S231, take out a point T with ID number k from the T temporary storage unit, trace back a set number of frames before the target to which the point T belongs, and calculate the velocity vector of the point T;

[0022] S232. According to the velocity vector of point T, obtain a Tk matching area in the three-dimensional space of step S21, match the H point closest to the point in the three-dimensional space within the Tk matching area with the T point to obtain a HT point pair.

[0023] Furthermore, in step S231, the velocity vector of the target to which point T belongs is calculated by tracing back a set number of frames, specifically,

[0024] S2311. Record the coordinate data of the target in the first n frames as (x(1), y(1)), (x(2), y(2)), ... (x(n), y(n)). Calculate the target velocity direction vector based on the assumption that the velocity does not change suddenly. ;

[0025] S2312. Calculate the rate V(k)=sqrt((x(k+1)-x(k))^2+(y(k+1)-y(k))^2) using the coordinate data of the k-th frame and the k+1-th frame, where k=1, 2, 3, ..., n-1.

[0026] S2313. Calculate the acceleration A(k) = V(k+1) - V(k) from the rate V(k), where k = 1, 2, 3, ..., n-2. Calculate the average acceleration A = average(A(k)), where k = 1, 2, 3, ..., n-2. Calculate the target rate for this frame Vp = V(n-1) + A.

[0027] S2314, finally get the velocity vector of point T in this frame .

[0028] Furthermore, in step S232, according to the velocity vector of point T, a Tk matching area is obtained in the three-dimensional space of step S21, specifically,

[0029] S2321. Set the maximum allowable loss time of point T with ID number k to t-max, the upper limit of the movement speed of point T to V-max, the upper limit of the movement distance of point T to R-max, and set the maximum allowable error angle θ of the velocity vector of point T;

[0030] S2322: The area that point T with ID number k can reach within the maximum allowable loss time t-max is a sector with point T as the center, the velocity vector V-current of point T as the central axis, the directions of the velocity vector of point T deflecting to the left and to the right θ as the boundaries, and the radius being the upper limit of the movement distance R-max of point T.

[0031] S2323. According to the maximum allowable loss time t-max, the fan-shaped obtained in step S2322 is stretched upward by the set number of frames f-max to obtain the area where the next H point of the T point with ID number k appears, that is, a right prism with a bottom surface of the fan-shaped obtained in step S2322 and a height of the set number of frames f-max as the Tk matching area.

[0032] Furthermore, in step S2, the logical structure of the H temporary storage unit adopts a queue.

[0033] Furthermore, in step S3, it is detected whether the matched track identity is mismatched, and the track of the mismatched target is rematched, specifically,

[0034] S31, rescanning point T in the temporary storage unit T according to step S2, if no H point matches the point T according to step S2, matching the point T with the H point in the temporary storage unit S using the same rule;

[0035] S32. If, according to step S31, an H point in the S temporary storage unit is successfully matched, it is determined that there is a mismatch, and the newly successfully matched HT pair is updated to the S temporary storage unit, and the unpaired T point is re-entered into the T temporary storage unit;

[0036] S33. If, according to step S31, there is still no point H paired with the point T, the point T re-enters the T temporary storage unit.

[0037] A trajectory-based target ID re-authentication and matching system adopting any of the above-mentioned trajectory-based target ID re-authentication and matching methods comprises a trajectory extraction and division module, an HT matching module, a backtracking re-matching module and a matching result generation module.

[0038] Trajectory extraction and classification module: obtains the trajectory data of each target and classifies the first and last trajectory points of the trajectory, respectively obtaining the starting point of the trajectory as the H point and the ending point of the trajectory as the T point, and setting IDs for the H point and T point;

[0039] HT matching module: Set up H temporary storage unit, S temporary storage unit, and T temporary storage unit. Different identities of the same target are matched through trajectory characteristics. The H temporary storage unit stores the H points that have been scanned and not matched with the T points, the S temporary storage unit stores the matched HT point pairs, and the T temporary storage unit stores the T points that have been scanned and not matched with the H points and the T points from the S temporary storage unit.

[0040] Backtracking rematching module: performs backtracking rematching, specifically detecting whether the matched trajectory identity matches are mismatched, and rematching the trajectory of the mismatched target;

[0041] Matching result generation module: loop backtracking and rematching until there are no T points in the T temporary storage unit or all remaining T points have been backtracked and rematched a set number of times, and then obtain the updated S temporary storage unit. The HT point pair in the updated S temporary storage unit is the matching result.

[0042] The beneficial effects of the present invention are:

[0043] 1. This trajectory-based target ID re-authentication and matching method and system divides the target's motion trajectory into H points and T points, and then uses the physical law that speed does not change suddenly to match two motion trajectories of the same target that are disconnected within a short period of time. It has high matching accuracy and tracking precision, and reduces data processing volume, which can ensure real-time re-authentication.

[0044] 2. The present invention addresses the problem of possible matching errors by adopting a backtracking rematching scheme, which can effectively improve the matching accuracy of this method to a certain extent. It can be used in the process of moving object recognition to accurately match the reappearing object ID with the original object ID when the object's trajectory is disconnected for a short time.

[0045] 3. This trajectory-based target ID re-authentication and matching method and system can reduce the workload of subsequent data processing, overcome the defects of video shooting tools and tracking and recognition technologies to a certain extent, and reduce the requirements of tracking and recognition for aspects such as video clarity, thereby improving the fault tolerance and efficiency of tracking and recognition. It can be used to re-identify the identity of a subsequent target when the coordinate position of a real target is lost for a short time, making up for the problems of insufficient tracking accuracy and real-time performance of current methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] FIG1 is a schematic diagram of a flow chart of a trajectory-based target ID re-authentication matching method according to an embodiment of the present invention;

[0047] FIG2 is a schematic diagram of obtaining a trajectory starting point classified as an H point and a trajectory ending point classified as a T point in an embodiment;

[0048] FIG3 is a schematic diagram of distributing the H point and the T point in a three-dimensional space composed of target two-dimensional information and frame numbers in an embodiment, wherein X and Y are the horizontal and vertical coordinates of the two-dimensional coordinate information, respectively, and F is the frame number;

[0049] FIG4 is a schematic diagram illustrating an area that point T may reach, namely, a Tk matching area in an embodiment, wherein X and Y are the horizontal coordinate and vertical coordinate of two-dimensional coordinate information, respectively, and F is the number of frames. DETAILED DESCRIPTION

[0050] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0051] The embodiment provides a trajectory-based target ID re-authentication matching method, as shown in FIG1 , including the following steps:

[0052] S1. Obtain the trajectory data of each target and classify the first and last trajectory points of the trajectory, respectively obtaining the starting point of the trajectory as the H point and the ending point of the trajectory as the T point, and setting IDs for the H point and the T point;

[0053] S11, using target detection and target tracking methods to extract each frame data of each target, including the two-dimensional coordinate information of the target in all frames and the frame number corresponding to the target appearance;

[0054] S12. The two-dimensional coordinate information of each target obtained in step S11 is used to form the trajectory of the target according to the number of frames. According to the start and end of the trajectory, the starting point of each trajectory is classified as an H point, and the ending point of each trajectory is classified as a T point.

[0055] In step S12, the concepts of H-point (Head) and T-point (Tail) are first introduced. Assume that after a target has been tracked continuously for a period of time, the frame before tracking is lost is frame number t0, and the coordinates of the target in frame t0 are (x, y). Then, this frame corresponds to a T-point with coordinates (x, y, t0). After the first T-point appears, if the target is not tracked for a period of time and then begins to be tracked again, assuming that the first frame of tracking is frame number t1, and the coordinates of the target in frame t1 are (x', y'), then this frame corresponds to an H-point (x', y', t1).

[0056] In step S1, the detector and tracker are used to process the video data to obtain the continuous position coordinate data of the moving object during the video shooting process, and a fixed number is given to each identified object including point T and point H as ID. The number of frames of all existing numbers is extracted without interruption, and each element in the set of uninterrupted frames is recorded in the form of: Ri={N,X,Y,F,C}, where N is the mark of the identified different objects as the number ID, X and Y are the horizontal and vertical coordinates of the two-dimensional coordinate information respectively, F is the frame number, and C is the object frame feature value, as shown in Figure 2; the object frame feature value C has three values: H, T, and 0. For an element Rx in the set, the object frame feature value C of the element Rx is calculated as follows: (1) If the element Ry does not exist: the element Ry has the same number ID as the element Rx, that is, the N value is equal, and the frame number of the element Ry is 1 greater than the frame number of the element Rx, but there is an element Ry. Rz: If the number ID of element Rz is the same as that of element Rx, that is, the N value is equal, and the number of frames of element Rz is 1 greater than the number of frames of element Rx, then the object frame feature value C of element Rx is H, and the starting point of the trajectory is classified as point H; (2) If there is an element Ry: If the number ID of element Ry is the same as that of element Rx, that is, the N value is equal, and the number of frames of element Ry is 1 greater than the number of frames of element Rx, then the object frame feature value C of element Rx is 0, then it is the middle point of the trajectory, not the starting point or the end point of the trajectory; (2) If there is an element Ry: If the number ID of element Ry is the same as that of element Rx, that is, the N value is equal, and the number of frames of element Ry is 1 greater than the number of frames of element Rx, and at the same time, there is no element Rz: If the number ID of element Rz is the same as that of element Rx, that is, the N value is equal, and the number of frames of element Rz is 1 greater than the number of frames of element Rx, then the object frame feature value C of element Rx is T, and the end point of the trajectory is classified as point T.

[0057] S2. Set up an H temporary storage unit, an S temporary storage unit, and a T temporary storage unit. Different identities of the same target are matched based on trajectory characteristics. The H temporary storage unit stores H points that have been scanned and not matched with T points, the S temporary storage unit stores matched HT point pairs, and the T temporary storage unit stores T points that have been scanned and not matched with H points and T points from the S temporary storage unit. In step S2, the logical structure of the H temporary storage unit adopts a queue.

[0058] S21, distribute the H point and T point obtained in step S1 in the three-dimensional space composed of the target two-dimensional information and the frame number; as shown in Figure 3.

[0059] In step S21, a three-dimensional coordinate system γ is established, whose x, y, and z axes represent the target's x and y coordinates and frame number, respectively. By connecting the coordinate points of adjacent frames with the same target ID, spatial trajectory curves are formed. From the smallest to the largest frame number, the H point is the "head" of each curve segment, and the T point is the "tail" of each curve segment. Based on this principle, all H and T points are labeled. The key is to pair each T point with its corresponding H point.

[0060] S22. In the three-dimensional space, starting from frame 0, scanning frame by frame, starting from scanning to the first T point, adding a T temporary storage unit every time a T point is scanned, and adding a H temporary storage unit every time a H point is scanned, until the last frame;

[0061] S23. Match the obtained T point of the T temporary storage unit with the H point of the H temporary storage unit. If the match is successful, a HT point pair is obtained, and the obtained HT point pair is added to the S temporary storage unit; otherwise, the match fails, and the T point remains in the T temporary storage unit, and the H point remains in the H temporary storage unit.

[0062] In step S23, the obtained T point of the temporary storage unit T is matched with the H point of the temporary storage unit H, specifically,

[0063] S231, taking out a point T with an ID number k from the T temporary storage unit, backtracking a set number of frames before the target to which the point T belongs, such as the previous 15 frames, and calculating the velocity vector of the point T;

[0064] In step S231, a velocity vector prediction (abstract) V-predict is defined. By using the physical law that velocity does not change suddenly, the velocity vector of the target in the current frame can be calculated based on the velocity vectors of the target in the previous n frames within a continuous period of time.

[0065] In step S231, the target to which point T belongs is traced back a set number of frames, and the velocity vector of point T is calculated, specifically,

[0066] S2311. Record the coordinate data of the target in the first n frames as (x(1), y(1)), (x(2), y(2)), ... (x(n), y(n)). Calculate the target velocity direction vector based on the assumption that the velocity does not change suddenly. ;

[0067] S2312. Calculate the rate V(k)=sqrt((x(k+1)-x(k))^2+(y(k+1)-y(k))^2) using the coordinate data of the k-th frame and the k+1-th frame, where k=1, 2, 3, ..., n-1.

[0068] S2313. Calculate the acceleration A(k) = V(k+1) - V(k) from the rate V(k), where k = 1, 2, 3, ..., n-2. Calculate the average acceleration A = average(A(k)), where k = 1, 2, 3, ..., n-2. Calculate the target rate for this frame Vp = V(n-1) + A.

[0069] S2314, finally get the velocity vector of point T in this frame .

[0070] S232. According to the velocity vector of point T, obtain a Tk matching area in the three-dimensional space of step S21, match the H point closest to the point in the three-dimensional space within the Tk matching area with the T point to obtain a HT point pair.

[0071] In step S232, based on the velocity vector of point T, the Tk matching area is obtained in the three-dimensional space of step S21, specifically,

[0072] S2321. Set the maximum allowable loss time of point T with ID number k to t-max, the upper limit of the movement speed of point T to V-max, the upper limit of the movement distance of point T to R-max, and set the maximum allowable error angle θ of the velocity vector of point T;

[0073] S2322: The area that point T with ID number k can reach within the maximum allowable loss time t-max is a sector with point T as the center, the velocity vector V-current of point T as the central axis, the directions of the velocity vector of point T deflecting to the left and to the right θ as the boundaries, and the radius being the upper limit of the movement distance R-max of point T.

[0074] S2323. According to the maximum allowable loss time t-max, the fan-shaped obtained in step S2322 is stretched upward by the set number of frames f-max to obtain the area where the next H point of the T point with ID number k appears, that is, a right prism with a bottom surface of the fan-shaped obtained in step S2322 and a height of the set number of frames f-max as the Tk matching area, as shown in Figure 4.

[0075] In step S232, HT matching, namely HT-match, is defined. For each point T, the velocity vector V-current of the target in the corresponding frame is calculated by step S23. Then, the velocity vector V-current can be expressed in the xoy plane where the point T is located, with the point T as the origin. According to the physical law that the velocity does not change suddenly, it can be determined that the velocity vector of the target will not change much during the extremely short period of time when tracking is lost. Since there may be a certain error between V-current and the true value, the maximum allowable error angle θ of the velocity vector of point T is set, and the directions of V-current deflection to the left by θ and deflection to the right by θ are used as boundaries. In this way, a fan with point T as the center, V-current as the central axis, and an infinite radius will be obtained.

[0076] In step S232, since long-term frame loss matching has great uncertainty, the embodiment only discusses the problem of short-term frame loss. The maximum allowable loss time t-max is defined, and the frame loss time within t-max is classified as a short-term frame loss problem. When only the x and y coordinates are considered, the area that the target may reach in a short time is a sector with T as the center, V-current as the central axis, and a radius of R-max. Then, based on t-max, the sector is stretched upward by the corresponding number of frames f-max (which can be calculated by the frame rate or directly given), and the area where the next H point of this target may appear is obtained: a right prism with a sector-shaped bottom surface is used as the Tk matching area.

[0077] S3, backtracking rematching, detecting whether the matched trajectory identity matching is a mismatch, and rematching the trajectory of the mismatched target;

[0078] S31, rescanning point T in the temporary storage unit T according to step S2, if no H point matches the point T according to step S2, matching the point T with the H point in the temporary storage unit S using the same rule;

[0079] S32. If, according to step S31, an H point in the S temporary storage unit is successfully matched, it is determined that there is a mismatch, and the newly successfully matched HT pair is updated to the S temporary storage unit, and the unpaired T point is re-entered into the T temporary storage unit;

[0080] S33. If, according to step S31, there is still no point H paired with the point T, the point T re-enters the T temporary storage unit.

[0081] In step S3, a situation may arise during the matching process: when an H point enters the temporary storage unit H, the temporary storage unit T is empty, or no T point can be found in the temporary storage unit T to match the H point. In this case, if the temporary storage unit S is not empty, the matched T points in S are matched against the H point one by one. If a match is successful, the point pair containing the matched T point is considered a mismatch, and the original matching H point is replaced with the new H point.

[0082] S4. Loop step S3 to perform backtracking and rematching until there are no T points in the T temporary storage unit or all remaining T points have performed backtracking and rematching of step S3 a set number of times, such as 3 times, to obtain an updated S temporary storage unit. The HT point pairs in the updated S temporary storage unit are the matching results.

[0083] This trajectory-based target ID re-authentication and matching method divides the target's motion trajectory into H points and T points, and then uses the physical law that speed does not suddenly change to match two motion trajectories of the same target that are disconnected in a short period of time. It has high matching accuracy and tracking precision, and requires less data processing, which can ensure the real-time performance of re-authentication.

[0084] The present invention addresses the problem of possible matching errors by adopting a backtracking rematching scheme, which can effectively improve the matching accuracy of this method to a certain extent. It can be used in the process of moving object recognition to accurately match the reappearing object ID with the original object ID when the object's trajectory is briefly disconnected.

[0085] This trajectory-based target ID re-authentication and matching method can reduce the workload of subsequent data processing, overcome the defects of video shooting tools and tracking and recognition technologies to a certain extent, reduce the requirements of tracking and recognition for aspects such as video clarity, and thus improve the fault tolerance and efficiency of tracking and recognition. It can be used to re-identify the identity of a subsequent target when the coordinate position of a real target is lost for a short time, making up for the problems of insufficient tracking accuracy and real-time performance of the current method. The embodiment also provides a trajectory-based target ID re-authentication and matching system that adopts any of the above-mentioned trajectory-based target ID re-authentication and matching methods, including a trajectory extraction and division module, an HT matching module, a backtracking re-matching module, and a matching result generation module.

[0086] Trajectory extraction and classification module: obtains the trajectory data of each target and classifies the first and last trajectory points of the trajectory, respectively obtaining the starting point of the trajectory as the H point and the ending point of the trajectory as the T point, and setting IDs for the H point and T point;

[0087] HT matching module: Set up H temporary storage unit, S temporary storage unit, and T temporary storage unit. Different identities of the same target are matched through trajectory characteristics. The H temporary storage unit stores the H points that have been scanned and not matched with the T points, the S temporary storage unit stores the matched HT point pairs, and the T temporary storage unit stores the T points that have been scanned and not matched with the H points and the T points from the S temporary storage unit.

[0088] Backtracking rematching module: performs backtracking rematching, specifically detecting whether the matched trajectory identity matches are mismatched, and rematching the trajectory of the mismatched target;

[0089] Matching result generation module: loop backtracking and rematching until there are no T points in the T temporary storage unit or all remaining T points have been backtracked and rematched a set number of times, and then obtain the updated S temporary storage unit. The HT point pair in the updated S temporary storage unit is the matching result.

[0090] This trajectory-based target ID re-authentication and matching method and system is based on trajectory matching and utilizes the physical law that speed does not change suddenly. It matches the tail of a trajectory with the head of the next trajectory of the corresponding target. It can more accurately match the same target that was lost in a short period of time, facilitating subsequent data processing and promoting the development of tracking and identification technology.

[0091] The above embodiments are only for illustrating the technical concept of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made to the technical solution in accordance with the technical concept proposed by the present invention fall within the protection scope of the present invention.

Claims

1. A target ID re-authentication matching method based on trajectory, characterized in that: The following steps are included: S1. Obtain the trajectory data of each target, and classify the first and last trajectory points of the trajectory, respectively obtain the starting point of the trajectory as the H point and the ending point of the trajectory as the T point, and set IDs for the H point and the T point; S2, set up H temporary storage unit, S temporary storage unit, T temporary storage unit, and match different identities of the same target through trajectory characteristics, so that the H temporary storage unit stores the H points that have been scanned and not matched with the T points, the S temporary storage unit stores the HT point pairs that have been matched, and the T temporary storage unit stores the T points that have been scanned and not matched with the H points and the T points from the S temporary storage unit; S3, backtracking rematching is performed to detect whether the matched trajectory identity matching is a mismatch, and the trajectory of the mismatched target is rematched; S4, loop step S3 to perform backtracking rematching until there are no T points in the T temporary storage unit or all remaining T points have performed backtracking rematching of step S3 for a set number of times, to obtain an updated S temporary storage unit, and the HT point pairs in the updated S temporary storage unit are the matching results.

2. The trajectory-based target ID re-authentication matching method according to claim 1, characterized in that: In step S1, the trajectory data of each target is obtained, and the first and last trajectory points are classified, specifically, S11, using target detection and target tracking methods to extract each frame data of each target, including the two-dimensional coordinate information of the target appearing in all frames and the frame number corresponding to the target appearing; S12, the two-dimensional coordinate information of each target obtained in step S11 is used to form the trajectory of the target according to the number of frames, and the starting point of each trajectory is classified as an H point, and the ending point of each trajectory is classified as a T point according to the start and end of the trajectory.

3. The trajectory-based target ID re-authentication matching method according to claim 1, characterized in that: In step S2, different identities of the same target are matched by trajectory characteristics, specifically, S21, distributing the H point and the T point obtained in step S1 in a three-dimensional space composed of the target two-dimensional information and the frame number; S22, in the three-dimensional space, starting from frame 0, scanning frame by frame, starting from scanning to the first T point, adding a T temporary storage unit every time a T point is scanned, and adding an H temporary storage unit every time a H point is scanned, until the last frame; S23. Match the obtained T point of the T temporary storage unit with the H point of the H temporary storage unit. If the match is successful, a HT point pair is obtained, and the obtained HT point pair is added to the S temporary storage unit; otherwise, the match fails, the T point still remains in the T temporary storage unit, and the H point still remains in the H temporary storage unit.

4. The trajectory-based target ID re-authentication matching method according to claim 3, characterized in that: In step S23, the obtained point T of the temporary storage unit T is matched with the point H of the temporary storage unit H, specifically, S231, taking out a point T with an ID number of k from the T temporary storage unit, tracing back a set number of frames before the target to which the point T belongs, and calculating the velocity vector of the point T; S232. According to the velocity vector of point T, obtain a Tk matching area in the three-dimensional space of step S21, match the H point in the Tk matching area that is closest to the point in the three-dimensional space with point T to obtain a HT point pair.

5. The trajectory-based target ID re-authentication matching method according to claim 4, characterized in that: In step S231, the target to which point T belongs is traced back by a set number of frames, and the velocity vector of point T is calculated, specifically, S2311, record the coordinate data of the target in the first n frames as ((X1, Y1), (X2, Y2), ..., (X n-1 , Y n-1 ), (X n , Y n )), based on the assumption that the speed does not change suddenly, calculate the target speed direction vector , where X n , X n-1 are the horizontal coordinates of the targets in the previous n frames and the previous n-1 frames, respectively. n , Y n-1 are the ordinates of the targets in the previous n frames and the previous n-1 frames respectively; S2312, calculate the rate V(k)=sqrt((X k+1 -X k )^2+(Y k+1 -Y k )^2), k=1,2,3,……, n-1, where sqrt means taking the square root, X k+1 , X k are the horizontal coordinates of the targets in the k+1th frame and the kth frame, respectively. k+1 , Y k are the ordinates of the targets in the k+1th frame and the kth frame respectively; S2313. Calculate the acceleration A(k)=V(k+1)-V(k) by the speed V(k) of the target in the kth frame and the speed V(k+1) of the target in the k+1th frame, k=1,2,3,..., n-2, and calculate the average acceleration A=average(A(k)), k=1,2,3,..., n-2; calculate the speed of the target in this frame Vp=V(n-1)+A, where average means taking the average value and V(n-1) means the speed of the target in the n-1th frame; S2314. Finally, the velocity vector of point T in this frame is obtained. 。 6. The trajectory-based target ID re-authentication matching method according to claim 4, characterized in that: In step S232, according to the velocity vector of point T, a Tk matching area is obtained in the three-dimensional space of step S21, specifically, S2321, set the maximum allowable loss time of point T with ID number k to t-max, the upper limit of the movement speed of point T to V-max, the upper limit of the movement distance of point T to R-max, and set the maximum allowable error angle θ of the velocity vector of point T; S2322, the area that point T with ID number k can reach within the maximum allowable loss time t-max is a sector with point T as the center, the velocity vector V-current of point T as the central axis, the directions of the velocity vector of point T deflected to the left θ and to the right θ as the boundaries, and the radius being the upper limit R-max of the movement distance of point T; S2323. According to the maximum allowed loss time t-max, the fan-shaped obtained in step S2322 is stretched upward by the set number of frames f-max to obtain the area where the next H point of the T point with ID number k appears, that is, a right prism whose bottom surface is the fan-shaped obtained in step S2322 and whose height is the set number of frames f-max as the Tk matching area.

7. The trajectory-based target ID re-authentication matching method according to any one of claims 1 to 6, characterized in that: In step S2, the logical structure of the H temporary storage unit adopts a queue.

8. The trajectory-based target ID re-authentication matching method according to any one of claims 1 to 6, characterized in that: In step S3, it is detected whether the matched track identity is mismatched, and the track of the mismatched target is re-matched, specifically, S31, rescanning the point T in the T temporary storage unit according to step S2, if no point H matches the point T according to step S2, matching the point T with the point H in the S temporary storage unit according to the same rule; S32, if according to step S31, there is a successful match of the H point in the S temporary storage unit, it is determined that there is a mismatch, and the newly successfully matched HT pair is updated to the S temporary storage unit, and the unpaired T point is re-entered into the T temporary storage unit; S33. If, according to step S31, there is still no point H paired with the point T, the point T re-enters the T temporary storage unit.

9. A trajectory-based target ID re-authentication matching system using the trajectory-based target ID re-authentication matching method according to any one of claims 1 to 8, characterized in that: It includes trajectory extraction and division module, HT matching module, backtracking rematching module and matching result generation module. Trajectory extraction and division module: obtain the trajectory data of each target, and classify the first and last trajectory points of the trajectory, respectively obtain the starting point of the trajectory as the H point and the ending point of the trajectory as the T point, and set IDs for the H point and the T point; HT matching module: set up H temporary storage unit, S temporary storage unit, T temporary storage unit, and match different identities of the same target through trajectory characteristics, so that the H temporary storage unit stores the H points that have been scanned and not matched with the T points, the S temporary storage unit stores the HT point pairs that have been matched, and the T temporary storage unit stores the T points that have been scanned and not matched with the H points and the T points from the S temporary storage unit; Backtracking rematching module: performs backtracking rematching, specifically, detecting whether the matched trajectory identity matching is a mismatch, and rematching the trajectory of the mismatched target; Matching result generation module: loop backtracking and rematching until there are no T points in the T temporary storage unit or all remaining T points have been backtracked and rematched a set number of times, and then the updated S temporary storage unit is obtained. The HT point pair in the updated S temporary storage unit is the matching result.

Citation Information

Patent Citations

  • Cross-camera pedestrian re-identification and tracking method

    CN112200106A

  • Target flow monitoring method and device, computer equipment and storage medium

    CN113012223A

  • Video dynamic object track space-time retrieval method and system in geographic scene

    CN113190711A

  • Target tracking method and device, electronic equipment and storage medium

    CN113284168A

  • Target ID re-authentication matching method and system based on trajectory

    CN116030059A