Target tracking method, device and computer readable storage medium

By fusing image features and optical flow features, combined with the target estimation network, the problem of inaccurate tracking of high-speed moving objects in sports scenes is solved, and the recognition accuracy and tracking stability of target objects are improved.

CN111784735BActive Publication Date: 2024-09-24BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010294337.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-15
Publication Date
2024-09-24
Estimated Expiration
2040-04-15

AI Technical Summary

Technical Problem

In scenes such as sports, the deformation and blur of high-speed moving objects lead to inaccurate image feature tracking, and the objects are confused with the background, affecting the accuracy of the tracking algorithm.

Method used

By combining the image feature extraction network and the optical flow feature extraction network, the image features and optical flow features are fused and input into the target estimation network to determine the position of the target object, and perform local search to adjust the feature extraction range when the confidence level is low.

Benefits of technology

It improves the accuracy of target tracking, enhances the ability to identify high-speed moving objects, and reduces tracking loss and inaccuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111784735B
    Figure CN111784735B
Patent Text Reader

Abstract

The present invention discloses a target tracking method, device and computer-readable storage medium, and relates to the field of image processing technology. The target tracking method comprises: determining a feature extraction area of ​​a frame to be identified according to an area where a target object is located in a frame before a frame to be identified in a video stream; extracting image features of the frame to be identified from the feature extraction area through an image feature extraction network according to pixel information of the frame to be identified; extracting optical flow features of the frame to be identified from the feature extraction area through an optical flow feature extraction network according to optical flow information of the frame to be identified relative to the previous frame; fusing the image features and optical flow features of the frame to be identified to obtain fused features; inputting the fused features into a target estimation network to obtain an area where the target object in the frame to be identified is located, which is output by the target estimation network. The method of the embodiment of the present invention can improve the accuracy of target tracking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In the related art, when tracking a target in an image, image features are extracted from the image, and then the target is tracked based on the image features. Summary of the invention

[0003] After further analysis, the inventors found that if tracking is performed solely based on extracted image features, the features of the target object in the image may not be effectively obtained in certain scenarios. For example, in sports, a high-speed moving ball may be deformed and blurred; a high-speed moving object may be confused with the background, such as an aircraft may be confused with a building in the background; in addition to the target object, there may also be objects or people belonging to the same category as the target object in the image. These may affect the tracking algorithm in the tracking of moving objects, resulting in tracking loss or inaccuracy.

[0004] A technical problem to be solved by the embodiments of the present invention is: how to improve the accuracy of target tracking.

[0005] According to a first aspect of some embodiments of the present invention, a target tracking method is provided, comprising: determining a feature extraction area of ​​a frame to be identified based on an area where a target object is located in a frame before a frame to be identified in a video stream; extracting image features of the frame to be identified from the feature extraction area through an image feature extraction network based on pixel information of the frame to be identified; extracting optical flow features of the frame to be identified from the feature extraction area through an optical flow feature extraction network based on optical flow information of the frame to be identified relative to the previous frame; fusing the image features and optical flow features of the frame to be identified to obtain fused features; and inputting the fused features into a target estimation network to obtain the area where the target object in the frame to be identified is located, which is output by the target estimation network.

[0006] In some embodiments, the feature extraction region of the frame to be identified is determined by expanding the region where the target object is located in the frame before the frame to be identified in the video stream.

[0007] In some embodiments, the target tracking method also includes: inputting the fused features into the target detection network to obtain the position of the target object in the frame to be identified and its confidence output by the target detection network; when the confidence is lower than a preset value, performing a local search based on the optical flow information in the feature extraction range in the optical flow information of the frame to be identified relative to the previous frame to obtain the pixel position with the local maximum speed; based on the pixel position with the local maximum speed, redetermining the feature extraction range so as to redetermine the area where the target object in the frame to be identified is located based on the redetermined feature extraction range.

