Target tracking method, device, electronic device and storage medium

By calculating the correlation between the target detection frame and the prediction frame and reconnecting the trajectories, the problem of low detection accuracy of target tracking algorithms in crowded scenes in the existing technology is solved, and the accuracy and stability of target tracking are improved.

CN113284168BActive Publication Date: 2024-08-27SHENZHEN INTELLIFUSION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110630720.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-12-17
Filing Date
2021-06-07
Publication Date
2024-08-27
Estimated Expiration
2041-06-07

AI Technical Summary

Technical Problem

Existing target tracking algorithms have detection accuracy problems in crowded scenes. Especially when the target is blocked or interfered with, inter-frame IOU is unreliable, and the Hungarian matching algorithm may select the wrong detection frame, resulting in increased tracking errors.

Method used

By extracting the target detection frame information and prediction frame information in the image sequence, calculating the correlation, judging whether there is a disconnected trajectory, and reconnecting, using the frame correlation, feature correlation and filtering rules to generate an accurate target tracking sequence.

Benefits of technology

It improves the detection accuracy of target tracking, reduces false detections and misjudgments, and enhances tracking stability in crowded scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113284168B_ABST
    Figure CN113284168B_ABST
Patent Text Reader

Abstract

This invention provides a target tracking method, apparatus, electronic device, and storage medium. The method includes: extracting target detection box information and target prediction box information for each frame of an image sequence to be processed; matching the target detection box information corresponding to the (n+1)th frame with the target prediction box information corresponding to the nth frame, and determining whether the matching result includes a broken trajectory; if the broken trajectory exists, reconnecting the broken trajectory to obtain a reconnection result, and obtaining a corresponding target tracking sequence based on the reconnection result. By matching the prediction box information with the detection box information, the detection box has prior information during trajectory tracking, improving the accuracy of the detection box. Reconnecting broken trajectories can improve the detection accuracy of target tracking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence, and in particular to a target tracking method, device, electronic device and storage medium. Background Art

[0002] With the continuous increase in population and the rapid expansion of cities, intelligent video surveillance has become crucial. The so-called intelligent video supervision means that the front-end camera can perform some detection and tracking tasks, directly extract and save the data we need. Although there are currently multiple target tracking models, most of these models rely on inter-frame IOU and Hungarian matching to complete the tracking of target trajectories. In real scenes, when the target is occluded or disturbed, IOU becomes unreliable, and multiple detection frames may have similar IOU values, especially in crowded scenes, with a high detection error rate. In addition, since Hungarian matching is an optimal matching algorithm, in this case it will still select a detection frame as the final result, that is, when the optimal detection frame is an incorrect detection frame, it will still select the optimal detection frame, resulting in the selected detection frame being an incorrect detection frame, which will bring greater errors to the subsequent tracking algorithm. Therefore, the existing target tracking algorithm has the problem of detection accuracy. Summary of the invention

[0003] The embodiment of the present invention provides a target tracking method, which can improve the detection accuracy of multi-target tracking.

[0004] In a first aspect, an embodiment of the present invention provides a target tracking method, the method comprising:

[0005] Extract the target detection frame information and target prediction frame information of each frame image in the image sequence to be processed;

[0006] Match the target detection frame information corresponding to the n+1th frame image with the target prediction frame information corresponding to the nth frame image, and determine whether the matching result includes a disconnected track;

[0007] If the disconnected trajectory exists, the disconnected trajectory is reconnected to obtain a reconnection result, and based on the reconnection result, a corresponding target tracking sequence is obtained.

[0008] Optionally, matching the target detection frame information corresponding to the (n+1)th frame image with the target prediction frame information corresponding to the nth frame image includes:

[0009] Calculating the correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image, and determining whether the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image that meet a matching condition correspond one-to-one, wherein the matching condition is that the correlation is greater than or equal to a first preset correlation threshold;

[0010] If the target detection frame information corresponding to the n+1th frame image that meets the matching condition corresponds to the target prediction frame information corresponding to the nth frame image, the match is a continuous trajectory;

[0011] If the target detection frame information corresponding to the n+1th frame image that meets the matching conditions is not one-to-one corresponding to the target prediction frame information corresponding to the nth frame image, the match is a disconnected track.

[0012] Optionally, the target detection frame information includes a detection frame parameter and a detection frame image, the target prediction frame information includes a prediction frame parameter and a prediction frame image, the correlation includes a frame correlation and a feature correlation, and the calculating the correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image includes:

[0013] Calculating, according to the detection frame parameters and the prediction frame parameters, a frame correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image;

[0014] Calculating, according to the detection frame image and the prediction frame image, a feature correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image;

[0015] According to the frame correlation and the feature correlation, the correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image is calculated.

[0016] Optionally, the detection frame parameters include detection frame center point coordinates, detection frame area, and detection frame aspect ratio, the prediction frame parameters include prediction frame center point coordinates, prediction frame area, and prediction frame aspect ratio, and calculating, according to the detection frame parameters and the prediction frame parameters, a frame correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the nth frame image, comprises:

[0017] Calculating the distance correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the center point coordinates of the detection frame and the center point coordinates of the prediction frame;

[0018] Calculating, according to the detection frame area and the prediction frame area, an area correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image;

[0019] Calculating, according to the detection frame aspect ratio and the prediction frame aspect ratio, a shape correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image;

[0020] Based on the distance correlation, the area correlation and the shape correlation, a frame correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image is calculated.

[0021] Optionally, if the disconnected track exists, reconnecting the disconnected track includes:

[0022] Extracting first representative detection frame information and second representative detection frame information from the first disconnected track and the second disconnected track respectively;

