A roadside perspective multi-target tracking method

Through lightweight target detection network and pairwise target matching strategy, combined with Euclidean distance and Kalman filter, it solves the problems of occlusion and excessive computation of multi-target tracking technology in complex traffic environments, and achieves more efficient and accurate targets. track.

CN114529577BActive Publication Date: 2024-09-06YANSHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210023872.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-10
Publication Date
2024-09-06
Estimated Expiration
2042-01-10

AI Technical Summary

Technical Problem

Existing multi-target tracking technology is difficult to overcome the trajectory loss and mismatching problems caused by occlusion, misdetection, tracking identity conversion and illumination scale changes in complex traffic environments. The calculation amount is too large, and the gradient disappearance or explosion problem is difficult to solve.

Method used

A lightweight target detection network combined with a pairwise target matching strategy is used to predict the position through Euclidean distance and Kalman filter, and the Ghost module and Mish function are used for feature extraction and matching, which reduces the amount of calculation and improves the matching speed and accuracy.

Benefits of technology

It effectively reduces the problems of missed detection and false detection caused by occlusion, improves the calculation speed and accuracy, reduces network parameters, enhances the gradient descent effect, and improves the real-time and accuracy of multi-target tracking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114529577B
    Figure CN114529577B
Patent Text Reader

Abstract

The present invention relates to a roadside perspective multi-target tracking method, which effectively reduces missed detection, false detection and target identity conversion problems caused by two targets that are too close to each other and are blocked by each other by matching paired targets; further, by adopting a lightweight network and an advanced activation function, a faster calculation speed can be achieved, and while the network parameters are greatly reduced, the accuracy remains unchanged, and relatively accurate initialization and observation values ​​can be provided for subsequent target tracking; further, two pairs of detection targets are used to calculate the appearance cosine matrix, which can reduce the amount of calculation and improve the target matching speed; at the same time, for objects consisting of target pairs that have not been successfully matched, further matching is performed through a single target, thereby improving the matching success rate and improving the multi-target tracking accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intelligent traffic environment perception, and specifically relates to a roadside perspective multi-target tracking method. Background Art

[0002] Environmental perception technology is an important part of intelligent transportation, and target tracking technology is a key part of environmental perception. Target tracking technology is divided into single target tracking and multi-target tracking. At present, single target tracking technology is relatively mature and has strong universality, but multi-target tracking technology is not particularly ideal in solving problems such as background occlusion, illumination, and scale changes in complex traffic environments.

[0003] Multi-target tracking technology has a wide range of applications in various traffic environments. Therefore, a multi-target tracking algorithm with good detection technology and data association and matching mechanism is very necessary for complex traffic scenes. The multi-target tracking technology process based on deep learning is divided into four steps: target detection, feature extraction, similarity calculation and data association. With the rapid development of deep learning, the accuracy and speed of target detection algorithms based on convolutional neural networks have been greatly improved; with convolutional neural networks as the backbone network, multi-layer feature extraction and fusion are performed to meet targets of different sizes. Most deep learning multi-target tracking algorithms based on detection results have therefore greatly exceeded traditional multi-target tracking methods. Although the number of neural network layers is deepening and data association methods are constantly improving, it is still difficult to overcome the problems of missed detection, false detection, and identity conversion of tracking targets caused by dense pedestrians, mutual occlusion between vehicles, and small targets in complex traffic environments; track loss caused by changes in illumination scale and shooting angle, and mismatching caused by changes in the appearance and motion state of the tracking target during movement; and excessive calculations due to the deepening of the number of neural network layers and gradient disappearance or explosion. Summary of the invention

[0004] In order to solve the problems existing in the current multi-target tracking technology under roadside perspective, the present invention proposes a roadside perspective multi-target tracking method, comprising the following steps:

[0005] S100, performing target detection on each frame of the image in the detection data set to obtain the center point position of each target;

[0006] S200, based on the target center point positions, calculating the Euclidean distance between two targets on a frame image, and sequentially taking out two targets with the smallest distance to form an object; if there is one target left, taking the target as an object;

