Target tracking method, device, computer device and computer storage medium

By using the accelerated regional convolutional neural network and predictor in the target tracking method for target frame matching, combined with the feature pyramid network, the problem of insufficient robustness of target tracking under illumination changes in the existing technology is solved, and a more efficient scene is achieved Adaptive and high-speed moving object tracking.

CN109903310BActive Publication Date: 2024-09-27PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910064675.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-01-23
Publication Date
2024-09-27
Estimated Expiration
2039-01-23

AI Technical Summary

Technical Problem

Existing target tracking methods are not robust when illumination changes, resulting in poor tracking results.

Method used

Using an accelerated regional convolutional neural network model combined with a predictor, the target frame in the current image is matched with the prediction frame in the previous frame image, and the target position is updated. The feature pyramid network and deep neural network model are used to detect different illumination and deformations. Conditions for adaptive tracking.

Benefits of technology

It improves the robustness and scene adaptability of target tracking, can effectively track high-speed moving objects, and overcome the effects of illumination and deformation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109903310B
    Figure CN109903310B
Patent Text Reader

Abstract

The present invention belongs to the field of image processing technology, and provides a target tracking method, device, computer device and storage medium. The target tracking method comprises: using a target detector to detect a predetermined type of target in a current image, and obtaining a first target frame in the current image; obtaining a second target frame in a previous frame of the current image, and using a predictor to predict the position of the second target frame in the current image, and obtaining a predicted frame of the second target frame in the current image; matching the first target frame in the current image with the predicted frame, and obtaining a matching result of the first target frame and the predicted frame; and updating the position of the target in the current image according to the matching result of the first target frame and the predicted frame. The present invention improves the robustness and scene adaptability of target tracking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a target tracking method, device, computer device and computer storage medium. Background Art

[0002] Object tracking refers to tracking moving objects in a video or image sequence (such as cars and pedestrians in traffic videos) to obtain the position of the moving object in each frame. Object tracking has a wide range of applications in video surveillance, autonomous driving, and video entertainment.

[0003] At present, target tracking mainly adopts the track by detection architecture, which detects the position information of each target through a detector in each frame of a video or image sequence, and then matches the target position information of the current frame with the target position information of the previous frame. However, the robustness of target tracking in existing schemes is not high, and the tracking effect is poor if the lighting changes. Summary of the invention

[0004] In view of the above, it is necessary to propose a target tracking method, device, computer device and computer storage medium, which can improve the robustness and scene adaptability of target tracking.

[0005] A first aspect of the present application provides a target tracking method, the method comprising:

[0006] Detecting a predetermined type of target in a current image using a target detector to obtain a first target frame in the current image;

[0007] Acquire a second target frame in a frame image before the current image, predict a position of the second target frame in the current image using a predictor, and obtain a predicted frame of the second target frame in the current image;

[0008] Matching a first target frame in the current image with the predicted frame to obtain a matching result between the first target frame and the predicted frame;

[0009] According to the matching result between the first target frame and the predicted frame, the position of the target is updated in the current image.

[0010] In another possible implementation, the target detector is a accelerated regional convolutional neural network model, the accelerated regional convolutional neural network model includes a region proposal network and a fast regional convolutional neural network, and the accelerated regional convolutional neural network model is trained according to the following steps before detecting a predetermined type of target in the image:

[0011] In a first training step, the region proposal network is initialized using an Imagenet model, and the region proposal network is trained using a first training sample set;

[0012] In a second training step, the region proposal network trained in the first training step is used to generate candidate boxes for each sample image in the first training sample set, and the fast region convolutional neural network is trained using the candidate boxes;

[0013] A third training step, initializing the region proposal network using the fast region convolutional neural network trained in the second training step, and training the region proposal network using the first training sample set;

[0014] In the fourth training step, the fast regional convolutional neural network is initialized using the region proposal network trained in the third training step, and the convolutional layer is kept fixed, and the fast regional convolutional neural network is trained using the first training sample set.

[0015] In another possible implementation, the accelerated regional convolutional neural network model adopts a ZF framework, and the region proposal network and the fast regional convolutional neural network share 5 convolutional layers.

[0016] In another possible implementation, the predictor is a deep neural network model constructed with a feature pyramid network.

[0017] In another possible implementation, before using a predictor to predict the position of the second target frame in the current image to obtain a predicted frame of the second target frame in the current image, the method further includes:

[0018] The predictor is trained using a second training sample set, where the second training sample set includes sample images of objects with different illumination, deformation, and high-speed motion.

[0019] In another possible implementation manner, matching the first target box in the current image with the predicted box includes:

[0020] Calculating the overlapping area ratio between the first target frame and the prediction frame, and determining each matching pair of the first target frame and the prediction frame according to the overlapping area ratio; or

[0021] The distance between the center point of the first target box and the predicted box is calculated, and each pair of matching first target box and predicted box is determined according to the distance.

[0022] In another possible implementation, updating the position of the target in the current image according to the matching result between the first target frame and the predicted frame includes:

[0023] If the first target frame matches the predicted frame, taking the position of the first target frame in the current image as the updated position of the target corresponding to the predicted frame;

[0024] If the first target frame does not match any of the predicted frames, taking the position of the first target frame as the position of a new target in the current image;

[0025] If the predicted box does not match any of the first target boxes, the target corresponding to the predicted box is regarded as a lost target in the current image.

[0026] A second aspect of the present application provides a target tracking device, the device comprising:

[0027] A detection module, configured to detect a predetermined type of target in a current image using a target detector to obtain a first target frame in the current image;

[0028] A prediction module, used to obtain a second target frame in a previous frame image of the current image, predict a position of the second target frame in the current image using a predictor, and obtain a predicted frame of the second target frame in the current image;