[0023] Calculating the correlation between the first disconnected track and the second disconnected track according to the first representative detection frame information and the second representative detection frame information;

[0024] When the correlation between the first disconnected trajectory and the second disconnected trajectory is greater than or equal to a second preset correlation threshold, the first disconnected trajectory and the second disconnected trajectory are reconnected.

[0025] Optionally, the method further includes:

[0026] Determining whether the first disconnected track and the second disconnected track have the same image frame identifier;

[0027] If the first disconnected track and the second disconnected track do not have the same image frame identifier, the first disconnected track and the second disconnected track are reconnected.

[0028] Optionally, when the correlation between the first disconnected trajectory and the second disconnected trajectory is greater than or equal to a second preset correlation threshold, reconnecting the first disconnected trajectory and the second disconnected trajectory includes:

[0029] If the correlation between the first disconnected trajectory and the second disconnected trajectory of the current target is greater than or equal to the second preset correlation threshold, reconnecting the first disconnected trajectory and the second disconnected trajectory of the current target to obtain a first reconnected trajectory;

[0030] The first reconnection trajectory of the current target is filtered according to a preset filtering rule to obtain a second reconnection trajectory as a reconnection result.

[0031] Optionally, the filtering rule includes: determining whether the length of the first reconnection trajectory reaches a preset length, determining whether the image quality of the first reconnection trajectory reaches a preset image quality, and determining whether a target size in the first reconnection trajectory reaches a preset target size.

[0032] In a second aspect, an embodiment of the present invention further provides a target tracking device, the device comprising:

[0033] An extraction module is used to extract the target detection frame information and target prediction frame information of each frame image in the image sequence to be processed;

[0034] A matching module is used to match the target detection frame information corresponding to the n+1th frame image with the target prediction frame information corresponding to the nth frame image, and determine whether the matching result includes a disconnected track;

[0035] The reconnection module is used to reconnect the disconnected trajectory if it exists, obtain a reconnection result, and obtain a corresponding target tracking sequence based on the reconnection result.

[0036] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the target tracking method provided in the embodiment of the present invention when executing the computer program.

[0037] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the target tracking method provided in the embodiment of the invention are implemented.

[0038] In an embodiment of the present invention, the target detection frame information and target prediction frame information of each frame image in the image sequence to be processed are extracted; the target detection frame information corresponding to the n+1 frame image is matched with the target prediction frame information corresponding to the n frame image, and it is determined whether the matching result includes a disconnected track; if the disconnected track exists, the disconnected track is reconnected to obtain a reconnection result, and based on the reconnection result, a corresponding target tracking sequence is obtained. By matching the prediction frame information with the detection frame information, the detection frame has a priori information during the track tracking process, which improves the accuracy of the detection frame, and the disconnected track can be reconnected to improve the detection accuracy of target tracking. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0040] Figure 1 is a flow chart of a target tracking method provided by an embodiment of the present invention;

[0041] Figure 2 is a flow chart of a frame correlation calculation method provided by an embodiment of the present invention;

[0042] Figure 3 is a flow chart of a trajectory reconnection method provided by an embodiment of the present invention;

[0043] Figure 4 is a schematic structural diagram of a target tracking device provided by an embodiment of the present invention;

[0044] Figure 5 is a structural schematic diagram of a matching module provided by an embodiment of the present invention;

[0045] Figure 6 is a schematic structural diagram of a first computing submodule provided by an embodiment of the present invention;

[0046] Figure 7 is a structural schematic diagram of a first computing unit provided by an embodiment of the present invention;

[0047] Figure 8 is a structural schematic diagram of a reconnection module provided by an embodiment of the present invention;

[0048] Fig. 9 is a schematic diagram of the structure of another reconnection module provided by an embodiment of the present invention;

[0049] Fig.10 is a structural schematic diagram of a first reconnection submodule provided by an embodiment of the present invention;

[0050] Fig.11 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] See also Figure 1 , Figure 1 is a flow chart of a target tracking method provided by an embodiment of the present invention. Figure 1 As shown, the following steps are included:

[0053] 101. Extract target detection frame information and target prediction frame information of each frame image in the image sequence to be processed.

[0054] In the embodiment of the present invention, the above-mentioned image sequence to be processed can be a video image captured in real time by a camera, for example, a camera installed in a specific monitoring scene captures the video image of the specific monitoring scene in real time, and further, the camera can be set at a certain height of the specific monitoring scene to capture the target in the specific monitoring scene in real time. It can also be a video image uploaded by a user, and the above-mentioned image sequence refers to the frame images obtained in time sequence.

[0055] The above-mentioned image sequence to be processed includes a target to be tracked, and the above-mentioned target to be tracked may be a moving target, and the above-mentioned moving target may be a target that can generate a moving track, such as a pedestrian, a vehicle, an animal, etc. The above-mentioned target to be tracked may be one or more.

[0056] The above-mentioned target detection box information can be used to perform target detection on the target to be tracked through the target detection network. The above-mentioned target detection network is already trained. The above-mentioned target detection network can be obtained by the user through training with a sample target data set, or the network structure and parameters of the target detection network can be downloaded and obtained after fine-tuning training with a sample target data set.

[0057] In an embodiment of the present invention, the input of the target detection network is a frame image in a sequence of images to be processed, and the output is the detection frame information of the target to be tracked in the corresponding frame image. The detection frame information output by the target detection network may include the position information and confidence information of the target to be tracked in the corresponding frame image. The position information may be information in the format of det(x, y, w, h), wherein the x and y represent the center point coordinates of the detection frame in the corresponding frame image, and the w and h represent the width and height of the detection frame in the corresponding frame image, respectively. The confidence information is used to indicate the degree of credibility that the image content in the detection frame is the target to be tracked. The higher the confidence, the higher the degree of credibility that the image content in the detection frame is the target to be tracked. The target detection network may be a network constructed based on the CenterNet target detection algorithm.