[0007] S300, obtaining an object on a first frame of an image to be detected, and taking it as a first object;

[0008] S400, establishing a trajectory set for a first object, each element in the set including position information;

[0009] S500, determining whether there is a next frame of image; if there is a next frame of image, using the Kalman filter model to predict the position of the first object on the next frame of image, and executing step S600;

[0010] S600, obtaining an object on the next frame image and taking it as the second object, and for each first object, calculating the intersection-and-union ratio of the area occupied by the second object at the predicted position and the area occupied by the second object at each actual position; taking the second object with the maximum intersection-and-union ratio as the object to be matched with the first object;

[0011] S700, performing appearance matching on the to-be-matched object, and if the match is successful, updating the trajectory corresponding to the first object;

[0012] S800: Update the unmatched second object to the first object, and return to step S400.

[0013] Preferably, in the method, the target detection comprises the following steps:

[0014] S110, using a lightweight target detection network to obtain the confidence and target type probability of each target;

[0015] S111, calculating the confidence score of each target based on the confidence and target type probability of each target;

[0016] S112, for the confidence scores higher than the first threshold, retain the corresponding targets, and retain the corresponding target state vector and appearance features;

[0017] The state vector of the target is expressed as:

[0018]

[0019] Where: x c is the horizontal coordinate of the target center point; c is the ordinate of the target center point; w is the width of the target bounding box; h is the height of the target bounding box; is the target's moving speed in the horizontal direction, and its initial value is 0; is the target's moving speed in the horizontal direction, with an initial value of 0: is the target width change rate, the initial value is 0; is the high rate of change of the target, and the initial value is 0.

[0020] Preferably, in the method, the lightweight object detection network obtains a data set for learning and training through the following steps:

[0021] S101, obtaining real road traffic video images, and manually annotating each frame of the image;

[0022] S102, mixing the manually annotated image with the existing annotated multi-target tracking dataset;

[0023] S103, unifying the data format of the images in the mixed data set, and performing data enhancement to obtain a data set to be detected;

[0024] The data enhancement is achieved by any operation or a combination of multiple operations including random cropping, multi-scale scaling, affine transformation, and inversion.

[0025] Preferably, in the above method, the lightweight target detection network adopts a DLA34 network structure as a backbone network, and a Ghost module is adopted in a Block in the DLA34 network structure.

[0026] Preferably, in the above method, the DLA34 network structure uses a Mish function to prevent gradient disappearance.

[0027] Preferably, in the above method, the appearance matching comprises the following steps:

[0028] S701, calculating a cosine distance matrix of appearance features of a to-be-matched object and a first set number of objects stored in a tracker; the tracker creates a repository for each object, for storing appearance features of different frames of the target;

[0029] S702, for the matching object, calculate the Mahalanobis distance matrix between its predicted position and the detected position through Kalman filtering;

[0030] S703 , input the cosine distance matrix and the Mahalanobis distance matrix into the Hungarian algorithm, and return the matching result of the trajectory predicted by the Kalman filter and the object to be matched.

[0031] Preferably, in the above method, S700 further includes the following steps:

[0032] S7001, obtaining the number of image frames that have been successfully matched by the current first object;

[0033] S7002: If the number of successfully matched image frames reaches a third set number, stop detecting and tracking the object.

[0034] Preferably, in the above method, before returning to step S400, step S800 further includes the following steps:

[0035] S801, for a first object that is not successfully matched at present, obtaining the total number of image frames that have been predicted for it;

[0036] S802, when the total number of image frames reaches the second set number and still fails to match successfully;

[0037] S803, determining whether the object has two targets, if so, treating each target in the object as a first object; otherwise, stopping detection and tracking of the object.

[0038] Compared with the prior art, the present invention has the following advantages:

[0039] The present invention adopts paired targets for matching, effectively reducing the problems of missed detection, false detection and identity conversion of tracking targets caused by two targets being occluded due to being too close to each other; further, by adopting a lightweight network and an advanced activation function, a faster calculation speed can be achieved, and the accuracy remains unchanged while the network parameters are greatly reduced, and relatively accurate initialization and observation values ​​can be provided for subsequent target tracking; further, two pairs of detection targets are used to calculate the appearance cosine matrix, which can reduce the amount of calculation and improve the target matching speed; at the same time, for objects consisting of target pairs that have not been successfully matched, further matching is performed through a single target, thereby improving the matching success rate and improving the multi-target tracking accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0041] Figure 1 , is a schematic diagram of the lightweight target detection network structure adopted by the present invention;

[0042] In the figure: 1. Conv module; 2. BN module; 3. Mish module; 4. Down unit; 5. Block unit; 6. Root unit; 7. GhostModule module; 8. Add module; 9. Up module; 10. Heatmap Head module; 11. Box Size Head module; 12. Center Offset Head module; 13. Re-ID Embeddings Head module; 14. Concat module; 15. Pooling module;

[0043] Figure 2 , is a flow chart of a roadside perspective multi-target tracking method based on deep learning. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0045] The terms "including" and "having" and any variations thereof in the specification and claims of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or devices is not necessarily limited to those steps or devices explicitly listed, but may include other steps or devices that are not explicitly listed or inherent to these processes, methods, products, or devices.

[0046] The multi-target tracking system is basically divided into two parts: target detection and target tracking. The data union part in target detection and target tracking requires a lot of computing resources, which greatly affects the real-time application of multi-target tracking technology in real society. In order to overcome the above problems, in one embodiment, a lightweight target detection network is used in conjunction with a pairwise matching strategy to achieve an integrated multi-target tracking method.

[0047] The lightweight target detection network structure adopts the DLA34 network structure as the backbone network. The Block in the DLA34 network structure uses the GhostModule module to extract and fuse multi-layer features of the image, and batch normalizes the output of the GhostModule module to accelerate convergence. Furthermore, the Mish function is used for nonlinear enhancement to enhance the gradient descent effect.

[0048] Specifically, Figure 1As shown in the figure, the backbone network of the lightweight target detection network structure is a deep aggregation network structure, including a linear part and a tree structure part. The linear part consists of a base layer, a level0 layer, and a level1 layer. Each layer consists of a convolution node. Each convolution node includes a convolution unit for increasing the number of channels. Each convolution unit consists of a Conv module (1), a BN module (2), and a Mish module (3) to implement convolution calculation and batch normalization processing of the image, and finally output after nonlinear enhancement processing by the Mish function. The tree structure part is composed of level2 to level5 layers connected in sequence. The level2 layer consists of a DBR node, the level3 consists of a DBR node and a BBR node in sequence, the level4 consists of a DBR node and three BBR nodes in sequence, and the level5 consists of 1 DBR node in sequence. The input between each layer is the output of the previous layer. For example, the output of the level2 layer is the input of the level3 layer. After pooling by the Pooling module (15), each layer performs location deep aggregation. At the same time, iterative deep aggregation is also performed within each layer to gradually refine the resolution and aggregation scale. On the one hand, the feature structure can be propagated at different depths of the network, allowing the deep and shallow expressions of the target features to be better integrated. On the other hand, the resolution can be improved.

[0049] The DBR node includes a Down unit (4), a Block unit (5) and a Root unit (6). The Down unit implements two-level feature fusion. The first level is pooled by the Pooling module (15) and then a convolution operation is performed. The other level is subjected to two convolution operations. The results of the two levels of convolution are superimposed to improve the resolution. The superimposed result is subjected to the nonlinear enhancement processing of the Mish function to obtain the first output result, which is output to the Block unit. The Block unit reduces the number of network parameters through two GhostModule modules (7), so that the weight of the neural network and the number of floating-point operations per second are reduced, and the calculation result of each GhostModule module is batch normalized, output after the Mish function operation, and the result of the second output is used as the second output result and output to the A node. The A node is composed of an Add module (8). The Add module superimposes the values ​​of the first output result and the second output result, and outputs them to the Mish function for nonlinear enhancement processing to obtain the third output result. The Root unit superimposes the first output result and the third output result through the Concat module (14), and outputs them to the next node after the convolution unit. The BBR node includes two Block units and one Root unit.