[0029] A matching module, used for matching a first target frame in the current image with the predicted frame to obtain a matching result between the first target frame and the predicted frame;

[0030] An updating module is used to update the position of the target in the current image according to the matching result between the first target frame and the predicted frame.

[0031] A third aspect of the present application provides a computer device, the computer device comprising a processor, the processor being configured to implement the target tracking method when executing a computer program stored in a memory.

[0032] A fourth aspect of the present application provides a computer storage medium having a computer program stored thereon, wherein the computer program implements the target tracking method when executed by a processor.

[0033] The present invention uses a target detector to detect a predetermined type of target in a current image, and obtains a first target frame in the current image; obtains a second target frame in a previous frame of the current image, and uses a predictor to predict the position of the second target frame in the current image, and obtains a predicted frame of the second target frame in the current image; matches the first target frame in the current image with the predicted frame, and obtains a matching result of the first target frame and the predicted frame; and updates the position of the target in the current image according to the matching result of the first target frame and the predicted frame. The present invention improves the robustness and scene adaptability of target tracking. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a flow chart of a target tracking method provided by an embodiment of the present invention.

[0035] Figure 2 It is a structural diagram of a target tracking device provided by an embodiment of the present invention.

[0036] Figure 3 is a schematic diagram of a computer device provided by an embodiment of the present invention.

[0037] Figure 4 It is a schematic diagram of the SiamFC model. DETAILED DESCRIPTION

[0038] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0039] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. The embodiments described are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0041] Preferably, the target tracking method of the present invention is applied in one or more computer devices. The computer device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc.

[0042] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0043] Embodiment 1

[0044] Figure 1 1 is a flow chart of a target tracking method provided by Embodiment 1 of the present invention. The target tracking method is applied to a computer device.

[0045] The target tracking method of the present invention tracks a specific type of moving object (such as a pedestrian) in a video or image sequence to obtain the position of the moving object in each frame of the image. The target tracking method can solve the disadvantage that the existing solution cannot track high-speed moving targets, and improves the robustness of target tracking.

[0046] like Figure 1 As shown, the target tracking method includes:

[0047] Step 101: Detect a predetermined type of target in a current image using a target detector to obtain a first target frame in the current image.

[0048] The predetermined type of target may include pedestrians, cars, airplanes, ships, etc. The predetermined type of target may be a single type of target (eg, pedestrians) or multiple types of targets (eg, pedestrians and cars).

[0049] The target detector may be a neural network model with classification and regression functions. In this embodiment, the target detector may be a Faster Region-Based Convolutional Neural Network (Faster RCNN) model.

[0050] The Faster RCNN model includes a Region Proposal Network (RPN) and a Fast Region-based Convolution Neural Network (Fast RCNN).

[0051] The region proposal network and the fast region convolutional neural network have a shared convolutional layer, and the convolutional layer is used to extract the feature map of the image. The region proposal network generates a candidate box of the image according to the feature map, and inputs the generated candidate box into the fast region convolutional neural network. The fast region convolutional neural network screens and adjusts the candidate box according to the feature map to obtain a target box of the image.

[0052] Before using the target detector to detect the first target frame of the predetermined type of target in the current image, the target detector is trained using the first training sample set. During training, the convolution layer extracts the feature map of each sample image in the first training sample set, the region proposal network obtains the candidate frame in each sample image according to the feature map, and the fast region convolution neural network screens and adjusts the candidate frame according to the feature map to obtain the target frame of each sample image. The target frame may include target frames of different types of targets (such as pedestrians, cars, airplanes, ships, etc.).

[0053] In a preferred embodiment, the accelerated regional convolutional neural network model adopts the ZF framework, and the region proposal network and the fast regional convolutional neural network share 5 convolutional layers. The ZF framework is a commonly used network structure, which was proposed by Matthew D Zeiler and Rob Fergus in the paper "Visualizing and Understanding Convolutional Networks" in 2013 and is a variant of the AlexNet network. ZF is fine-tuned based on AlexNet, using the ReLU activation function and the cross entropy cost function, and using a smaller convolution kernel to retain more original pixel information.

[0054] In a specific embodiment, the accelerated regional convolutional neural network model may be trained using the first training sample set according to the following steps:

[0055] (1) Initializing the region proposal network using the Imagenet model, and training the region proposal network using the first training sample set;

[0056] (2) Using the region proposal network trained in (1) to generate candidate boxes for each sample image in the first training sample set, and using the candidate boxes to train the fast region convolutional neural network. At this point, the region proposal network and the fast region convolutional neural network do not yet share a convolutional layer;

[0057] (3) Initializing the region proposal network using the fast region convolutional neural network trained in (2), and training the region proposal network using the first training sample set;

[0058] (4) Initialize the fast region convolutional neural network using the region proposal network trained in (3), keep the convolutional layer fixed, and train the fast region convolutional neural network using the first training sample set. At this point, the region proposal network and the fast region convolutional neural network share the same convolutional layer, forming a unified network model.

[0059] The region proposal network selects a large number of candidate boxes. According to the target classification scores of the candidate boxes, several candidate boxes with the highest scores are screened and input into the fast region convolutional neural network to speed up training and detection.

[0060] The back propagation algorithm can be used to train the region proposal network. During the training process, the network parameters of the region proposal network are adjusted to minimize the loss function. The loss function indicates the difference between the predicted confidence and the true confidence of the candidate box predicted by the region proposal network. The loss function can include two parts: target classification loss and regression loss.

[0061] The loss function can be defined as:

[0062] .

[0063] Among them, i is the index of the candidate box in a training batch (mini-batch).

[0064] is the target classification loss of the candidate box. is the size of the training batch, for example 256. It is The predicted probability that a candidate box is a target. is the GT label. If the candidate box is positive (that is, the assigned label is a positive label, called a positive candidate box), is 1; if the candidate box is negative (that is, the assigned label is a negative label, called a negative candidate box), is 0. It can be calculated as .