[0058] In a possible embodiment, the video image captured by the camera or the video image uploaded by the user can be subjected to preset processing. The preset processing can be to extract frame images. In the video image, one frame is taken as the frame image in the image to be processed every preset number of frames. In this way, the redundancy between adjacent frames can be reduced and the calculation speed of target tracking can be improved. The preset number of frames can be set according to user needs. In the embodiment of the present invention, the preset number of frames is 4 frames, that is, one frame is taken as the frame image in the image to be processed every 4 frames.

[0059] In an embodiment of the present invention, the above-mentioned target prediction box information can be used to predict the target position of the target to be tracked through a target prediction network. The above-mentioned target prediction network is already trained, and can be obtained by user training, or by downloading and obtaining the network structure and parameters of the target detection network, and obtained after fine-tuning training with a sample target data set. The above-mentioned target prediction network can be a network constructed based on a Kalman filter algorithm.

[0060] In an embodiment of the present invention, the input of the target prediction network is a frame image in a sequence of images to be processed, and the output is the prediction box information of the target to be tracked in the next frame in the corresponding frame image. The prediction box information output by the target prediction network may include the position information and confidence information of the target to be tracked in the next frame image. The position information may be information in the format of pre(x, y, w, h), wherein the x and y represent the center point coordinates of the detection box in the next frame image, and the w and h represent the width and height of the detection box in the next frame image, respectively.

[0061] It can be understood that, through the target detection network and the target prediction network, for the case where the n-th frame image is used as input, the target detection frame information corresponding to the n-th frame image and the target prediction frame information corresponding to the n-th frame image will be output; for the case where the n+1-th frame image is used as input, the target detection frame information corresponding to the n+1-th frame image and the target prediction frame information corresponding to the n+1-th frame image will be output. Among them, the target prediction frame information corresponding to the n-th frame image can be understood as a prediction of the target detection frame information corresponding to the n+1-th frame image, and the target prediction frame information corresponding to the n+1-th frame image can be understood as a prediction of the target detection frame information corresponding to the n+2-th frame image.

[0062] 102. Match the target detection frame information corresponding to the (n+1)th frame image with the target prediction frame information corresponding to the (n)th frame image, and determine whether the matching result includes a disconnected track.

[0063] In an embodiment of the present invention, the target prediction frame information corresponding to the nth frame image can be understood as a prediction of the target detection frame information corresponding to the n+1th frame image. The purpose of matching the target detection frame information corresponding to the n+1th frame image with the target prediction frame information corresponding to the nth frame image can be understood as whether the detection result is the same or similar to the prediction result, and then judging whether a false detection occurs. Specifically, the above matching result includes a continuous trajectory and a disconnected trajectory. When the target detection frame information corresponding to the n+1th frame image matches the target prediction frame information corresponding to the nth frame image, it means that no false detection occurs, and the matching result is a continuous trajectory, that is, the target detection frame information corresponding to the n+1th frame image is added to the previous trajectory; when the target detection frame information corresponding to the n+1th frame image does not match the target prediction frame information corresponding to the nth frame image, it means that a false detection occurs, and the matching result is a disconnected trajectory, that is, the connection between the target detection frame information corresponding to the n+1th frame image and the previous trajectory is disconnected, and the target detection frame information corresponding to the n+1th frame image is used as the starting point of the new trajectory. At this time, the target detection frame information corresponding to the nth frame image is used as the end point of the previous trajectory.

[0064] Furthermore, the correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image can be calculated, and it is determined whether the target detection frame information corresponding to the n+1th frame image that meets the matching condition corresponds to the target prediction frame information corresponding to the nth frame image, and the matching condition is that the correlation is greater than or equal to a first preset correlation threshold; if the target detection frame information corresponding to the n+1th frame image that meets the matching condition corresponds to the target prediction frame information corresponding to the nth frame image, then the match is a continuous trajectory; if the target detection frame information corresponding to the n+1th frame image that meets the matching condition does not correspond to the target prediction frame information corresponding to the nth frame image, then the match is a disconnected trajectory.

[0065] It can be understood that by judging whether the target detection frame information corresponding to the n+1th frame image corresponds to the target prediction frame information corresponding to the nth frame image, it can be further judged whether there is a false detection. For example, if the correlation between the target detection frame information corresponding to an n+1th frame image and the target prediction frame information corresponding to multiple nth frames meets the matching condition, it can be explained that the target detection frame information corresponding to an n+1th frame image matches the target prediction frame information corresponding to multiple nth frames. Or if the correlation between the target prediction frame information corresponding to an nth frame image and the target detection frame information corresponding to multiple n+1th frames meets the matching condition, it can be explained that the target prediction frame information corresponding to an nth frame image matches the target detection frame information corresponding to multiple n+1th frames. The above two situations are false detection situations, and the matching is a disconnected track. Only when the correlation between the target prediction frame information corresponding to an nth frame image and the target detection frame information corresponding to only one n+1th frame image meets the matching condition (i.e., one-to-one correspondence), it can be considered that there is no false detection and is assigned the same ID.

[0066] Furthermore, the target detection frame information includes detection frame parameters and detection frame images, the target prediction frame information includes prediction frame parameters and prediction frame images, and the correlation includes frame correlation and feature correlation. The detection frame parameters are used to represent the position, shape and size of the target detection frame in the corresponding frame image, and the detection frame image is used to represent the detection frame content of the target detection frame in the corresponding frame image (also referred to as the target image). Correspondingly, the prediction frame parameters are used to represent the position, shape and size of the target prediction frame in the corresponding frame image, and the prediction frame image is used to represent the prediction frame content of the target prediction frame in the corresponding frame image (also referred to as the target prediction image).