[0050] The lightweight target detection network structure also includes a U node, which includes an Up module (9) for fusing the features of each layer again step by step. During the last two fusions, the Add module is added to perform superposition processing on the values, and then the values ​​are processed by the convolution unit and output. In order to accelerate convergence and prevent gradient oversaturation and increase the gradient descent effect, normalization processing is also performed in these two convolution calculations, and the output results are subjected to nonlinear calculation of the Mish function.

[0051] More preferably, at the output end of the lightweight target detection network structure, a prediction node is coupled and connected to form an anchor-free detection and joint tracking end-to-end network. The prediction node includes a Heatmap Head module (10), a Box Size Head module (11), a Center Offset Head module (12) and a Re-ID Embeddings Head module (13).

[0052] The Heatmap Head module is used to output a heat map, which is used to intuitively determine the position of the center point of target detection. If a position in the heat map coincides with the center position of the true target, the response of this position is the largest; if the distance between a position and the center position of the true target increases, the response decays exponentially. The graph uses the response to represent the accuracy of the predicted target center point. If the predicted point is closer to the center of the actual target, the probability value of the point is greater, otherwise it decays exponentially.

[0053] The Box Size Head module is used to estimate the width and height of the target detection box, which is also the bounding box.

[0054] The Center Offset Head module is used to locate the object position and reduce the good error caused by downsampling. The object is 1 target or 1 target pair.

[0055] The Re-ID Embeddings Head module is used to generate features for distinguishing different objects. In the embodiment, a convolutional layer with 128 kernels is used to extract the appearance features of the object.

[0056] Next, the lightweight object detection network is trained and verified. There are many ways to obtain training and verification data sets, such as shooting real road traffic videos with roadside cameras, manually annotating each frame of the traffic video, and establishing a real scene data set. Then, the data set is processed, including but not limited to random cropping, multi-scale scaling, affine transformation, inversion, etc., and the sample difficulty is increased by using one or more combined operations.

[0057] Preferably, the sample size is expanded by mixing with existing standard multi-target tracking datasets. Existing standard multi-target tracking datasets include but are not limited to UA-DETRAC, KITTI, etc. In this way, the dataset to be detected is obtained by the following steps:

[0058] S101, obtaining real road traffic video images, and manually annotating each frame of the image;

[0059] S102, mixing the manually annotated image with the existing annotated multi-target tracking dataset;

[0060] S103, unifying the data format of the images in the mixed data set, and performing data enhancement to obtain a data set to be detected;

[0061] The data enhancement is achieved by any operation or a combination of multiple operations including random cropping, multi-scale scaling, affine transformation, and inversion.

[0062] The trained lightweight target detection network can be applied to track multiple targets from the roadside perspective in various traffic environments.

[0063] The above-mentioned lightweight target detection network is the preferred tool when the method of the present invention involves target detection and feature extraction, but the method of the present invention is not limited to the above-mentioned tools when it involves target detection and feature extraction, and can be other deep learning neural networks.

[0064] The schematic flow chart of the method of the present invention is as follows: Figure 2 As shown, the specific implementation steps are as follows:

[0065] S100, performing target detection on each frame of the image in the detection data set to obtain the center point position of each target;

[0066] S200, based on the target center point positions, calculating the Euclidean distance between two targets on a frame image, and sequentially taking out two targets with the smallest distance to form an object; if there is one target left, taking the target as an object;

[0067] S300, obtaining an object on a first frame of an image to be detected, and taking it as a first object;

[0068] S400, establishing a trajectory set for a first object, each element in the set including position information;

[0069] S500, determining whether there is a next frame of image; if there is a next frame of image, using the Kalman filter model to predict the position of the first object on the next frame of image, and executing step S600;

[0070] S600, obtaining an object on the next frame image and taking it as the second object, and for each first object, calculating the intersection-and-union ratio of the area occupied by the second object at the predicted position and the area occupied by the second object at each actual position; taking the second object with the maximum intersection-and-union ratio as the object to be matched with the first object;

[0071] S700, performing appearance matching on the to-be-matched object, and if the match is successful, updating the trajectory corresponding to the first object;