[0008] In some embodiments, the target detection network includes a classification convolution layer, an initialization layer and a prediction layer; inputting the fused features into the target detection network to obtain the position of the target object in the frame to be identified and its confidence output by the target detection network includes: inputting the fused features of the frame to be identified into the classification convolution layer of the target detection network to obtain the classification layer features; inputting the predicted area of ​​the target object in the frame before the frame to be identified and the frame to be identified into the initialization layer to obtain the initialization features; inputting the classification layer features and the initialization features into the prediction layer to obtain the position of the target object in the frame to be identified and its confidence output by the prediction layer.

[0009] In some embodiments, the pixel information of the frame to be identified includes pixel values ​​in red, green, and blue channels of the frame to be identified.

[0010] In some embodiments, the optical flow information includes relative movement information in channels of a first direction and a second direction, wherein the relative movement information in each channel is movement information of pixels in the frame to be identified relative to a previous frame in a direction corresponding to the channel.

[0011] In some embodiments, the image features and optical flow features of the frame to be identified are fused through preset weights to obtain fused features; or, the image features and optical flow features of the frame to be identified are input into a feature fusion network to obtain fused features output by the feature fusion network.

[0012] In some embodiments, the predicted location of the target object in the first frame in the video stream is obtained by inputting the first frame into an object detector.

[0013] In some embodiments, the target tracking method also includes: extracting image features and optical flow features of training frames in a training video stream through an image feature extraction network and an optical flow feature extraction network, respectively; fusing the image features and optical flow features of the training frames to obtain fused features of the training frames; inputting the fused features of the training frames into a target estimation network to obtain an area where the target object in the training frame is located as predicted by the target estimation network; and training the image feature extraction network, the optical flow feature extraction network, and the target estimation network according to the predicted area and the pre-marked area of ​​the target object in each training frame of the training video stream.

[0014] In some embodiments, the target tracking method also includes: inputting the fused features of the training frame into the target detection network, obtaining the location of the target object and its confidence in the training frame output by the target detection network, so as to train the image feature extraction network, the optical flow feature extraction network, the target estimation network, and the target detection network according to the predicted location area, the pre-marked location area, and the location of the target object and its confidence in each training frame of the training video stream.

[0015] In some embodiments, the image feature extraction network and the optical flow feature extraction network are residual networks, and / or the target estimation network is an intersection-over-union (IoU) network.

[0016] In some embodiments, the object detection network is a convolutional neural network.

[0017] In some embodiments, the object detector is a fast object detector FastR-CNN based on a convolutional neural network.

[0018] In some embodiments, the video stream is a real-time video stream.

[0019] According to a second aspect of some embodiments of the present invention, there is provided a target tracking device, comprising: a feature extraction area determination module, configured to determine the feature extraction area of ​​a frame to be identified according to the area where the target object is located in a frame before the frame to be identified in the video stream; an image feature extraction module, configured to extract image features of the frame to be identified from the feature extraction area through an image feature extraction network according to pixel information of the frame to be identified; an optical flow feature extraction module, configured to extract optical flow features of the frame to be identified from the feature extraction area through an optical flow feature extraction network according to optical flow information of the frame to be identified relative to the previous frame; a feature fusion module, configured to fuse the image features and optical flow features of the frame to be identified to obtain fused features; and a target estimation module, configured to input the fused features into the target estimation network to obtain the area where the target object in the frame to be identified is located, which is output by the target estimation network.

[0020] According to a third aspect of some embodiments of the present invention, there is provided a target tracking device, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute any one of the aforementioned target tracking methods based on instructions stored in the memory.

[0021] According to a fourth aspect of some embodiments of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements any one of the aforementioned target tracking methods.

[0022] Some embodiments of the above invention have the following advantages or beneficial effects: the method of the embodiment of the present invention fuses image features and optical flow features to obtain fused features, and uses the fused features to identify the target object in the image, thereby improving the accuracy of target tracking.