[0067] Specifically, the frame correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image can be calculated based on the detection frame parameters and the prediction frame parameters; the feature correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image can be calculated based on the detection frame image and the prediction frame image; the correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image can be calculated based on the frame correlation and the feature correlation.

[0068] The above-mentioned detection frame image can be obtained in the corresponding frame image according to the target detection frame information, and specifically, the detection frame image can be obtained in the corresponding frame image according to the position information in the det(x, y, w, h) format. For example, the detection frame image of the nth frame can be obtained in the nth frame image according to the position information in the det(x, y, w, h) format. Similarly, the above-mentioned prediction frame image can be obtained in the corresponding frame image according to the target prediction frame information, and specifically, the prediction frame image can be obtained in the corresponding frame image according to the position information in the pre(x, y, w, h) format. For example, the prediction frame image of the nth frame can be obtained in the n+1th frame image according to the position information in the pre(x, y, w, h) format.

[0069] Optionally, after the detection frame image and the prediction frame image are extracted, features of the detection frame image and the prediction frame image can be extracted through a feature extraction network to obtain detection frame image features and prediction frame image features, and the similarity between the detection frame image features and the prediction frame image features is calculated as feature correlation. In addition, after the detection frame image and the prediction frame image are extracted, the detection frame image and the prediction frame image can be resized to the predicted size, such as to a size of 256×128. The above-mentioned feature extraction network can be constructed based on the Re-ID network, and the feature extraction network of an embodiment of the present invention is obtained by lightweighting the Re-ID network. The detection frame image and the prediction frame image are respectively input into the above-mentioned feature extraction network to extract image features, and the expression of the above-mentioned feature extraction network can be as follows:

[0070] f=F(θ b )

[0071] Among them, the above f is the image feature, the above F is the feature extraction network, and the above θ b Parameters of the feature extraction network.

[0072] The above-mentioned box correlation is used to indicate the correlation between the target prediction box and the target detection box in terms of shape and distance. Compared with the traditional IOU intersection-over-union calculation, the box correlation can adapt to the tracking of longer inter-frame distances. The traditional IOU intersection-over-union is to calculate the detection box of the nth frame and the detection box of the n+1th frame, specifically, to calculate the intersection area of ​​the detection box of the nth frame and the detection box of the n+1th frame, and to calculate the combined area of ​​the detection box of the nth frame and the detection box of the n+1th frame. The ratio of the intersection area to the combined area is used to measure whether they are the same target. It can be seen that when the detection boxes of two different targets are very close and similar in size, they will also meet the judgment of being the same target. Therefore, the traditional IOU intersection-over-union has a large error in the tracking and detection of multiple targets. At the same time, when the inter-frame distance increases, the detection boxes of the same target in two adjacent frames may change in position and size. At this time, the IOU intersection-over-union changes sharply, which makes it easier to make false detections.

[0073] In an embodiment of the present invention, the above correlation may be the sum of the frame correlation and the feature correlation. In some possible embodiments, the above correlation may also be the weighted sum of the frame correlation and the feature correlation. The specific weighting coefficient may be determined according to actual needs.

[0074] Optionally, the detection frame parameters may include the coordinates of the center point of the detection frame, the area of ​​the detection frame, and the aspect ratio of the detection frame, and the prediction frame parameters may include the coordinates of the center point of the prediction frame, the area of ​​the prediction frame, and the aspect ratio of the prediction frame. The detection frame parameters may be converted by det(x, y, w, h), and the prediction frame parameters may be converted by pre(x, y, w, h). Specifically, det(x, y, w, h) may be converted to det(x, y, s, r), and pre(x, y, s, r) may be converted to, where s represents the area of ​​the frame and r represents the aspect ratio of the frame. The specific conversion may be s=w×h, r=w / h. The frame correlation between the target detection frame information corresponding to the n+1 frame image and the target prediction frame information corresponding to the n+1 frame image may be calculated by the detection frame parameters det(x, y, s, r) corresponding to the n-th frame image and the prediction frame parameters pre(x, y, s, r) corresponding to the n+1-th frame image.

[0075] For details, see Figure 2 , Figure 2 is a flow chart of a frame correlation calculation method provided by an embodiment of the present invention. Figure 2 As shown, the following steps are included:

[0076] 201. Calculate the distance correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the center point coordinates of the detection frame and the center point coordinates of the prediction frame.

[0077] In the embodiment of the present invention, the distance correlation can be calculated by Euclidean distance. For example, assuming that the detection box parameter is det(x det ,y det ,s det , r det ), the prediction box parameter is pre(x pre ,y pre ,s pre , r pre ), then the coordinates of the center point of the detection box are (x det ,y det ), the coordinates of the center point of the prediction box are (x pre ,y pre ), the Euclidean distance can be calculated by the following formula:

[0078] dis=(x det -x pre ) 2 +(y det -y pre ) 2

[0079] In the above formula, dis represents the Euclidean distance from the center coordinate of the detection box to the center coordinate of the prediction box.

[0080] The distance correlation can be calculated by the following formula:

[0081]

[0082] In the above formula, dis_pos is the distance correlation between the target detection box information corresponding to the n+1th frame image and the target prediction box information corresponding to the nth frame image, and the above max_dis is a preset distance threshold, which can be set to about 0.2.

[0083] 202. Calculate the area correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the detection frame area and the prediction frame area.

[0084] In the embodiment of the present invention, the area correlation can be calculated by the area ratio. The area of ​​the detection frame is s det , the area of ​​the above prediction box is s pre , the area ratio can be calculated by the following formula:

[0085] size=s det / s pre