[0072] S800: Update the unmatched second object to the first object, and return to step S400.

[0073] In the above S200, the Euclidean distance calculation formula is as follows:

[0074]

[0075] Among them, (x im ,y im ) is the center point coordinate of the i-th target among the m targets in the current frame, (x jn ,y jn ) is the center point coordinate of the jth target among the m targets in the current frame, D ijm is the Euclidean distance between the i-th target and the j-th target among the m targets in the current frame.

[0076] The two closest targets are combined into one object. After the targets are combined into objects one by one, there may be no target at the end, which means that all targets in this frame of image are objects. There may be one target left, in which case it is directly regarded as an object.

[0077] In the above method, paired targets are used for matching, which effectively reduces the identity jump caused by occlusion of two targets due to being too close.

[0078] When detecting and tracking a target, it is preferred to use the above-mentioned lightweight target detection network, which can achieve faster calculation speed and higher transmission frames per second, while greatly reducing network parameters, while maintaining the same accuracy, and can provide more accurate initialization and observation values ​​for subsequent target tracking. The target detection includes the following steps:

[0079] S110, using a lightweight target detection network to obtain the confidence and target type probability of each target;

[0080] S111, calculating the confidence score of each target based on the confidence and target type probability of each target;

[0081] S112, for the confidence scores higher than the first threshold, retain the corresponding targets, and retain the corresponding target state vector and appearance features;

[0082] The state vector of the target is expressed as:

[0083]

[0084] where x c is the horizontal coordinate of the target center point; c is the ordinate of the target center point; w is the width of the target bounding box; h is the height of the target bounding box; is the target's moving speed in the horizontal direction, and its initial value is 0; is the target's moving speed in the horizontal direction, and its initial value is 0; is the target width change rate, the initial value is 0; is the high rate of change of the target, and the initial value is 0.

[0085] The target types involved in the present invention include pedestrians, vehicles, and cyclists.

[0086] When performing appearance matching, the following steps are preferably used:

[0087] S701, calculating a cosine distance matrix of appearance features of a to-be-matched object and a first set number of objects stored in a tracker; the tracker creates a repository for each object, for storing appearance features of different frames of the target;

[0088] S702, for the matching object, calculate the Mahalanobis distance matrix between its predicted position and the detected position through Kalman filtering;

[0089] S703 , input the cosine distance matrix and the Mahalanobis distance matrix into the Hungarian algorithm, and return the matching result of the trajectory predicted by the Kalman filter and the object to be matched.

[0090] By using the appearance cosine distance matrix, the amount of calculation can be reduced and the target matching speed can be improved.

[0091] In order to improve the matching success rate and the multi-target tracking accuracy, for the first object that is not matched, the target in the object is re-matched as a separate object. When implementing, this step can be placed before the return step S400 of step S800, specifically:

[0092] S801, for a first object that is not successfully matched at present, obtaining the total number of image frames that have been predicted for it;

[0093] S802, when the total number of image frames reaches the second set number and still fails to match successfully;

[0094] S803, determining whether the object has two targets, if so, treating each target in the object as a first object; otherwise, stopping detection and tracking of the object.

[0095] The above process stops detecting and tracking the target that has never been tracked, which can improve the detection and tracking efficiency.

[0096] During the target tracking process, the number of first objects as tracking objects will gradually increase. In order to improve the subsequent tracking speed, the following steps are performed to release the storage space in a timely manner:

[0097] S7001, obtaining the number of image frames that have been successfully matched by the current first object;

[0098] S7002: If the number of successfully matched image frames reaches a third set number, stop detecting and tracking the object.

[0099] This process is an optimization process of S700, that is, when the trajectory of the first object is updated, it is judged whether it is necessary to stop detecting and tracking it.

[0100] Through the description of the above implementation modes, those skilled in the art can clearly understand that the method of the present invention can be implemented by means of software plus necessary general hardware, and of course can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions performed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits, etc. However, for the present disclosure, software program implementation is a better implementation mode in most cases.