[0065] is the regression loss of the candidate box. To balance the weight, it can be taken as 10. is the number of candidate boxes. It can be calculated as . is a coordinate vector, that is , representing the four parameterized coordinates of the candidate box (such as the coordinates of the upper left corner of the candidate box and its width and height). is the coordinate vector of the GT bounding box corresponding to the positive candidate box, that is, . R is a robust loss function (smoothL1), defined as:

[0066]

[0067] The training method of the fast region convolutional network can refer to the training method of the region proposal network, which will not be repeated here.

[0068] In this embodiment, a hard negative mining (HNM) method is added to the training of the fast regional convolutional network. For negative samples (i.e., hard examples) that are incorrectly classified as positive samples by the fast regional convolutional network, the information of these negative samples is recorded, and in the next iterative training process, these negative samples are input into the first training sample set again, and their loss weights are increased to enhance their influence on the classifier, so that it can ensure that more difficult negative samples are continuously classified, so that the features learned by the classifier are from easy to difficult, and the sample distribution covered is also more diverse.

[0069] In other embodiments, the target detector may also be other neural network models, such as a regional convolutional neural network (RCNN) model or a faster convolutional neural network (Faster RCNN) model.

[0070] When using an object detector to detect a predetermined type of object in an image, the image is input into the object detector, and the object detector detects the predetermined type of object in the image and outputs the position of the first object frame of the predetermined type of object in the image. For example, the object detector outputs 6 first object frames in the image. The first object frame is presented in the form of a rectangular frame. The position of the first object frame can be represented by position coordinates, and the position coordinates can include the upper left corner coordinates (x, y) and the width and height (w, h).

[0071] The target detector may also output the type of each first target frame, for example, outputting five pedestrian-type first target frames and one car-type first target frame.

[0072] Step 102: Obtain a second target frame in a previous frame of the current image, use a predictor to predict the position of the second target frame in the current image, and obtain a predicted frame of the second target frame in the current image.

[0073] The second target frame in the previous frame image is a target frame obtained by detecting a predetermined type of target in the previous frame image using a target detector.

[0074] Predicting the position of the second target frame in the current image and obtaining the predicted frame of the second target frame in the current image is to predict the position of each second target frame in the current image and obtain the predicted frame of each second target frame in the current image. For example, if 4 pedestrian target frames are detected in the previous frame of the current image, the positions of the 4 pedestrian target frames in the current image are predicted (that is, the positions of the 4 pedestrians corresponding to the 4 pedestrian target frames in the current image are predicted), and the predicted frames of the 4 pedestrian target frames in the current image are obtained.

[0075] The predictor can be a deep neural network model.

[0076] Before using the predictor to predict the second target frame, the predictor is trained using the second training sample set. The features learned by the predictor are depth features, of which the color features account for a small proportion and are limitedly affected by illumination. Therefore, the predictor can overcome the influence of illumination to a certain extent, and improve the robustness and scene adaptability of target tracking. In this embodiment, the second training sample set may include a large number of sample images of objects with different illumination, deformation and high-speed motion. Therefore, the predictor can further overcome the influence of illumination, and can overcome the influence of deformation and high-speed motion to a certain extent, so that the present invention realizes the tracking of high-speed moving targets and improves the robustness of target tracking.

[0077] In this embodiment, a feature pyramid network (FPN) can be constructed in the deep neural network model, and the deep neural network model with the feature pyramid network is used to predict the position of the second target frame in the current image. The feature pyramid network connects the high-level features with low resolution and high semantic information with the low-level features with high resolution and low semantic information from top to bottom, so that the features at all scales have rich semantic information. The connection method of the feature pyramid network is to upsample the high-level features by 2 times, and then combine them with the corresponding previous layer features (the previous layer must pass through a 1 * 1 convolution kernel), and the combination method is to add pixels. Through such a connection, the feature maps used for prediction of each layer are integrated with features of different resolutions and different semantic strengths, and the fused feature maps of different resolutions are respectively used for object detection of corresponding resolution sizes. This ensures that each layer has a suitable resolution and strong semantic features. Constructing a feature pyramid network in the deep neural network model can improve the performance of the second target frame prediction, so that the deformed second target frame can still be better predicted.

[0078] In a specific embodiment, the predictor may be a SiamFC network (Fully-Convolutional Siamese Network) model, for example, a SiamFC network model constructed with a feature pyramid network.

[0079] Figure 4 It is a schematic diagram of the SiamFC model. Figure 4 In , z represents the template image, i.e., the second target box in the previous frame; x represents the search area, i.e., the current image; φ represents a feature mapping operation, which maps the original image to a specific feature space, and the convolution layer and pooling layer in CNN can be used; 6*6*128 represents the feature obtained by z after φ, which is a 128-channel 6*6 feature. Similarly, 22*22*128 is the feature of x after φ; * represents the convolution operation, and the 22*22*128 feature is convolved by the 6*6*128 convolution kernel to obtain a 17*17 score map, which represents the similarity between each position in the search area and the template image. The position with the highest similarity to the template image in the search area is the position of the prediction box.

[0080] Step 103: Match the first target frame in the current image with the predicted frame to obtain a matching result between the first target frame and the predicted frame.

[0081] The matching result between the first target box and the predicted box may include that the first target box matches the predicted box, the first target box does not match any of the predicted boxes, and the predicted box does not match any of the first target boxes.

[0082] In this embodiment, an overlap area ratio (Intersection over Union, IOU) between the first target frame and the prediction frame may be calculated, and each pair of matching first target frame and prediction frame may be determined according to the overlap area ratio.