[0086] In the above formula, size represents the area ratio of the detection box area to the prediction box area.

[0087] The area correlation can be calculated by the following formula:

[0088] dis_size=(size-1.0) / (max_size-1.0)

[0089] In the above formula, dis_size represents the area correlation between the target detection box information corresponding to the n+1th frame image and the target prediction box information corresponding to the nth frame image, and the above max_size is a preset area ratio threshold, which can be set to about 1.8.

[0090] 203. Calculate the shape correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the detection frame aspect ratio and the prediction frame aspect ratio.

[0091] In the embodiment of the present invention, the shape correlation can be calculated by the shape ratio of the detection frame aspect ratio and the prediction frame aspect ratio, where the detection frame aspect ratio is r det , the above prediction box aspect ratio r pre , the shape ratio can be calculated by the following formula:

[0092] ratio = r det / r pre

[0093] In the above formula, ratio represents the shape ratio of the detection box aspect ratio and the prediction box aspect ratio.

[0094] The shape correlation can be calculated by the following formula:

[0095] dis_ratio=(ratio-1.0) / (max_ratio-1.0)

[0096] In the above formula, dis_ratio represents the shape correlation between the target detection box information corresponding to the n+1th frame image and the target prediction box information corresponding to the nth frame image, and the above max_ratio is a preset shape ratio threshold, which can be set to about 1.8.

[0097] 204. Based on the distance correlation, the area correlation and the shape correlation, calculate the frame correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image.

[0098] In the embodiment of the present invention, the above-mentioned frame similarity may be the sum or weighted sum of the distance correlation, the area correlation and the shape correlation, and the specific weighting coefficient may be determined according to actual needs.

[0099] The frame correlation and feature correlation are summed to obtain the correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image. Specifically, it can be shown as follows:

[0100] dis_all=dis_pos+dis_size+dis_ratio+dis_feat

[0101] In the above formula, dis_all represents the correlation between the target detection box information corresponding to the n+1th frame image and the target prediction box information corresponding to the nth frame image.

[0102] 103. If there is a disconnected trajectory, reconnect the disconnected trajectory to obtain a reconnection result, and based on the reconnection result, obtain a corresponding target tracking sequence.

[0103] In an embodiment of the present invention, a track may be formed by multiple continuous target detection frame information. After the current track ends, all the disconnected tracks that have ended may be traversed to reconnect. Specifically, the reconnection may be performed based on the target detection frame information in each track.

[0104] Optional, see Figure 3 , Figure 3 is a flow chart of a trajectory reconnection method provided by an embodiment of the present invention. Figure 3 As shown, the following steps are included:

[0105] 301. Extract first representative detection box information and second representative detection box information from a first disconnected track and a second disconnected track respectively from a plurality of disconnected tracks.

[0106] In an embodiment of the present invention, the quality of the target detection frame information in each track can be evaluated, so as to select the target detection frame information with the highest quality score as the representative detection frame information. It should be noted that the first representative detection frame information and the second representative detection frame information are used to distinguish whether the representative detection frame information belongs to the first disconnected track or the second disconnected track.

[0107] 302. Calculate the correlation between the first disconnected track and the second disconnected track according to the first representative detection frame information and the second representative detection frame information.

[0108] In the embodiment of the present invention, the correlation between the first representative detection frame information and the second representative detection frame information is the correlation between the first disconnected track and the second disconnected track. The correlation between the first representative detection frame information and the second representative detection frame information can be specifically referred to step 102.

[0109] 303. When the correlation between the first disconnected trajectory and the second disconnected trajectory is greater than or equal to a second preset correlation threshold, reconnect the first disconnected trajectory and the second disconnected trajectory.

[0110] In the embodiment of the present invention, when the correlation between the first disconnected trajectory and the second disconnected trajectory is greater than or equal to the second preset correlation threshold, it means that the first disconnected trajectory and the second disconnected trajectory are trajectories of the same target, and the first disconnected trajectory and the second disconnected trajectory can be reconnected.

[0111] Optionally, it can be determined whether the first disconnected trajectory and the second disconnected trajectory have the same image frame identifier; if the first disconnected trajectory and the second disconnected trajectory do not have the same image frame identifier, the first disconnected trajectory and the second disconnected trajectory are reconnected. The above-mentioned image frame identifier can be the frame number of the image frame. If they have the same image frame identifier, it means that the first disconnected trajectory and the second disconnected trajectory overlap and do not belong to the disconnected trajectory of the same target.

[0112] Optionally, if the correlation between the first disconnected trajectory and the second disconnected trajectory of the current target is greater than or equal to the second preset correlation threshold, the first disconnected trajectory of the current target and the second disconnected trajectory are reconnected to obtain a first reconnected trajectory; according to a preset filtering rule, the first reconnected trajectory of the current target is filtered to obtain a second reconnected trajectory as a reconnection result.

[0113] The above filtering rules include: determining whether the length of the first reconnection trajectory reaches a preset length, determining whether the image quality of the first reconnection trajectory reaches a preset image quality, and determining whether the target size in the first reconnection trajectory reaches a preset target size.

[0114] Optionally, some shorter first reconnection trajectories may be filtered out according to the trajectory length. Targets corresponding to shorter first reconnection trajectories are usually difficult to be classified into other trajectories and will greatly affect the tracking effect.

[0115] Optionally, the first reconnected trajectory with an overall image quality lower than a preset image quality may be filtered out, which may improve the tracking accuracy to a certain extent.

[0116] Optionally, targets with a target size smaller than a preset target size may be filtered. If the target size is too small, misconnection may occur easily. By reducing the first edge track with a smaller target size, the tracking accuracy may be further improved.