[0023] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0025] Figure 1 A schematic flow chart of a target tracking method according to some embodiments of the present invention is shown.

[0026] Figure 2 A schematic flow chart of a target tracking method according to some other embodiments of the present invention is shown.

[0027] Figure 3 A schematic flow chart of a training method according to some embodiments of the present invention is shown.

[0028] Figure 4 A schematic structural diagram of a target tracking device according to some embodiments of the present invention is shown.

[0029] Figure 5 A schematic structural diagram of a target tracking device according to some other embodiments of the present invention is shown.

[0030] Figure 6 A schematic structural diagram of a target tracking device according to some further embodiments of the present invention is shown. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] The relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.

[0033] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0034] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.

[0035] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0036] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0037] Figure 1 FIG. 2 is a flow chart showing a target tracking method according to some embodiments of the present invention. Figure 1 As shown, the target tracking method of this embodiment includes steps S102 to S110.

[0038] In step S102, a feature extraction region of the frame to be identified is determined according to a region where the target object is located in a frame preceding the frame to be identified in the video stream.

[0039] In the video frame where the target object is identified, for example, the target object can be framed by an outer frame, so that the area framed by the outer frame is used to represent the area where the target object is located. If the frame is a square frame, for example, the horizontal coordinate and the vertical coordinate of the upper left corner of the square frame and the length and width of the square frame can be used to represent the area where the target object is located.

[0040] The frame before the frame to be identified may be, for example, a frame adjacent to or not adjacent to the frame to be identified. For example, when the accuracy requirement is high, the target tracking may be performed frame by frame, and the feature extraction area is determined based on the area where the target object is located in the adjacent previous frame; when the real-time requirement is high, the tracking may be performed every few frames, and the feature extraction area is determined based on the area where the target object is located in the previous frame tracked last time or in a preset previous frame.

[0041] In some embodiments, the feature extraction region of the frame to be identified is determined by expanding the region where the target object is located in the frame before the frame to be identified in the video stream, so as to extract image features and optical flow features from the feature extraction region of the frame to be identified. For example, the length and width of the detection frame of the previous frame can be enlarged by 2 to 4 times to form a feature extraction region, and the region is used as the search region to extract image features and optical flow features.

[0042] Thus, the efficiency of target tracking can be improved. For example, when the video stream is a real-time video stream and the target in the video stream needs to be tracked in real time, by extracting features in the feature extraction area and tracking, the tracking efficiency can be improved to meet the requirements of real-time calculation.

[0043] In some embodiments, the predicted location of the target object in the first frame in the video stream is obtained by inputting the first frame into an object detector. The object detector may be, for example, Fast R-CNN (Fast Object Detector Based on Convolutional Neural Network). Since the first frame has no previous frames as reference, the initial position of the target object in the video stream is determined by an object detector based on image features.

[0044] In step S104, based on the pixel information of the frame to be identified, the image features of the frame to be identified are extracted from the feature extraction area through the image feature extraction network.

[0045] In some embodiments, the pixel information of the frame to be identified includes pixel values ​​in red, green, and blue (RGB) channels of the frame to be identified.

[0046] In some embodiments, the image feature extraction network is a residual network, such as ResNet, ResNeXt, WideResNet, etc. The residual network uses skip connections internally. For example, the input of the Nth layer includes the output of the N-1th layer and the output of the N-2th layer. The residual network can alleviate the gradient vanishing problem caused by increasing the depth in the deep neural network. Therefore, the present invention can use the deep neural network to extract features so as to use the extracted features for tracking.

[0047] In step S106, based on the optical flow information of the frame to be identified relative to the previous frame, the optical flow features of the frame to be identified are extracted from the feature extraction area through the optical flow feature extraction network.