[0083] For example, the first target frame includes the first target frame A1, the first target frame A2, the first target frame A3, and the first target frame A4, and the prediction frame includes the prediction frame P1, the prediction frame P2, the prediction frame P3, and the prediction frame P4. The prediction frame P1 corresponds to the second target frame B1, the prediction frame P2 corresponds to the second target frame B2, the prediction frame P3 corresponds to the second target frame B3, and the prediction frame P4 corresponds to the second target frame B4. For the first target frame A1, the overlapping area ratios of the first target frame A1 and the prediction frame P1, the first target frame A1 and the prediction frame P2, the first target frame A1 and the prediction frame P3, and the first target frame A1 and the prediction frame P4 are calculated. If the overlapping area ratio of the first target frame A1 and the prediction frame P1 is the largest and is greater than or equal to a preset threshold (for example, 70%), it is determined that the first target frame A1 matches the prediction frame P1. Similarly, for the first target frame A2, the overlapping area ratios of the first target frame A2 and the prediction frame P1, the first target frame A2 and the prediction frame P2, the first target frame A2 and the prediction frame P3, and the first target frame A2 and the prediction frame P4 are calculated. If the overlapping area ratio of the first target frame A2 and the prediction frame P2 is the largest and is greater than or equal to a preset threshold (for example, 70%), it is determined that the first target frame A2 matches the prediction frame P2; for the first target frame A3, the overlapping area ratios of the first target frame A3 and the prediction frame P1, the first target frame A3 and the prediction frame P2, the first target frame A3 and the prediction frame P3, and the first target frame A3 and the prediction frame P4 are calculated. 4, if the overlapping area ratio of the first target frame A3 and the prediction frame P3 is the largest and is greater than or equal to a preset threshold (for example, 70%), it is determined that the first target frame A3 matches the prediction frame P3; for the first target frame A4, the overlapping area ratios of the first target frame A4 and the prediction frame P1, the first target frame A4 and the prediction frame P2, the first target frame A4 and the prediction frame P3, and the first target frame A4 and the prediction frame P4 are calculated, if the overlapping area ratio of the first target frame A4 and the prediction frame P4 is the largest and is greater than or equal to the preset threshold (for example, 70%), it is determined that the first target frame A4 matches the prediction frame P4.

[0084] Alternatively, the distance between the center point of the first target box and the predicted box may be calculated, and each pair of matching first target box and predicted box may be determined according to the distance.

[0085] For example, in the example where the first target frame includes the first target frame A1, the first target frame A2, the first target frame A3, and the first target frame A4, and the prediction frame includes the prediction frame P1, the prediction frame P2, the prediction frame P3, and the prediction frame P4, for the first target frame A1, the distances between the center points of the first target frame A1 and the prediction frame P1, the first target frame A1 and the prediction frame P2, the first target frame A1 and the prediction frame P3, and the first target frame A1 and the prediction frame P4 are calculated. If the distance between the center points of the first target frame A1 and the prediction frame P1 is the smallest and is less than or equal to a preset distance (for example, 10 pixels), it is determined that the first target frame A1 matches the prediction frame P1. Similarly, for the first target frame A2, the distances between the center points of the first target frame A2 and the prediction frame P1, the first target frame A2 and the prediction frame P2, the first target frame A2 and the prediction frame P3, and the first target frame A2 and the prediction frame P4 are calculated. If the distance between the center points of the first target frame A2 and the prediction frame P2 is the smallest and is less than or equal to the preset distance (for example, 10 pixels), it is determined that the first target frame A2 matches the prediction frame P2; for the first target frame A3, the distances between the first target frame A3 and the prediction frame P1, the first target frame A3 and the prediction frame P2, the first target frame A3 and the prediction frame P3, and the first target frame A3 and the prediction frame For the first target frame A4, the distance between the center points of the first target frame A4 and the prediction frame P1, the distance between the center points of the first target frame A4 and the prediction frame P2, the distance between the center points of the first target frame A4 and the prediction frame P3, and the distance between the center points of the first target frame A4 and the prediction frame P4 are calculated. If the distance between the center points of the first target frame A4 and the prediction frame P4 is the smallest and is less than or equal to the preset distance (for example, 10 pixels), it is determined that the first target frame A4 matches the prediction frame P4.

[0086] Step 104: update the position of the target in the current image according to the matching result between the first target frame and the predicted frame.

[0087] According to the matching result between the first target frame and the predicted frame, updating the position of the target in the current image may include:

[0088] If the first target frame matches the predicted frame, taking the position of the first target frame in the current image as the updated position of the target corresponding to the predicted frame;

[0089] If the first target frame does not match any of the predicted frames, taking the position of the first target frame as the position of a new target in the current image;

[0090] If the predicted box does not match any of the first target boxes, the target corresponding to the predicted box is regarded as a lost target in the current image.

[0091] The target tracking method of the first embodiment uses a target detector to detect a predetermined type of target in the current image, and obtains a first target frame in the current image; obtains a second target frame in the previous frame of the current image, and uses a predictor to predict the position of the second target frame in the current image, and obtains a predicted frame of the second target frame in the current image; matches the first target frame in the current image with the predicted frame, and obtains a matching result between the first target frame and the predicted frame; and updates the position of the target in the current image according to the matching result between the first target frame and the predicted frame. The first embodiment improves the robustness and scene adaptability of target tracking.

[0092] Embodiment 2

[0093] Figure 2 2 is a block diagram of a target tracking device provided in the second embodiment of the present invention. The target tracking device 20 is applied to a computer device. The target tracking device 20 tracks a specific type of moving object (such as a pedestrian) in a video or image sequence to obtain the position of the moving object in each frame of the image. The target tracking device 20 can improve the robustness and scene adaptability of target tracking. Figure 2 As shown, the target tracking device 20 may include a detection module 201 , a prediction module 202 , a matching module 203 , and an update module 204 .