[0117] In an embodiment of the present invention, the target detection frame information and target prediction frame information of each frame image in the image sequence to be processed are extracted; the target detection frame information corresponding to the n+1 frame image is matched with the target prediction frame information corresponding to the n frame image, and it is determined whether the matching result includes a disconnected track; if the disconnected track exists, the disconnected track is reconnected to obtain a reconnection result, and based on the reconnection result, a corresponding target tracking sequence is obtained. By matching the prediction frame information with the detection frame information, the detection frame has a priori information during the track tracking process, which improves the accuracy of the detection frame, and the disconnected track can be reconnected to improve the detection accuracy of target tracking.

[0118] It should be noted that the target tracking method provided in the embodiment of the present invention can be applied to devices such as mobile phones, monitors, computers, servers, etc. that can perform target tracking.

[0119] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a target tracking device provided by an embodiment of the present invention, such as Figure 4 As shown, the device comprises:

[0120] An extraction module 401 is used to extract target detection frame information and target prediction frame information of each frame image in the image sequence to be processed;

[0121] A matching module 402 is used to match the target detection frame information corresponding to the (n+1)th frame image with the target prediction frame information corresponding to the (n)th frame image, and determine whether the matching result includes a disconnected track;

[0122] The reconnection module 403 is used to reconnect the disconnected trajectory if it exists, obtain a reconnection result, and obtain a corresponding target tracking sequence based on the reconnection result.

[0123] Optional, such as Figure 5 As shown, the matching module 402 includes:

[0124] The first calculation submodule 4021 is used to calculate the correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image, and determine whether there is a one-to-one correspondence between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image that meet the matching condition, wherein the correlation is greater than or equal to a first preset correlation threshold;

[0125] A first matching submodule 4022 is configured to match the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image that meet the matching condition as a continuous trajectory if there is a one-to-one correspondence between the target detection frame information corresponding to the nth frame image;

[0126] The second matching submodule 4023 is used to match as a disconnected track if there is no one-to-one correspondence between the target detection frame information corresponding to the n+1th frame image that meets the matching condition and the target prediction frame information corresponding to the nth frame image.

[0127] Optional, such as Figure 6 As shown, the target detection frame information includes detection frame parameters and detection frame images, the target prediction frame information includes prediction frame parameters and prediction frame images, the correlation includes frame correlation and feature correlation, and the first calculation submodule 4021 includes:

[0128] A first calculation unit 40211 is used to calculate the frame correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the detection frame parameters and the prediction frame parameters;

[0129] A second calculation unit 40212 is used to calculate the feature correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the nth frame image according to the detection frame image and the prediction frame image;

[0130] The third calculation unit 40213 is used to calculate the correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the frame correlation and the feature correlation.

[0131] Optional, such as Figure 7 As shown, the detection frame parameters include the coordinates of the center point of the detection frame, the area of ​​the detection frame, and the aspect ratio of the detection frame. The prediction frame parameters include the coordinates of the center point of the prediction frame, the area of ​​the prediction frame, and the aspect ratio of the prediction frame. The first calculation unit 40211 includes:

[0132] A first calculation subunit 402111 is used to calculate the distance correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the center point coordinates of the detection frame and the center point coordinates of the prediction frame;

[0133] The second calculation subunit 402112 is used to calculate the area correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the detection frame area and the prediction frame area;

[0134] The third calculation subunit 402113 is used to calculate the shape correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the detection frame aspect ratio and the prediction frame aspect ratio;

[0135] The fourth calculation subunit 402114 is used to calculate the frame correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image based on the distance correlation, the area correlation and the shape correlation.

[0136] Optional, such as Figure 8 As shown, the reconnection module 403 includes:

[0137] An extraction submodule 4031 is used to extract first representative detection frame information and second representative detection frame information from the first disconnected track and the second disconnected track respectively;

[0138] A second calculation submodule 4032 is used to calculate the correlation between the first disconnected track and the second disconnected track according to the first representative detection frame information and the second representative detection frame information;

[0139] The first reconnection submodule 4033 is configured to reconnect the first disconnected trajectory with the second disconnected trajectory when the correlation between the first disconnected trajectory and the second disconnected trajectory is greater than or equal to a second preset correlation threshold.

[0140] Optional, such as Fig. 9 As shown, the reconnection module 403 also includes:

[0141] A determination submodule 4034 is used to determine whether the first disconnected track and the second disconnected track have the same image frame identifier;

[0142] The second reconnection submodule 4035 is configured to reconnect the first disconnected trajectory and the second disconnected trajectory if the first disconnected trajectory and the second disconnected trajectory do not have the same image frame identifier.

[0143] Optional, such as Fig.10 As shown, the first reconnection submodule 4033 includes:

[0144] a reconnection unit 40331, configured to reconnect the first disconnected trajectory of the current target with the second disconnected trajectory to obtain a first reconnected trajectory if the correlation between the first disconnected trajectory and the second disconnected trajectory of the current target is greater than or equal to the second preset correlation threshold;

[0145] The filtering unit 40332 is configured to filter the first reconnection trajectory of the current target according to a preset filtering rule to obtain a second reconnection trajectory as a reconnection result.

[0146] Optionally, the filtering rule includes: determining whether the length of the first reconnection trajectory reaches a preset length, determining whether the image quality of the first reconnection trajectory reaches a preset image quality, and determining whether a target size in the first reconnection trajectory reaches a preset target size.

[0147] It should be noted that the target tracking device provided in the embodiment of the present invention can be applied to devices such as mobile phones, monitors, computers, servers, etc. that can perform target tracking.

[0148] The target tracking device provided in the embodiment of the present invention can implement each process implemented by the target tracking method in the above method embodiment and can achieve the same beneficial effect. To avoid repetition, it will not be described here.