[0048] In some embodiments, optical flow information is extracted using any one of the TV-L1 (Total variation-L1) algorithm, Farneback algorithm, Brox algorithm, Dual TV-L1 algorithm, DensePyrLK algorithm, and NVIDIA OPTICAL FLOWHARDWARE AND OPTICAL FLOW SDK 1.0 algorithm.

[0049] In some embodiments, the optical flow information includes relative movement information in channels of a first direction and a second direction, wherein the relative movement information in each channel is movement information of pixels in the frame to be identified relative to a previous frame in a direction corresponding to the channel.

[0050] The optical flow information is based on the RGB information of two adjacent frames of images and calculates the displacement at the pixel level. Generally, the displacement includes the displacement of the pixel in the x-axis (corresponding to the length direction of the image) and the y-axis (corresponding to the width direction of the image), and the origin of the coordinate is the lower left corner of the image. The optical flow information is represented, for example, by an optical flow graph, which includes an x-axis channel and a y-axis channel, thereby forming a two-dimensional graph vector matrix as the optical flow information.

[0051] In some embodiments, the image feature extraction network is a residual network, such as ResNet, ResNeXt, WideResNet, etc.

[0052] In step S108, the image features and optical flow features of the frame to be identified are fused to obtain fused features.

[0053] In some embodiments, the image features and optical flow features of the frame to be identified are fused by using preset weights to obtain fused features. This approach does not require prior training and can improve processing efficiency.

[0054] In some embodiments, the image features and optical flow features of the frame to be identified are input into the feature fusion network to obtain fusion features output by the feature fusion network. In this way, the feature fusion network can participate in the end-to-end training process of other networks involved in the tracking process, so that more reasonable fusion parameters can be obtained.

[0055] In some embodiments, the outputs of the image feature extraction network and the optical flow feature extraction network have the same size to facilitate fusion of the two.

[0056] The fused features have both the image characteristics and the optical flow characteristics of the frame to be identified, so that more accurate tracking can be performed based on both the image characteristics and the optical flow characteristics of the frame to be identified.

[0057] In step S110, the fused features are input into the target estimation network to obtain the region where the target object in the frame to be identified is located, which is output by the target estimation network.

[0058] In some embodiments, the target estimation network is an intersection-over-union network (IoU-Net). In the related art, the input of IoU-Net is image features. However, the present invention uses fusion features as input, so that IoU-Net can refer to both image features and optical flow features in the process of identifying the target object.

[0059] The method of the above embodiment fuses the image feature and the optical flow feature to obtain a fused feature, and uses the fused feature to identify the target object in the image, thereby improving the accuracy of target tracking.

[0060] In the process of continuously tracking frames in a video stream, the tracking result of a certain frame may be biased. The present invention also provides a feedback mechanism to adjust the tracking result in time when the deviation is large. Figure 2 An embodiment of the target tracking method of the present invention is described.

[0061] Figure 2 FIG. 2 shows a flow chart of a tracking method according to some other embodiments of the present invention. Figure 2 As shown, the target tracking method of this embodiment includes steps S202 to S216.

[0062] In step S202, a feature extraction region of the frame to be identified is determined according to a region where a target object is located in a frame preceding the frame to be identified in the video stream.

[0063] In step S204, according to the pixel information of the frame to be identified, the image features of the frame to be identified are extracted from the feature extraction area through an image feature extraction network.

[0064] In step S206, based on the optical flow information of the frame to be identified relative to the previous frame, the optical flow features of the frame to be identified are extracted from the feature extraction area through an optical flow feature extraction network.

[0065] In step S208, the image features and optical flow features of the frame to be identified are fused to obtain fused features.

[0066] In step S210, the fused features are input into a target estimation network to obtain a region output by the target estimation network where the target object in the frame to be identified is located.

[0067] In step S212, the fused features are input into the target detection network to obtain the position and confidence of the target object in the frame to be identified output by the target detection network.