[0094] The detection module 201 is used to detect a predetermined type of target in the current image using a target detector to obtain a first target frame in the current image.

[0095] The predetermined type of target may include pedestrians, cars, airplanes, ships, etc. The predetermined type of target may be a single type of target (eg, pedestrians) or multiple types of targets (eg, pedestrians and cars).

[0096] The target detector may be a neural network model with classification and regression functions. In this embodiment, the target detector may be a Faster Region-Based Convolutional Neural Network (Faster RCNN) model.

[0097] The Faster RCNN model includes a Region Proposal Network (RPN) and a Fast Region-based Convolution Neural Network (Fast RCNN).

[0098] The region proposal network and the fast region convolutional neural network have a shared convolutional layer, and the convolutional layer is used to extract the feature map of the image. The region proposal network generates a candidate box of the image according to the feature map, and inputs the generated candidate box into the fast region convolutional neural network. The fast region convolutional neural network screens and adjusts the candidate box according to the feature map to obtain a target box of the image.

[0099] Before using the target detector to detect the first target frame of the predetermined type of target in the current image, the target detector is trained using the first training sample set. During training, the convolution layer extracts the feature map of each sample image in the first training sample set, the region proposal network obtains the candidate frame in each sample image according to the feature map, and the fast region convolution neural network screens and adjusts the candidate frame according to the feature map to obtain the target frame of each sample image. The target frame may include target frames of different types of targets (such as pedestrians, cars, airplanes, ships, etc.).

[0100] In a preferred embodiment, the accelerated regional convolutional neural network model adopts a ZF framework, and the region proposal network and the fast regional convolutional neural network share 5 convolutional layers.

[0101] In a specific embodiment, the accelerated regional convolutional neural network model may be trained using the first training sample set according to the following steps:

[0102] (1) Initializing the region proposal network using the Imagenet model, and training the region proposal network using the first training sample set;

[0103] (2) Using the region proposal network trained in (1) to generate candidate boxes for each sample image in the first training sample set, and using the candidate boxes to train the fast region convolutional neural network. At this point, the region proposal network and the fast region convolutional neural network do not yet share a convolutional layer;

[0104] (3) Initializing the region proposal network using the fast region convolutional neural network trained in (2), and training the region proposal network using the first training sample set;

[0105] (4) Initialize the fast region convolutional neural network using the region proposal network trained in (3), keep the convolutional layer fixed, and train the fast region convolutional neural network using the first training sample set. At this point, the region proposal network and the fast region convolutional neural network share the same convolutional layer, forming a unified network model.

[0106] The region proposal network selects a large number of candidate boxes. According to the target classification scores of the candidate boxes, several candidate boxes with the highest scores are screened and input into the fast region convolutional neural network to speed up training and detection.

[0107] The back propagation algorithm can be used to train the region proposal network. During the training process, the network parameters of the region proposal network are adjusted to minimize the loss function. The loss function indicates the difference between the predicted confidence and the true confidence of the candidate box predicted by the region proposal network. The loss function can include two parts: target classification loss and regression loss.

[0108]

[0109] Among them, i is the index of the candidate box in a training batch (mini-batch).

[0110] is the target classification loss of the candidate box. is the size of the training batch, for example 256. It is The predicted probability that a candidate box is a target. is the GT label. If the candidate box is positive (that is, the assigned label is a positive label, called a positive candidate box), is 1; if the candidate box is negative (that is, the assigned label is a negative label, called a negative candidate box), is 0. It can be calculated as .

[0111] is the regression loss of the candidate box. To balance the weight, it can be taken as 10. is the number of candidate boxes. It can be calculated as . is a coordinate vector, that is , representing the four parameterized coordinates of the candidate box (such as the coordinates of the upper left corner of the candidate box and its width and height). is the coordinate vector of the GT bounding box corresponding to the positive candidate box, that is, . R is a robust loss function (smoothL1), defined as:

[0112]

[0113] The training method of the fast region convolutional network can refer to the training method of the region proposal network, which will not be repeated here.

[0114] In this embodiment, a hard negative mining (HNM) method is added to the training of the fast regional convolutional network. For negative samples (i.e., hard examples) that are incorrectly classified as positive samples by the fast regional convolutional network, the information of these negative samples is recorded, and in the next iterative training process, these negative samples are input into the first training sample set again, and their loss weights are increased to enhance their influence on the classifier, so that it can ensure that more difficult negative samples are continuously classified, so that the features learned by the classifier are from easy to difficult, and the sample distribution covered is also more diverse.

[0115] In other embodiments, the target detector may also be other neural network models, such as a regional convolutional neural network (RCNN) model or a faster convolutional neural network (Faster RCNN) model.

[0116] When using an object detector to detect a predetermined type of object in an image, the image is input into the object detector, and the object detector detects the predetermined type of object in the image and outputs the position of the first object frame of the predetermined type of object in the image. For example, the object detector outputs 6 first object frames in the image. The first object frame is presented in the form of a rectangular frame. The position of the first object frame can be represented by position coordinates, and the position coordinates can include the upper left corner coordinates (x, y) and the width and height (w, h).

[0117] The target detector may also output the type of each first target frame, for example, outputting five pedestrian-type first target frames and one car-type first target frame.

[0118] The prediction module 202 is used to obtain a second target frame in a frame image before the current image, and use a predictor to predict the position of the second target frame in the current image to obtain a predicted frame of the second target frame in the current image.

[0119] The second target frame in the previous frame image is a target frame obtained by detecting a predetermined type of target in the previous frame image using a target detector.