[0149] See also Fig.11 , Fig.11 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Fig.11 As shown, it includes: a memory 1102, a processor 1101, and a computer program stored in the memory 1102 and executable on the processor 1101, wherein:

[0150] The processor 1101 is used to call the computer program stored in the memory 1102 and execute the following steps:

[0151] Extract the target detection frame information and target prediction frame information of each frame image in the image sequence to be processed;

[0152] Match the target detection frame information corresponding to the n+1th frame image with the target prediction frame information corresponding to the nth frame image, and determine whether the matching result includes a disconnected track;

[0153] If the disconnected trajectory exists, the disconnected trajectory is reconnected to obtain a reconnection result, and based on the reconnection result, a corresponding target tracking sequence is obtained.

[0154] Optionally, the matching of the target detection frame information corresponding to the (n+1)th frame image with the target prediction frame information corresponding to the nth frame image performed by the processor 1101 includes:

[0155] Calculating the correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image, and determining whether the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image that meet a matching condition correspond one-to-one, wherein the matching condition is that the correlation is greater than or equal to a first preset correlation threshold;

[0156] If the target detection frame information corresponding to the n+1th frame image that meets the matching condition corresponds to the target prediction frame information corresponding to the nth frame image, the match is a continuous trajectory;

[0157] If the target detection frame information corresponding to the n+1th frame image that meets the matching conditions is not one-to-one corresponding to the target prediction frame information corresponding to the nth frame image, the match is a disconnected track.

[0158] Optionally, the target detection frame information includes a detection frame parameter and a detection frame image, the target prediction frame information includes a prediction frame parameter and a prediction frame image, the correlation performed by the processor 1101 includes a frame correlation and a feature correlation, and the calculating the correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image includes:

[0159] Calculating, according to the detection frame parameters and the prediction frame parameters, a frame correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image;

[0160] Calculating, according to the detection frame image and the prediction frame image, a feature correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image;

[0161] According to the frame correlation and the feature correlation, the correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image is calculated.

[0162] Optionally, the detection frame parameters include the coordinates of the center point of the detection frame, the area of ​​the detection frame, and the aspect ratio of the detection frame; the prediction frame parameters include the coordinates of the center point of the prediction frame, the area of ​​the prediction frame, and the aspect ratio of the prediction frame; and the processor 1101 calculates the frame correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the nth frame image according to the detection frame parameters and the prediction frame parameters, including:

[0163] Calculating the distance correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the center point coordinates of the detection frame and the center point coordinates of the prediction frame;

[0164] Calculating, according to the detection frame area and the prediction frame area, an area correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image;

[0165] Calculating, according to the detection frame aspect ratio and the prediction frame aspect ratio, a shape correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image;

[0166] Based on the distance correlation, the area correlation and the shape correlation, a frame correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image is calculated.

[0167] Optionally, if the disconnected track exists, the reconnecting the disconnected track executed by the processor 1101 includes:

[0168] Extracting first representative detection frame information and second representative detection frame information from the first disconnected track and the second disconnected track respectively;

[0169] Calculating the correlation between the first disconnected track and the second disconnected track according to the first representative detection frame information and the second representative detection frame information;

[0170] When the correlation between the first disconnected trajectory and the second disconnected trajectory is greater than or equal to a second preset correlation threshold, the first disconnected trajectory and the second disconnected trajectory are reconnected.

[0171] Optionally, the processor 1101 further executes:

[0172] Determining whether the first disconnected track and the second disconnected track have the same image frame identifier;

[0173] If the first disconnected track and the second disconnected track do not have the same image frame identifier, the first disconnected track and the second disconnected track are reconnected.

[0174] Optionally, the processor 1101 executes the step of reconnecting the first disconnected trajectory and the second disconnected trajectory when the correlation between the first disconnected trajectory and the second disconnected trajectory is greater than or equal to a second preset correlation threshold, including:

[0175] If the correlation between the first disconnected trajectory and the second disconnected trajectory of the current target is greater than or equal to the second preset correlation threshold, reconnecting the first disconnected trajectory and the second disconnected trajectory of the current target to obtain a first reconnected trajectory;

[0176] The first reconnection trajectory of the current target is filtered according to a preset filtering rule to obtain a second reconnection trajectory as a reconnection result.

[0177] Optionally, the filtering rule includes: determining whether the length of the first reconnection trajectory reaches a preset length, determining whether the image quality of the first reconnection trajectory reaches a preset image quality, and determining whether a target size in the first reconnection trajectory reaches a preset target size.

[0178] It should be noted that the above-mentioned electronic device may be a mobile phone, monitor, computer, server or other device that can be used for target tracking.

[0179] The electronic device provided in the embodiment of the present invention can implement each process implemented by the target tracking method in the above method embodiment and can achieve the same beneficial effects. To avoid repetition, it will not be described here.