[0068] In some embodiments, the target detection network is a convolutional neural network, for example, a shallow neural network with 3 to 5 layers. The target detection network determines the candidate areas in the image based on the input features, and classifies these candidate areas to determine whether the candidate areas are target objects, and gives the confidence of the classification results. Although the target detection network can also give the area where the target object is located, its main function is to identify the object from the background. Therefore, the present invention can only use the position of the target object identified by the target detection network, for example, the center position of the detection box identified by the target detection network.

[0069] In some embodiments, the target detection network includes a classification convolution layer, an initialization layer, and a prediction layer. An exemplary detection process of the target detection network includes: inputting the fusion features of the training frame into the classification convolution layer of the target detection network to obtain the classification layer features; inputting the predicted area of ​​the target object in the frame before the training frame and the training frame into the initialization layer to obtain the initialization features; inputting the classification layer features and the initialization features into the prediction layer, so that the prediction layer searches for the target object in the training frame based on the predicted area of ​​the target object in the frame before the training frame, and obtains the location of the target object in the training frame and its confidence output by the prediction layer. Thus, the target detection network can be initialized according to the previously predicted area of ​​the target object to narrow the search range of the target object in the current frame and improve the detection efficiency.

[0070] Through the target detection network, it is possible to more efficiently determine whether there is a target object in the currently identified frame, so as to decide whether to provide feedback and optimization. If the confidence level is not lower than the preset value, the tracking process of the next frame to be identified can be continued; if the confidence level is lower than the preset value, feedback processing needs to be performed using steps S214 and S216.

[0071] In step S214, when the confidence level is lower than a preset value, a local search is performed in the optical flow information of the frame to be identified relative to the previous frame based on the optical flow information in the feature extraction range to obtain the pixel position with the local maximum speed.

[0072] For example, a pixel position in the original feature extraction range can be used as the initial search position, and the search goal is to obtain the pixel position with the local maximum speed. The local search algorithm selects a neighbor with the largest speed from the neighborhood solution space of the current solution as the current solution for the next iteration until a local optimal solution is reached.

[0073] When the output confidence of the target detection network is low, it is likely caused by the target object moving too fast. Through the above method, with the help of optical flow information, fast-moving pixels can be searched around the originally determined target object, thereby determining the area where the target object is more likely to appear.

[0074] In step S216, the feature extraction range is re-determined based on the pixel position with the local maximum velocity, and then the process returns to steps S204 and S206 to re-determine the region where the target object in the frame to be identified is located based on the re-determined feature extraction range.

[0075] For example, a region of a preset size may be generated with the pixel position having the local maximum velocity as the center.

[0076] Through the method of the above embodiment, the target detection network can be used to quickly determine whether the tracking object is lost. If so, the feature extraction area is re-determined based on the pixel position with a larger speed in the optical flow information, so as to more accurately extract the target-related features and perform more accurate target tracking.

[0077] Reference below Figure 3 An embodiment of end-to-end training of a network used in a target tracking process is described.

[0078] Figure 3 FIG. 2 shows a flow chart of a training method according to some embodiments of the present invention. Figure 3 As shown, the training method of this embodiment includes steps S302 to S312.

[0079] In step S302, image features of training frames in a training video stream are extracted through an image feature extraction network.

[0080] In step S304, optical flow features of the training frame are extracted through an optical flow feature extraction network.

[0081] The specific method of extracting image features and optical flow features from training frames can be referred to Figure 1 The extraction method in the embodiment. For example, the feature extraction region is determined according to the region where the target object is located in the training frame before the frame to be identified in the training video stream, and then based on the feature extraction region, the image features of the training frame are extracted by the image feature extraction network, and the optical flow features of the training frame are extracted by the optical flow feature extraction network.

[0082] In some embodiments, the predicted region of the target object in the first training frame in the training video stream is obtained by inputting the first frame into an object detector.

[0083] In step S306, the image features and optical flow features of the training frame are fused to obtain fused features of the training frame.