[0120] Predicting the position of the second target frame in the current image and obtaining the predicted frame of the second target frame in the current image is to predict the position of each second target frame in the current image and obtain the predicted frame of each second target frame in the current image. For example, if 4 pedestrian target frames are detected in the previous frame of the current image, the positions of the 4 pedestrian target frames in the current image are predicted (that is, the positions of the 4 pedestrians corresponding to the 4 pedestrian target frames in the current image are predicted), and the predicted frames of the 4 pedestrian target frames in the current image are obtained.

[0121] The predictor can be a deep neural network model.

[0122] Before using the predictor to predict the second target frame, the predictor is trained using the second training sample set. The features learned by the predictor are depth features, of which the color features account for a small proportion and are limitedly affected by illumination. Therefore, the predictor can overcome the influence of illumination to a certain extent, and improve the robustness and scene adaptability of target tracking. In this embodiment, the second training sample set may include a large number of sample images of objects with different illumination, deformation and high-speed motion. Therefore, the predictor can further overcome the influence of illumination, and can overcome the influence of deformation and high-speed motion to a certain extent, so that the present invention realizes the tracking of high-speed moving targets and improves the robustness of target tracking.

[0123] In this embodiment, a feature pyramid network (FPN) can be constructed in the deep neural network model, and the deep neural network model with the feature pyramid network is used to predict the position of the second target frame in the current image. The feature pyramid network connects the high-level features with low resolution and high semantic information with the low-level features with high resolution and low semantic information from top to bottom, so that the features at all scales have rich semantic information. The connection method of the feature pyramid network is to upsample the high-level features by 2 times, and then combine them with the corresponding previous layer features (the previous layer must pass through a 1 * 1 convolution kernel), and the combination method is to add pixels. Through such a connection, the feature maps used for prediction of each layer are integrated with features of different resolutions and different semantic strengths, and the fused feature maps of different resolutions are respectively used for object detection of corresponding resolution sizes. This ensures that each layer has a suitable resolution and strong semantic features. Constructing a feature pyramid network in the deep neural network model can improve the performance of the second target frame prediction, so that the deformed second target frame can still be better predicted.

[0124] In a specific embodiment, the predictor may be a SiamFC network (Fully-Convolutional Siamese Network) model, for example, a SiamFC network model constructed with a feature pyramid network. Figure 4 It is a schematic diagram of the SiamFC model.

[0125] Figure 4 In , z represents the template image, i.e., the second target box in the previous frame; x represents the search area, i.e., the current image; φ represents a feature mapping operation, which maps the original image to a specific feature space, and the convolution layer and pooling layer in CNN can be used; 6*6*128 represents the feature obtained by z after φ, which is a 128-channel 6*6 feature. Similarly, 22*22*128 is the feature of x after φ; * represents the convolution operation, and the 22*22*128 feature is convolved by the 6*6*128 convolution kernel to obtain a 17*17 score map, which represents the similarity between each position in the search area and the template image. The position with the highest similarity to the template image in the search area is the position of the prediction box.

[0126] The matching module 203 is used to match the first target frame in the current image with the predicted frame to obtain a matching result between the first target frame and the predicted frame.

[0127] The matching result between the first target box and the predicted box may include that the first target box matches the predicted box, the first target box does not match any of the predicted boxes, and the predicted box does not match any of the first target boxes.

[0128] In this embodiment, an overlap area ratio (Intersection over Union, IOU) between the first target frame and the prediction frame may be calculated, and each pair of matching first target frame and prediction frame may be determined according to the overlap area ratio.

[0129] For example, the first target frame includes the first target frame A1, the first target frame A2, the first target frame A3, and the first target frame A4, and the prediction frame includes the prediction frame P1, the prediction frame P2, the prediction frame P3, and the prediction frame P4. The prediction frame P1 corresponds to the second target frame B1, the prediction frame P2 corresponds to the second target frame B2, the prediction frame P3 corresponds to the second target frame B3, and the prediction frame P4 corresponds to the second target frame B4. For the first target frame A1, the overlapping area ratios of the first target frame A1 and the prediction frame P1, the first target frame A1 and the prediction frame P2, the first target frame A1 and the prediction frame P3, and the first target frame A1 and the prediction frame P4 are calculated. If the overlapping area ratio of the first target frame A1 and the prediction frame P1 is the largest and is greater than or equal to a preset threshold (for example, 70%), it is determined that the first target frame A1 matches the prediction frame P1. Similarly, for the first target frame A2, the overlapping area ratios of the first target frame A2 and the prediction frame P1, the first target frame A2 and the prediction frame P2, the first target frame A2 and the prediction frame P3, and the first target frame A2 and the prediction frame P4 are calculated. If the overlapping area ratio of the first target frame A2 and the prediction frame P2 is the largest and is greater than or equal to a preset threshold (for example, 70%), it is determined that the first target frame A2 matches the prediction frame P2; for the first target frame A3, the overlapping area ratios of the first target frame A3 and the prediction frame P1, the first target frame A3 and the prediction frame P2, the first target frame A3 and the prediction frame P3, and the first target frame A3 and the prediction frame P4 are calculated. 4, if the overlapping area ratio of the first target frame A3 and the prediction frame P3 is the largest and is greater than or equal to a preset threshold (for example, 70%), it is determined that the first target frame A3 matches the prediction frame P3; for the first target frame A4, the overlapping area ratios of the first target frame A4 and the prediction frame P1, the first target frame A4 and the prediction frame P2, the first target frame A4 and the prediction frame P3, and the first target frame A4 and the prediction frame P4 are calculated, if the overlapping area ratio of the first target frame A4 and the prediction frame P4 is the largest and is greater than or equal to the preset threshold (for example, 70%), it is determined that the first target frame A4 matches the prediction frame P4.

[0130] Alternatively, the distance between the center point of the first target box and the predicted box may be calculated, and each pair of matching first target box and predicted box may be determined according to the distance.