[0101] Although the embodiments of the present invention are described above in conjunction with the accompanying drawings, the present invention is not limited to the above specific embodiments and application fields, and the above specific embodiments are only illustrative and instructive, rather than restrictive. A person of ordinary skill in the art can also make many forms under the guidance of this specification and without departing from the scope of protection of the claims of the present invention, all of which belong to the protection of the present invention.

Claims

1. A roadside perspective multi-target tracking method, characterized in that: The method comprises the following steps: S100, performing target detection on each frame of the image in the detection data set to obtain the center point position of each target; S200, based on the target center point positions, calculating the Euclidean distance between two targets on a frame image, and sequentially taking out the two targets with the smallest distance to form an object; If there is 1 target left, treat that target as an object; S300, obtaining an object on a first frame of an image to be detected, and taking it as a first object; S400, establishing a trajectory set for a first object, each element in the set including position information; S500, determining whether there is a next frame of image; If the next frame image exists, the Kalman filter model is used to predict the position of the first object on the next frame image, and step S600 is executed; S600, obtaining an object on the next frame image and taking it as the second object, and for each first object, calculating the intersection-and-union ratio of the area occupied by the second object at the predicted position and the area occupied by the second object at each actual position; taking the second object with the maximum intersection-and-union ratio as the object to be matched with the first object; S700, performing appearance matching on the object to be matched, and if the match is successful, updating the trajectory corresponding to the first object; S800: Update the unmatched second object to the first object, and return to step S400.

2. The method according to claim 1, characterized in that The target detection comprises the following steps: S110, using a lightweight target detection network to obtain the confidence and target type probability of each target; S111, calculating the confidence score of each target based on the confidence and target type probability of each target; S112, for the confidence scores higher than the first threshold, retain the corresponding targets, and retain the corresponding target state vector and appearance features; The state vector of the target is expressed as: Where: x c is the horizontal coordinate of the target center point; c is the ordinate of the target center point; w is the width of the target bounding box; h is the height of the target bounding box; is the target's moving speed in the horizontal direction, and its initial value is 0; is the target's moving speed in the horizontal direction, with an initial value of 0: is the target width change rate, the initial value is 0; is the high rate of change of the target, and the initial value is 0.

3. The method according to claim 2, characterized in that The lightweight object detection network obtains a learning and training data set through the following steps: S101, obtaining real road traffic video images, and manually annotating each frame of the image; S102, mixing the manually annotated image with the existing annotated multi-target tracking dataset; S103, unifying the data format of the images in the mixed data set, and performing data enhancement to obtain a data set to be detected; The data enhancement is achieved by any operation or a combination of multiple operations including random cropping, multi-scale scaling, affine transformation, and inversion.

4. The method according to claim 2, characterized in that: The lightweight target detection network adopts the DLA34 network structure as the backbone network, and the Block in the DLA34 network structure adopts the Ghost module.

5. The method according to claim 4, characterized in that The DLA34 network structure uses the Mish function to prevent gradient disappearance.

6. The method according to claim 2, characterized in that The appearance matching comprises the following steps: S701, calculating a cosine distance matrix of appearance features of a to-be-matched object and a first set number of objects stored in a tracker; the tracker creates a repository for each object, for storing appearance features of different frames of the target; S702, for the matching object, calculate the Mahalanobis distance matrix between its predicted position and the detected position through Kalman filtering; S703 , input the cosine distance matrix and the Mahalanobis distance matrix into the Hungarian algorithm, and return the matching result of the trajectory predicted by the Kalman filter and the object to be matched.

7. The method according to claim 1, characterized in that The S700 further includes the following steps: S7001, obtaining the number of image frames that have been successfully matched by the current first object; S7002: If the number of successfully matched image frames reaches a third set number, stop detecting and tracking the object.

8. The method according to claim 1, characterized in that Before returning to step S400, the step S800 further includes the following steps: S801, for the first object that is not successfully matched at present, obtaining the total number of image frames that have been predicted for it; S802, when the total number of image frames reaches the second set number and still fails to match successfully; S803, determining whether the object has two targets, if so, treating each target in the object as a first object; otherwise, stopping detection and tracking of the object.