[0084] In step S308, the fused features of the training frame are input into the target estimation network to obtain the area where the target object in the training frame is located as predicted by the target estimation network.

[0085] In step S310, the fusion features of the training frame are input into the target detection network to obtain the location of the target object in the training frame output by the target detection network and its confidence.

[0086] In step S312, the image feature extraction network, the optical flow feature extraction network, the target estimation network, and the target detection network are trained according to the predicted area of ​​the target object, the pre-marked area, the location of the target object and its confidence in each training frame of the training video stream.

[0087] In some embodiments, if the feature fusion is generated by a convolutional neural network, step S312 also trains the convolutional neural network used for feature fusion.

[0088] Through the above embodiments, various networks involved in the target tracking process based on image features and optical flow features can be trained in an overall, end-to-end manner, thereby improving the accuracy of target tracking.

[0089] After training, you can also use the test video stream for testing. For example, the testing process can be referred to Figure 1 and Figure 2 Actual use process in the embodiment: During the test process, the confidence of the target detection network output can also be used for feedback to make the test effect closer to the actual application effect.

[0090] Reference below Figure 4 An embodiment of a target tracking device according to the present invention is described.

[0091] Figure 4 FIG. 4 is a schematic diagram showing the structure of a target tracking device according to some embodiments of the present invention. Figure 4As shown, the target tracking device 40 of this embodiment includes: a feature extraction area determination module 410, which is configured to determine the feature extraction area of ​​the frame to be identified according to the area where the target object is located in the frame before the frame to be identified in the video stream; an image feature extraction module 420, which is configured to extract the image features of the frame to be identified from the feature extraction area through the image feature extraction network according to the pixel information of the frame to be identified; an optical flow feature extraction module 430, which is configured to extract the optical flow features of the frame to be identified from the feature extraction area through the optical flow feature extraction network according to the optical flow information of the frame to be identified relative to the previous frame; a feature fusion module 440, which is configured to fuse the image features and optical flow features of the frame to be identified to obtain fused features; a target estimation module 450, which is configured to input the fused features into the target estimation network to obtain the area where the target object in the frame to be identified is located, which is output by the target estimation network.

[0092] In some embodiments, the feature extraction region determination module 410 is further configured to determine the feature extraction region of the frame to be identified by expanding the region where the target object is located in the frame before the frame to be identified in the video stream.

[0093] In some embodiments, the target tracking device 40 also includes: a target detection module 460, which is configured to input the fused features into the target detection network to obtain the position of the target object in the frame to be identified and its confidence output by the target detection network; when the confidence is lower than a preset value, a local search is performed in the optical flow information of the frame to be identified relative to the previous frame based on the optical flow information in the feature extraction range to obtain the pixel position with the local maximum speed; based on the pixel position with the local maximum speed, the feature extraction range is re-determined so as to re-determine the area where the target object in the frame to be identified is located based on the re-determined feature extraction range.

[0094] In some embodiments, the target detection network includes a classification convolution layer, an initialization layer and a prediction layer; the target detection module 460 is further configured to: input the fused features of the frame to be identified into the classification convolution layer of the target detection network to obtain the classification layer features; input the predicted area of ​​the target object in the frame before the frame to be identified and the frame to be identified into the initialization layer to obtain the initialization features; input the classification layer features and the initialization features into the prediction layer to obtain the location of the target object in the frame to be identified and its confidence output by the prediction layer.

[0095] In some embodiments, the pixel information of the frame to be identified includes pixel values ​​in red, green, and blue channels of the frame to be identified.

[0096] In some embodiments, the optical flow information includes relative movement information in channels of a first direction and a second direction, wherein the relative movement information in each channel is movement information of pixels in the frame to be identified relative to a previous frame in a direction corresponding to the channel.

[0097] In some embodiments, the feature fusion module 440 is further configured to fuse the image features and optical flow features of the frame to be identified through preset weights to obtain fused features; or, input the image features and optical flow features of the frame to be identified into the feature fusion network to obtain fused features output by the feature fusion network.