[0131] For example, in the example where the first target frame includes the first target frame A1, the first target frame A2, the first target frame A3, and the first target frame A4, and the prediction frame includes the prediction frame P1, the prediction frame P2, the prediction frame P3, and the prediction frame P4, for the first target frame A1, the distances between the center points of the first target frame A1 and the prediction frame P1, the first target frame A1 and the prediction frame P2, the first target frame A1 and the prediction frame P3, and the first target frame A1 and the prediction frame P4 are calculated. If the distance between the center points of the first target frame A1 and the prediction frame P1 is the smallest and is less than or equal to a preset distance (for example, 10 pixels), it is determined that the first target frame A1 matches the prediction frame P1. Similarly, for the first target frame A2, the distances between the center points of the first target frame A2 and the prediction frame P1, the first target frame A2 and the prediction frame P2, the first target frame A2 and the prediction frame P3, and the first target frame A2 and the prediction frame P4 are calculated. If the distance between the center points of the first target frame A2 and the prediction frame P2 is the smallest and is less than or equal to the preset distance (for example, 10 pixels), it is determined that the first target frame A2 matches the prediction frame P2; for the first target frame A3, the distances between the first target frame A3 and the prediction frame P1, the first target frame A3 and the prediction frame P2, the first target frame A3 and the prediction frame P3, and the first target frame A3 and the prediction frame For the first target frame A4, the distance between the center points of the first target frame A4 and the prediction frame P1, the distance between the center points of the first target frame A4 and the prediction frame P2, the distance between the center points of the first target frame A4 and the prediction frame P3, and the distance between the center points of the first target frame A4 and the prediction frame P4 are calculated. If the distance between the center points of the first target frame A4 and the prediction frame P4 is the smallest and is less than or equal to the preset distance (for example, 10 pixels), it is determined that the first target frame A4 matches the prediction frame P4.

[0132] The updating module 204 is used to update the position of the target in the current image according to the matching result between the first target frame and the predicted frame.

[0133] According to the matching result between the first target frame and the predicted frame, updating the position of the target in the current image may include:

[0134] If the first target frame matches the predicted frame, taking the position of the first target frame in the current image as the updated position of the target corresponding to the predicted frame;

[0135] If the first target frame does not match any of the predicted frames, taking the position of the first target frame as the position of a new target in the current image;

[0136] If the predicted box does not match any of the first target boxes, the target corresponding to the predicted box is regarded as a lost target in the current image.

[0137] This embodiment provides a target tracking device 20. The target tracking is to track a specific type of moving object (such as pedestrians) in a video or image sequence to obtain the position of the moving object in each frame of the image. The target tracking device 20 uses a target detector to detect a predetermined type of target in the current image to obtain a first target frame in the current image; obtains a second target frame in the previous frame of the current image, uses a predictor to predict the position of the second target frame in the current image, and obtains a predicted frame of the second target frame in the current image; matches the first target frame in the current image with the predicted frame to obtain a matching result between the first target frame and the predicted frame; and updates the position of the target in the current image based on the matching result between the first target frame and the predicted frame. This embodiment improves the robustness and scene adaptability of target tracking.

[0138] Embodiment 3

[0139] This embodiment provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above target tracking method embodiment are implemented, such as Figure 1 Steps 101-104 shown:

[0140] Step 101, using an object detector to detect a predetermined type of object in a current image, and obtaining a first object frame in the current image;

[0141] Step 102, obtaining a second target frame in a previous frame of the current image, predicting a position of the second target frame in the current image using a predictor, and obtaining a predicted frame of the second target frame in the current image;

[0142] Step 103, matching the first target frame in the current image with the predicted frame to obtain a matching result between the first target frame and the predicted frame;

[0143] Step 104: update the position of the target in the current image according to the matching result between the first target frame and the predicted frame.

[0144] Alternatively, when the computer program is executed by a processor, the functions of each module in the above-mentioned device embodiment are realized, for example Figure 2 Modules 201-204:

[0145] The detection module 201 detects a predetermined type of target in the current image using a target detector to obtain a first target frame in the current image;

[0146] A prediction module 202 is configured to obtain a second target frame in a previous frame of the current image, and predict a position of the second target frame in the current image using a predictor to obtain a predicted frame of the second target frame in the current image.

[0147] A matching module 203 is used to match the first target frame in the current image with the predicted frame to obtain a matching result between the first target frame and the predicted frame;

[0148] The updating module 204 is used to update the position of the target in the current image according to the matching result between the first target frame and the predicted frame.

[0149] Embodiment 4

[0150] Figure 3 Schematic diagram of a computer device provided in Embodiment 4 of the present invention. The computer device 30 includes a memory 301, a processor 302, and a computer program 303 stored in the memory 301 and executable on the processor 302, such as a target tracking program. When the processor 302 executes the computer program 303, the steps in the above target tracking method embodiment are implemented, such as Figure 1 Steps 101-104 shown:

[0151] Step 101, using an object detector to detect a predetermined type of object in a current image, and obtaining a first object frame in the current image;

[0152] Step 102, obtaining a second target frame in a previous frame of the current image, predicting a position of the second target frame in the current image using a predictor, and obtaining a predicted frame of the second target frame in the current image;

[0153] Step 103, matching the first target frame in the current image with the predicted frame to obtain a matching result between the first target frame and the predicted frame;

[0154] Step 104: update the position of the target in the current image according to the matching result between the first target frame and the predicted frame.

[0155] Alternatively, when the computer program is executed by a processor, the functions of each module in the above-mentioned device embodiment are realized, for example Figure 2 Modules 201-204:

[0156] The detection module 201 detects a predetermined type of target in the current image using a target detector to obtain a first target frame in the current image;

[0157] A prediction module 202 is configured to obtain a second target frame in a previous frame of the current image, and predict a position of the second target frame in the current image using a predictor to obtain a predicted frame of the second target frame in the current image.