[0180] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the target tracking method provided by the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0181] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0182] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A target tracking method, It is characterized in that The following steps are involved: Extract the target detection frame information and target prediction frame information of each frame image in the image sequence to be processed; Match the target detection frame information corresponding to the n+1th frame image with the target prediction frame information corresponding to the nth frame image, and determine whether the matching result includes a disconnected track; If the disconnected track exists, reconnect the disconnected track to obtain a reconnection result, and obtain a corresponding target tracking sequence based on the reconnection result; The matching of the target detection frame information corresponding to the (n+1)th frame image with the target prediction frame information corresponding to the (n)th frame image includes: Calculating the correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image, and determining whether the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image that meet a matching condition correspond one-to-one, wherein the matching condition is that the correlation is greater than or equal to a first preset correlation threshold; If the target detection frame information corresponding to the n+1th frame image that meets the matching condition corresponds to the target prediction frame information corresponding to the nth frame image, the match is a continuous trajectory; If the target detection frame information corresponding to the n+1th frame image that meets the matching condition is not one-to-one corresponding to the target prediction frame information corresponding to the nth frame image, the match is a disconnected track; The target detection frame information includes a detection frame parameter and a detection frame image, the target prediction frame information includes a prediction frame parameter and a prediction frame image, the correlation includes a frame correlation and a feature correlation, and calculating the correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image includes: Calculating, according to the detection frame parameters and the prediction frame parameters, a frame correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image; Calculating, according to the detection frame image and the prediction frame image, a feature correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image; Calculating the correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image according to the frame correlation and the feature correlation; The detection frame parameters include the coordinates of the center point of the detection frame, the area of ​​the detection frame, and the aspect ratio of the detection frame; the prediction frame parameters include the coordinates of the center point of the prediction frame, the area of ​​the prediction frame, and the aspect ratio of the prediction frame; and calculating the frame correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image according to the detection frame parameters and the prediction frame parameters, including: Calculating the distance correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the center point coordinates of the detection frame and the center point coordinates of the prediction frame; Calculating, according to the detection frame area and the prediction frame area, an area correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image; Calculating, according to the detection frame aspect ratio and the prediction frame aspect ratio, a shape correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image; Based on the distance correlation, the area correlation and the shape correlation, a frame correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image is calculated.

2. The method according to claim 1, It is characterized in that If the disconnected track exists, reconnecting the disconnected track includes: Extracting first representative detection frame information and second representative detection frame information from the first disconnected track and the second disconnected track respectively; Calculating the correlation between the first disconnected track and the second disconnected track according to the first representative detection frame information and the second representative detection frame information; When the correlation between the first disconnected trajectory and the second disconnected trajectory is greater than or equal to a second preset correlation threshold, the first disconnected trajectory and the second disconnected trajectory are reconnected.

3. The method according to claim 2, It is characterized in that The method further comprises: Determining whether the first disconnected track and the second disconnected track have the same image frame identifier; If the first disconnected track and the second disconnected track do not have the same image frame identifier, the first disconnected track and the second disconnected track are reconnected.

4. The method according to claim 3, It is characterized in that When the correlation between the first disconnected trajectory and the second disconnected trajectory is greater than or equal to a second preset correlation threshold, reconnecting the first disconnected trajectory and the second disconnected trajectory includes: If the correlation between the first disconnected trajectory and the second disconnected trajectory of the current target is greater than or equal to the second preset correlation threshold, reconnecting the first disconnected trajectory and the second disconnected trajectory of the current target to obtain a first reconnected trajectory; The first reconnection trajectory of the current target is filtered according to a preset filtering rule to obtain a second reconnection trajectory as a reconnection result.

5. The method according to claim 4, It is characterized in that The filtering rule includes: determining whether the length of the first reconnection trajectory reaches a preset length, determining whether the image quality of the first reconnection trajectory reaches a preset image quality, and determining whether the target size in the first reconnection trajectory reaches a preset target size.

6. A target tracking device, It is characterized in that The device comprises: An extraction module is used to extract the target detection frame information and target prediction frame information of each frame image in the image sequence to be processed; A matching module is used to match the target detection frame information corresponding to the n+1th frame image with the target prediction frame information corresponding to the nth frame image, and determine whether the matching result includes a disconnected track; a reconnection module, configured to reconnect the disconnected trajectory if there is one, obtain a reconnection result, and obtain a corresponding target tracking sequence based on the reconnection result; The matching module 402 includes: a first calculation submodule, configured to calculate a correlation between the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image, and determine whether the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image that meet a matching condition correspond one-to-one, wherein the matching condition is that the correlation is greater than or equal to a first preset correlation threshold; A first matching submodule, configured to match the target detection frame information corresponding to the n+1th frame image and the target prediction frame information corresponding to the nth frame image that meet the matching condition as a continuous trajectory if there is a one-to-one correspondence between the target detection frame information corresponding to the nth frame image; A second matching submodule, configured to match a disconnected track if there is no one-to-one correspondence between the target detection frame information corresponding to the n+1th frame image that meets the matching condition and the target prediction frame information corresponding to the nth frame image; The target detection frame information includes detection frame parameters and a detection frame image, the target prediction frame information includes prediction frame parameters and a prediction frame image, the correlation includes frame correlation and feature correlation, and the first calculation submodule includes: A first calculation unit is used to calculate the frame correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the detection frame parameters and the prediction frame parameters; A second calculation unit is used to calculate the feature correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the nth frame image according to the detection frame image and the prediction frame image; A third calculation unit is used to calculate the correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the nth frame image according to the frame correlation and the feature correlation; The detection frame parameters include the coordinates of the center point of the detection frame, the area of ​​the detection frame, and the aspect ratio of the detection frame; the prediction frame parameters include the coordinates of the center point of the prediction frame, the area of ​​the prediction frame, and the aspect ratio of the prediction frame; and the first calculation unit includes: A first calculation subunit is used to calculate the distance correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the center point coordinates of the detection frame and the center point coordinates of the prediction frame; A second calculation subunit is used to calculate the area correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the detection frame area and the prediction frame area; A third calculation subunit is used to calculate the shape correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image according to the detection frame aspect ratio and the prediction frame aspect ratio; The fourth calculation subunit is used to calculate the frame correlation between the target detection frame information corresponding to the (n+1)th frame image and the target prediction frame information corresponding to the (n)th frame image based on the distance correlation, the area correlation and the shape correlation.

7. An electronic device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the target tracking method according to any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the target tracking method according to any one of claims 1 to 5 are implemented.