[0098] In some embodiments, the predicted location of the target object in the first frame in the video stream is obtained by inputting the first frame into an object detector.

[0099] In some embodiments, the target tracking device 40 also includes: a training module 470, which is configured to: extract image features and optical flow features of training frames in a training video stream through an image feature extraction network and an optical flow feature extraction network, respectively; fuse the image features and optical flow features of the training frames to obtain fused features of the training frames; input the fused features of the training frames into a target estimation network to obtain an area where the target object in the training frame is located as predicted by the target estimation network; and train the image feature extraction network, the optical flow feature extraction network, and the target estimation network according to the predicted area and the pre-marked area of ​​the target object in each training frame of the training video stream.

[0100] In some embodiments, the training module 470 is further configured to: input the fused features of the training frame into the target detection network, obtain the location of the target object and its confidence in the training frame output by the target detection network, so as to train the image feature extraction network, the optical flow feature extraction network, the target estimation network, and the target detection network according to the predicted area of ​​the target object, the pre-marked area, and the location of the target object and its confidence in each training frame of the training video stream.

[0101] In some embodiments, the image feature extraction network and the optical flow feature extraction network are residual networks, and / or the target estimation network is an intersection-over-union (IoU) network.

[0102] In some embodiments, the object detector is a fast object detector FastR-CNN based on a convolutional neural network.

[0103] In some embodiments, the object detection network is a convolutional neural network.

[0104] In some embodiments, the video stream is a real-time video stream.

[0105] Figure 5FIG. 2 shows a schematic diagram of a target tracking device according to some other embodiments of the present invention. Figure 5 As shown, the target tracking device 50 of this embodiment includes: a memory 510 and a processor 520 coupled to the memory 510 , and the processor 520 is configured to execute the target tracking method in any one of the aforementioned embodiments based on the instructions stored in the memory 510 .

[0106] The memory 510 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.

[0107] Figure 6 FIG. 2 shows a schematic diagram of the structure of a target tracking device according to some other embodiments of the present invention. Figure 6 As shown, the target tracking device 60 of this embodiment includes: a memory 610 and a processor 620, and may also include an input / output interface 630, a network interface 640, a storage interface 650, etc. These interfaces 630, 640, 650 and the memory 610 and the processor 620 may be connected, for example, via a bus 660. Among them, the input / output interface 630 provides a connection interface for input / output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 640 provides a connection interface for various networked devices. The storage interface 650 provides a connection interface for external storage devices such as SD cards and USB flash drives.

[0108] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the program implements any of the aforementioned target tracking methods when executed by a processor.

[0109] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0110] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0111] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0112] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0113] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A target tracking method, comprising: Determine a feature extraction region of the frame to be identified based on a region where the target object is located in a frame before the frame to be identified in the video stream, wherein the feature extraction region of the frame to be identified is determined by expanding a region where the target object is located in a frame before the frame to be identified in the video stream; Extracting image features of the frame to be identified from the feature extraction area through an image feature extraction network according to pixel information of the frame to be identified; Extracting optical flow features of the frame to be identified from the feature extraction area through an optical flow feature extraction network according to the optical flow information of the frame to be identified relative to the previous frame; Fusing the image features and optical flow features of the frame to be identified to obtain fused features; The fused features are input into a target estimation network to obtain a region output by the target estimation network where the target object in the frame to be identified is located.

2. The target tracking method according to claim 1, further comprising: Inputting the fused features into a target detection network to obtain the position of the target object in the to-be-identified frame and its confidence value output by the target detection network; When the confidence level is lower than a preset value, performing a local search in the optical flow information of the frame to be identified relative to the previous frame based on the optical flow information in the feature extraction area to obtain a pixel position with a local maximum speed; Based on the pixel position with the local maximum velocity, the feature extraction region is re-determined, so as to re-determine the region where the target object in the frame to be identified is located based on the re-determined feature extraction region.