[0158] A matching module 203 is used to match the first target frame in the current image with the predicted frame to obtain a matching result between the first target frame and the predicted frame;

[0159] The updating module 204 is used to update the position of the target in the current image according to the matching result between the first target frame and the predicted frame.

[0160] Exemplarily, the computer program 303 may be divided into one or more modules, which are stored in the memory 301 and executed by the processor 302 to complete the method. The one or more modules may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 303 in the computer device 30. For example, the computer program 303 may be divided into Figure 2 For the detection module 201, prediction module 202, matching module 203, and update module 204, please refer to the second embodiment for the specific functions of each module.

[0161] The computer device 30 may be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. A person skilled in the art will appreciate that the schematic diagram Figure 3 It is only an example of the computer device 30 and does not constitute a limitation of the computer device 30. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device 30 may also include input and output devices, network access devices, buses, etc.

[0162] The processor 302 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor 302 may also be any conventional processor, etc. The processor 302 is the control center of the computer device 30, and various parts of the entire computer device 30 are connected using various interfaces and lines.

[0163] The memory 301 can be used to store the computer program 303. The processor 302 implements various functions of the computer device 30 by running or executing the computer program or module stored in the memory 301 and calling the data stored in the memory 301. The memory 301 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the computer device 30 (such as audio data, a phone book, etc.), etc. In addition, the memory 301 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0164] If the module integrated in the computer device 30 is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0165] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0166] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0167] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0168] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present invention.

[0169] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any accompanying figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other modules or steps, and the singular does not exclude the plural. Multiple modules or devices stated in the system claim can also be implemented by one module or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0170] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A target tracking method, characterized in that: The method comprises: Detecting a predetermined type of target in a current image using a target detector to obtain a first target frame in the current image, wherein the target detector is a accelerated regional convolutional neural network model, and the accelerated regional convolutional neural network model includes a regional proposal network and a fast regional convolutional neural network; Acquire a second target frame in a frame image before the current image, predict a position of the second target frame in the current image using a predictor, and obtain a predicted frame of the second target frame in the current image, wherein the predictor includes a deep neural network model, and the predictor is trained based on sample images of objects with different illumination, deformation, and high-speed motion; Matching a first target frame in the current image with the prediction frame to obtain a matching result between the first target frame and the prediction frame, including calculating an overlapping area ratio between the first target frame and the prediction frame, and determining a matching result between the first target frame and the prediction frame according to the overlapping area ratio; According to the matching result between the first target frame and the prediction frame, the position of the target is updated in the current image, including if the first target frame matches the prediction frame, using the position of the first target frame in the current image as the updated position of the target corresponding to the prediction frame; if the first target frame does not match any of the prediction frames, using the position of the first target frame in the current image as the position of the new target; if the prediction frame does not match any of the first target frames, using the target corresponding to the prediction frame in the current image as a lost target.

2. The method according to claim 1, characterized in that The accelerated regional convolutional neural network model is trained according to the following steps before detecting the predetermined type of target in the image: In a first training step, the region proposal network is initialized using an Imagenet model, and the region proposal network is trained using a first training sample set; In a second training step, the region proposal network trained in the first training step is used to generate candidate boxes for each sample image in the first training sample set, and the fast region convolutional neural network is trained using the candidate boxes; A third training step, using the fast region convolutional neural network trained in the second training step to initialize the region proposal network, and using the first training sample set to train the region proposal network; In the fourth training step, the fast regional convolutional neural network is initialized using the region proposal network trained in the third training step, and the convolution layer is kept fixed, and the fast regional convolutional neural network is trained using the first training sample set.

3. The method according to claim 2, characterized in that The accelerated regional convolutional neural network model adopts the ZF framework, and the region proposal network and the fast regional convolutional neural network share 5 convolutional layers.

4. The method according to claim 1, characterized in that The predictor is a deep neural network model constructed with a feature pyramid network.

5. The method according to claim 1, characterized in that Before predicting the position of the second target frame in the current image using a predictor to obtain a predicted frame of the second target frame in the current image, the method further includes: The predictor is trained using a second training sample set, where the second training sample set includes sample images of objects with different illumination, deformation, and high-speed motion.

6. The method according to claim 1, characterized in that The matching the first target frame in the current image with the predicted frame comprises: The distance between the center point of the first target box and the predicted box is calculated, and each pair of matching first target box and predicted box is determined according to the distance.

7. A target tracking device, characterized in that: The device comprises: A detection module, configured to detect a predetermined type of target in a current image using a target detector to obtain a first target frame in the current image; A prediction module is used to obtain a second target frame in a frame image before the current image, and use a predictor to predict the position of the second target frame in the current image to obtain a predicted frame of the second target frame in the current image, wherein the predictor includes a deep neural network model, and the predictor is trained based on sample images of objects with different illumination, deformation and high-speed motion; a matching module, configured to match a first target frame in the current image with the prediction frame to obtain a matching result between the first target frame and the prediction frame, including calculating an overlapping area ratio between the first target frame and the prediction frame, and determining a matching result between the first target frame and the prediction frame according to the overlapping area ratio; An updating module is used to update the position of the target in the current image according to the matching result between the first target frame and the prediction frame, including if the first target frame matches the prediction frame, then using the position of the first target frame in the current image as the updated position of the target corresponding to the prediction frame; if the first target frame does not match any of the prediction frames, then using the position of the first target frame in the current image as the position of the new target; if the prediction frame does not match any of the first target frames, then using the target corresponding to the prediction frame in the current image as a lost target.

8. A computer device, characterized in that: The computer device comprises a processor, and the processor is used to execute a computer program stored in a memory to implement the target tracking method according to any one of claims 1 to 6.

9. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the target tracking method according to any one of claims 1 to 6 is implemented.