3. The target tracking method according to claim 2, wherein: The target detection network includes a classification convolution layer, an initialization layer and a prediction layer; The step of inputting the fusion feature into a target detection network to obtain the position of the target object in the to-be-identified frame output by the target detection network and its confidence level includes: Inputting the fusion features of the frame to be identified into the classification convolution layer of the target detection network to obtain classification layer features; Inputting the predicted region of the target object in the frame before the frame to be identified and the frame to be identified into the initialization layer to obtain an initialization feature; The classification layer features and the initialization features are input into the prediction layer to obtain the location of the target object in the to-be-identified frame and its confidence level output by the prediction layer.

4. The target tracking method according to any one of claims 1 to 3, wherein: The pixel information of the frame to be identified includes pixel values ​​in red, green and blue channels of the frame to be identified.

5. The target tracking method according to any one of claims 1 to 3, wherein: The optical flow information includes relative movement information in a channel in a first direction and a channel in a second direction, wherein the relative movement information in each channel is movement information of pixels in the frame to be identified relative to a previous frame in a direction corresponding to the channel.

6. The target tracking method according to claim 1, wherein: By using preset weights, the image features and optical flow features of the frame to be identified are fused to obtain fused features; or, The image features and optical flow features of the frame to be identified are input into a feature fusion network to obtain fusion features output by the feature fusion network.

7. The target tracking method according to claim 1, wherein: The predicted region where the target object is located in the first frame in the video stream is obtained by inputting the first frame into an object detector.

8. The target tracking method according to claim 1, further comprising: Extracting image features and optical flow features of training frames in a training video stream through an image feature extraction network and an optical flow feature extraction network respectively; Fusing the image features and the optical flow features of the training frame to obtain fused features of the training frame; Inputting the fused features of the training frame into a target estimation network to obtain a region where the target object in the training frame is located as predicted by the target estimation network; as well as The image feature extraction network, the optical flow feature extraction network, and the target estimation network are trained according to the predicted area and the pre-marked area of ​​the target object in each training frame of the training video stream.

9. The target tracking method according to claim 8, further comprising: The fused features of the training frame are input into the target detection network to obtain the position of the target object in the training frame and its confidence level output by the target detection network, so as to train the image feature extraction network, the optical flow feature extraction network, the target estimation network, and the target detection network according to the predicted area of ​​the target object, the pre-marked area, and the position of the target object and its confidence level in each training frame of the training video stream.

10. The target tracking method according to claim 1, wherein: The image feature extraction network and the optical flow feature extraction network are residual networks, and / or the target estimation network is an intersection-over-union (IoU) network.

11. A target tracking device, comprising: The feature extraction region determination module is configured to determine the feature extraction region of the frame to be identified according to the region where the target object is located in the frame before the frame to be identified in the video stream, wherein the feature extraction region of the frame to be identified is determined by expanding the region where the target object is located in the frame before the frame to be identified in the video stream; An image feature extraction module is configured to extract image features of the frame to be identified from the feature extraction area through an image feature extraction network according to pixel information of the frame to be identified; An optical flow feature extraction module is configured to extract the optical flow features of the frame to be identified from the feature extraction area through an optical flow feature extraction network according to the optical flow information of the frame to be identified relative to the previous frame; A feature fusion module is configured to fuse the image features and optical flow features of the frame to be identified to obtain a fusion feature; The target estimation module is configured to input the fusion feature into the target estimation network to obtain the area where the target object in the frame to be identified is located, which is output by the target estimation network.

12. A target tracking device, comprising: Memory; as well as A processor coupled to the memory, the processor being configured to execute the target tracking method according to any one of claims 1 to 10 based on instructions stored in the memory.

13. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the target tracking method according to any one of claims 1 to 10 is implemented.