A video tracking method and system based on deep network multi-layer feature fusion

By employing ResNet feature fusion and kernel function optimization of the filter template in the video tracking algorithm, the accuracy problem of video target tracking algorithms under complex scenes and target changes is solved, achieving higher tracking success rate and accuracy.

CN117789083BActive Publication Date: 2026-11-27NANJING UNIV OF INFORMATION SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311811901.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2026-11-27
Estimated Expiration
2043-12-27

AI Technical Summary

Technical Problem

Existing video target tracking algorithms are not accurate enough when faced with complex scenes, changes in the target itself, and occlusion. They also struggle to effectively handle issues such as dynamic device movement, changes in lighting, target occlusion, and interference from similar objects.

Method used

A deep network-based multi-layer feature fusion method is adopted, which replaces the HOG feature extraction method with the ResNet feature extraction method and fuses deep and shallow features by addition. The filter template is optimized by combining kernel function and ridge regression, and the output response map is calculated to determine the target location.

Benefits of technology

It improves the accuracy and success rate of target tracking, especially in complex situations such as dynamic device movement, lighting changes, and target occlusion, significantly enhancing the performance of the tracking algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117789083B_ABST
    Figure CN117789083B_ABST
Patent Text Reader

Abstract

The application discloses a video tracking method and system based on deep network multi-layer feature fusion, and the method comprises the following steps: acquiring the tth frame image of a target video; extracting candidate target region features for the tth frame image; calculating the kernel matrix of the current region features and the previous frame target region features based on the candidate target region features; calculating the output response map according to the kernel matrix of the current region features and the previous frame target region features and the filtering template; determining the target position according to the output response map; wherein the filtering template is obtained by the following method: extracting target region features for the continuous frame training sample images respectively to form a feature matrix; calculating the kernel matrix of the target region features based on the feature matrix; and training the filtering template by the kernel matrix and the ideal Gaussian kernel function output response. The target region features are extracted by using the backbone network ResNet feature extraction method, so that the success rate and the accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a video tracking method and system based on deep network multi-layer feature fusion, belonging to the field of target tracking technology. Background Technology

[0002] Video target tracking technology can identify the motion state and position information of a moving target in each frame of a continuous video sequence and feed it back to the tracking system for tracking. Research in this field could enable computers to autonomously perceive, analyze, and process various signals in the real world, much like the human visual system.

[0003] While target tracking algorithms have made significant progress, they still have limitations and problems that require continuous improvement and optimization. For example:

[0004] The complexity of the scenario: When target tracking is applied in real life, the dynamic movement of the device during shooting causes the target's trajectory to exhibit non-linear changes and blurring. Secondly, lighting conditions vary with different times and weather conditions, and the influence of artificial light sources can introduce numerous errors in color and texture features. In addition, there is interference from objects with similar characteristics, which need to be identified during target tracking. Finally, targets are inevitably occluded during movement, which severely affects the integrity of target information. Furthermore, the occlusion locations are random, making it impossible to build a single model; therefore, it is essential to improve the intelligence of the algorithm.

[0005] Changes in the target itself: Changes in the target's own state are also a problem that must be considered when optimizing tracking algorithms. For example, changes in the target's scale, rapid movement and irregular motion, changes in posture, and changes in disappearance and reappearance will all affect the accuracy of target tracking. Summary of the Invention

[0006] Objective: In view of at least one of the above technical problems, the present invention provides a video tracking method and system based on deep network multi-layer feature fusion.

[0007] The technical solution adopted in this invention is as follows:

[0008] In a first aspect, the present invention provides a video tracking method based on deep network multi-layer feature fusion, comprising:

[0009] Obtain the t-th frame of the target video;

[0010] For the t-th frame image, extract the features of the candidate target region;

[0011] Based on the candidate target region features, calculate the kernel matrix of the current region features and the target region features of the previous frame;

[0012] The output response map is calculated based on the kernel matrix of the current region features and the target region features of the previous frame, as well as the filtering template.

[0013] Determine the target location based on the output response map;

[0014] The method for obtaining the filter template includes:

[0015] For consecutive training sample images, the features of the target region are extracted to form a feature matrix;

[0016] Based on the feature matrix, the kernel matrix of the target region features itself is calculated using a kernel function;

[0017] The filter template is obtained by training the output response using the kernel matrix and the ideal Gaussian kernel function.

[0018] In some embodiments, the ResNet backbone network feature extraction method is used to extract features of candidate target regions, including:

[0019] Based on the features extracted by ResNet, the features of the original three layers are added together to fuse deep features and shallow features;

[0020] The ResNet backbone network comprises a first convolutional layer, a second convolutional layer, a third convolutional layer, a fourth convolutional layer, and a fifth convolutional layer. The input image undergoes five stages, sequentially passing through the first, second, third, fourth, and fifth convolutional layers to extract the first, second, third, fourth, and fifth features. To meet the requirements of target tracking applications that demand both highly semantic category features and spatially sensitive features, the third, fourth, and fifth features obtained after passing through the third, fourth, and fifth convolutional layers in the original ResNet feature extraction process are downsampled to have the same number of channels. These features are then fused together by addition to obtain candidate target region features, thereby improving the accuracy of target tracking.

[0021] In some embodiments, the kernel matrix K of the target region features is calculated using a kernel function, including:

[0022]

[0023] Where the characteristic matrix X = [x1, x2, ..., x... n ] T Each x in i Each element represents a sample. is the kernel function, representing the result of mapping the feature matrix to a higher-dimensional space.

[0024] Furthermore, in some embodiments, numerical stability is ensured at the expense of sacrificing the unbiasedness of ridge regression;

[0025] During the sampling process of the candidate target region, the sample set of the correlation filter tracking method is represented as: (x1, y1), (x2, y2), ... (x i y i ), …(x m y m ), where m represents the number of samples in the sample set;

[0026] The training aims to find a target function f. tmpl (x i )=ω T x i , so that sample x i With regression target y i The average error is minimized; where ω is the required parameter filtering template;

[0027] Therefore, if we consider it as a ridge regression problem, the loss function is expressed as:

[0028]

[0029] Where λ tmpl The regularization coefficients of the filter template are represented by y. i Indicates sample x i The corresponding label values ​​are represented in matrix form as follows:

[0030]

[0031] Where the characteristic matrix X = [x1, x2, ..., x...] n ] T Each x in i Each element represents a sample, and y = [y1, y2, ..., y3]. n ] T Each y in i The element represents the expected output of the corresponding sample, i.e., the label; the optimal solution of the above equation is obtained by taking the derivative:

[0032] ω=(X H X+λ tmpl ) -1 X H y

[0033] Where X H Represents the Hermitian transpose of X.

[0034] In the process of solving ω, we assume that the sample matrix X is a cyclic matrix. We use the property that the cyclic matrix can be diagonalized in the frequency domain to solve the problem of excessive computational cost of matrix inversion in the process of solving ω.

[0035] In some embodiments, a kernel function is introduced to extend the problem to a nonlinear space, and the filter template ω is expressed as a linear combination of x and the filter template α in the dual space:

[0036]

[0037] α = [α1, α2, ..., α] n ] T

[0038] Will Substitute In this case, solving for ω is transformed into solving for α, which can be obtained using matrix transformations:

[0039]

[0040] Where the characteristic matrix X = [x1, x2, ..., x...] n ] T Each x in i Each element represents a sample, and y = [y1, y2, ..., y3]. n ] T Each y in i The element represents the expected output of the corresponding sample, i.e., the label; let K represents the kernel matrix K in the kernel space; λ tmpl The coefficients of the regularization term in the filter template are represented by I, where I represents the regularization coefficients for X. H Find the inverse result.

[0041] In some embodiments, based on the candidate target region features, calculating the kernel matrix K(X, f) of the current region features and the target region features of the previous frame includes:

[0042]

[0043] Where X represents the feature matrix, f represents the original input image, and σ represents the bandwidth of the function, which controls the radial range of the function.

[0044] In some embodiments, the output response map is calculated based on the kernel matrix K(X, f) of the current region features and the target region features of the previous frame, and the filter template α, including:

[0045]

[0046] Where G represents the output response graph. Let X represent the Fourier transform, f represent the original input image, α represent the trained filter template, and g represent the desired Gaussian response output.

[0047] In some embodiments, determining the target location based on the output response map includes:

[0048] The response value corresponding to each point in the output response graph represents the probability that the location is the target. The location of the point with the largest response value in the output response graph is determined as the target location.

[0049] Secondly, the present invention provides a video tracking system based on deep network multi-layer feature fusion, including a processor and a storage medium;

[0050] The storage medium is used to store instructions;

[0051] The processor is configured to operate according to the instructions to execute the method according to the first aspect.

[0052] Thirdly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0053] Fourthly, the present invention provides an apparatus comprising,

[0054] Memory;

[0055] processor;

[0056] as well as

[0057] Computer programs;

[0058] The computer program is stored in the memory and configured to be executed by the processor to implement the method described in the first aspect above.

[0059] Beneficial effects: The video tracking method and related device based on deep network multi-layer feature fusion provided by the present invention have the following advantages: The present invention proposes to replace the HOG feature extraction method with the ResNet feature extraction method and to achieve feature fusion by using addition.

[0060] ResNet was proposed to address the issue that increasing the number of network layers can actually decrease performance. In deep networks, each convolution results in information loss, and the more layers there are, the more information is lost. Therefore, ResNet utilizes numerous side branches to feed input information into the current network layer for processing, preserving information integrity as much as possible and thus mitigating data loss. Testing the original KCF tracking method and the improved method on the OTB2013 library reveals that the improved method achieves higher success and accuracy. Replacing the HOG feature extraction method with ResNet feature extraction and employing an additive feature fusion approach effectively optimizes the original method. Attached Figure Description

[0061] Figure 1 This is a flowchart illustrating a video tracking method according to an embodiment of the present invention;

[0062] Figure 2 This is a schematic diagram of the improved correlation filtering algorithm framework according to an embodiment of the present invention;

[0063] Figure 3 This is a schematic diagram of ResNet feature fusion according to an embodiment of the present invention;

[0064] Figure 4 and Figure 5 The image shows a partial tracking experiment result according to an embodiment of the present invention. Detailed Implementation

[0065] The present invention will be further described below with reference to the accompanying drawings and embodiments. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention, and should not be used to limit the scope of protection of the present invention.

[0066] In the description of this invention, "several" means one or more, "multiple" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.

[0067] In the description of this invention, the terms "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0068] Example 1

[0069] This embodiment provides a video tracking method based on deep network multi-layer feature fusion, including:

[0070] Obtain the t-th frame of the target video;

[0071] For the t-th frame image, extract the features of the candidate target region;

[0072] Based on the candidate target region features, calculate the kernel matrix of the current region features and the target region features of the previous frame;

[0073] The output response map is calculated based on the kernel matrix of the current region features and the target region features of the previous frame, as well as the filtering template.

[0074] Determine the target location based on the output response map;

[0075] The method for obtaining the filter template includes:

[0076] For consecutive training sample images, the features of the target region are extracted to form a feature matrix;

[0077] Based on the feature matrix, the kernel matrix of the target region features itself is calculated using a kernel function;

[0078] The filter template α is obtained by training the output response using the kernel matrix and the ideal Gaussian kernel function.

[0079] In some embodiments, the ResNet backbone feature extraction method is used to replace the HOG feature extraction method to extract candidate target region features, specifically including:

[0080] Based on the features extracted by ResNet, the features of the original three layers are added together to fuse deep features and shallow features;

[0081] like Figure 3As shown, the backbone network ResNet includes a first convolutional layer, a second convolutional layer, a third convolutional layer, a fourth convolutional layer, and a fifth convolutional layer. The input image needs to go through five stages, passing through Layer 1, Layer 2, Layer 3, Layer 4, and Layer 5 respectively to obtain the first feature, the second feature, the third feature, the fourth feature, and the fifth feature. In order to meet the requirements of the target tracking application, which requires both high semantic category feature information and spatial location-sensitive feature information, the third feature, the fourth feature, and the fifth feature obtained after passing through the third, fourth, and fifth convolutional layers in the original RseNet feature extraction process are downsampled to have the same number of channels. The deep features and shallow features are then fused by addition to obtain candidate target region features, thereby improving the accuracy of target tracking.

[0082] In some embodiments, the kernel matrix K of the target region features is calculated using a kernel function, including:

[0083]

[0084] Where the characteristic matrix X = [x1, x2, ..., x...] n ] T Each x in i Each element represents a sample. is the kernel function, representing the result of mapping the feature matrix to a higher-dimensional space.

[0085] In some embodiments, numerical stability is ensured at the expense of the unbiasedness of ridge regression;

[0086] During the sampling process of the candidate target region, the sample set of the correlation filter tracking method is represented as: (x1, y1), (x2, y2), ... (x i y i ), …(x m y m ), where m represents the number of samples in the sample set;

[0087] The training aims to find a target function f. tmpl( x i )=ω T x i , so that sample x i With regression target y i The average error is minimized; where ω is the required parameter filtering template;

[0088] Therefore, if we consider it as a ridge regression problem, the loss function is expressed as:

[0089]

[0090] Where λ tmpl The regularization coefficients of the filter template are represented by y. i Indicates sample x i The corresponding label values ​​are represented in matrix form as follows:

[0091]

[0092] Where the characteristic matrix X = [x1, x2, ..., x...] n ] T Each x in i Each element represents a sample, and y = [y1, y2, ..., y3]. n ] T Each y in i The element represents the expected output of the corresponding sample, i.e., the label; the optimal solution of the above equation is obtained by taking the derivative:

[0093] ω=(X H X+λ tmpl ) -1 X H y

[0094] Where X H Represents the Hermitian transpose of X.

[0095] In the process of solving ω, we assume that the sample matrix X is a cyclic matrix. We use the property that the cyclic matrix can be diagonalized in the frequency domain to solve the problem of excessive computational cost of matrix inversion in the process of solving ω.

[0096] In some embodiments, a kernel function is introduced to extend the problem to a nonlinear space, and the filter template ω is expressed as a linear combination of x and the filter template α in the dual space:

[0097]

[0098] α = [α1, α2, ..., α] n ] T

[0099] Will Substitute In this case, solving for ω is transformed into solving for α, which can be obtained using matrix transformations:

[0100]

[0101] Where the characteristic matrix X = [x1, x2, ..., x...] n ] T Each x in i Each element represents a sample, and y = [y1, y2, ..., y3]. n ] TEach y in i The element represents the expected output of the corresponding sample, i.e., the label; let K represents the kernel matrix K in the kernel space; λ tmpl The coefficients of the regularization term in the filter template are represented by I, where I represents the regularization coefficients for X. H Find the inverse result.

[0102] In some embodiments, based on the candidate target region features, calculating the kernel matrix K(X, f) of the current region features and the target region features of the previous frame includes:

[0103]

[0104] Where X represents the feature matrix, f represents the original input image, and σ represents the bandwidth region of the function, which controls the radial range of the function and can be set to 1.

[0105] In some embodiments, the output response map is calculated based on the kernel matrix K(X, f) of the current region features and the target region features of the previous frame, and the filter template α, including:

[0106]

[0107] Where G represents the output response graph. Let X represent the Fourier transform, f represent the original input image, α represent the trained filter template, and g represent the desired Gaussian response output.

[0108] In some embodiments, determining the target location based on the output response map includes:

[0109] The response value corresponding to each point in the output response graph represents the probability that the location is the target. The location of the point with the largest response value in the output response graph is determined as the target location.

[0110] In some embodiments, a framework diagram of a video tracking method based on deep network multi-layer feature fusion is shown below. Figure 2 See the flowchart for the method. Figure 1 This method can be divided into two phases: the training phase and the testing phase.

[0111] During training, the features of the candidate target region need to be extracted first; then the kernel function is used to calculate the generation vector of the kernel matrix of the currently acquired features; then the response is output through the kernel matrix and the ideal Gaussian kernel function, thereby obtaining the size of the required filter template.

[0112] Because the kernel matrix is ​​a cyclic matrix, in order to speed up the calculation, it can be solved from the time domain to the frequency domain during the calculation process.

[0113] During the detection process, features of candidate target regions need to be extracted first. Then, a kernel function is used to calculate the kernel matrix generation vector of the current region features and the target region features of the previous frame. Finally, the trained and qualified filter template is used to perform corresponding calculations with the kernel matrix obtained in the previous step to obtain the output response map. The value corresponding to each point in this output response map is the probability that the target is at that location, and the location with the largest response value is the target location.

[0114] 1.1 Extracting features from candidate target regions

[0115] The advantages of the KCF method are mainly: 1. By iterating through the matrix, it increases the number of training samples, which improves tracking accuracy compared to random sampling and dense sampling without excessive computation; 2. It cleverly utilizes the properties of Fast Fourier Transform and Fourier Diagonalization, avoiding matrix inversion calculations and greatly improving computational speed; 3. It uses kernel functions to avoid complex high-dimensional operations, improving computational speed and classifier performance. However, the traditional KCF method uses HOG features for feature extraction. While HOG feature extraction has good invariance to image geometry and optical deformation, it struggles to handle scale changes, blurred motion, and rapid object movement.

[0116] This invention uses a ResNet backbone network to replace the original HOG feature extraction method. The main idea of ​​ResNet is to add direct connections to the network, changing the original network structure that only performs a nonlinear transformation on the performance input to one that retains a certain proportion of the output of previous network layers. This allows the information of the original input to be used as input for a later layer across multiple layers, thus protecting the integrity of the information.

[0117] Because the original ResNet feature extraction suffers a significant resolution reduction after a 32x downsampling, it may lose some important information. Furthermore, ResNet is primarily used for recognition tasks, focusing only on the semantic information of shallow features and having lower requirements for spatial information. However, in object tracking applications, both highly semantic category features and spatially sensitive features need to be extracted. In deep networks, deep features possess strong semantic characteristics, while shallow features are more sensitive to spatial information. Therefore, this invention, based on ResNet feature extraction, fuses deep and shallow features by adding the features from the last three layers together, such as... Figure 3 As shown, this method not only ensures accurate identification of the object category during target tracking, but also obtains relatively rich spatial information, thereby obtaining accurate moving target position, i.e., tracking result.

[0118] 1.1 Linear Regression

[0119] Ridge regression, used in the KCF method, is essentially an improved least squares estimation method. The definition of least squares is as follows: where ω is the required parameter filter template, X is the feature matrix, and is the predicted value.

[0120] Xω=y (1)

[0121] The loss function is defined as the square of the residuals. Minimizing the loss function can be defined as follows:

[0122] ||Xω-y|| 2 (2) Differentiation can effectively solve the above optimization problem, and the optimal solution can be represented by a matrix as follows:

[0123] ω=(X T X) -1 X T y (3)

[0124] If matrix X is not a full-rank column matrix, or if there is a high degree of correlation between some columns, then X T The determinant of X is close to 0, which leads to (X T X) -1 The calculation will result in a large error, which shows that the traditional least squares estimation method has certain defects in stability and reliability. To prevent overfitting, a regularization term λ will be added to the loss function:

[0125] ||Xω-y||+||λ|| 2 (4)

[0126] Therefore, we get:

[0127] ω=(X T X+λI) -1 X T y (5)

[0128] To improve computational accuracy, numerical stability is ensured at the expense of sacrificing the unbiasedness of ridge regression. During the sampling process for candidate target regions, the sample set for the correlation filter tracking method can be represented as: (x1, y1), (x2, y2), ... (x... i y i ), …(x m y m The training aims to find a target function f. tmpl (x i )=ω T x i , so that sample x i With regression target y iSince the average error is minimized, it can be viewed as a ridge regression problem, and the loss function can be expressed as:

[0129]

[0130] Where λ tmpl The regularization coefficients of the filter template are represented by y. i Indicates sample x i The corresponding label values ​​can be represented in matrix form as follows:

[0131]

[0132] Where X = [x1, x2, ..., x] n ] T Each x in i Each element represents a sample, and y = [y1, y2, ..., y3]. n ] T Each y in i The element represents the expected output of the corresponding sample, i.e., the label. The optimal solution to the above equation can be obtained by taking the derivative:

[0133] ω=(X H X+λ tmpl ) -1 X H y (8)

[0134] Where X H Let X be the Hermitian transpose. To avoid the huge computational burden caused by treating the image as a large two-dimensional matrix in the process of solving ω, we can first assume that the sample matrix X is a cyclic matrix. Then we can use the property that cyclic matrices can be diagonalized in the frequency domain to solve the problem of excessive matrix inversion computation in the above process.

[0135] 1.2 Kernel function calculation characteristics and matrices

[0136] Since the input to the correlation filter tracking method is a set of images, a large amount of computation is required if a nonlinear function is used to map each input feature to a high-dimensional space. Therefore, a kernel function is used to pre-solve the nonlinear mapping of the two features, thus avoiding the need for a separate nonlinear mapping. Overall, the kernel function method can efficiently process high-dimensional inputs without requiring specific forms and parameters of the nonlinear transformation. Equation (8) gives the linear regression problem f(x) i )=ω T x i The solution for ω is such that ω can be linearly represented by x. However, in practice, the output is not linearly separable, resulting in a significant error. We can express ω nonlinearly using x as follows:

[0137]

[0138] Substituting the above formula into formula (7), the solution for ω can be transformed into the solution for α, which can be obtained using matrix transformations:

[0139]

[0140] Where X = [x1, x2, ..., x] n ] T ,make The kernel matrix represents the kernel space.

[0141] 1.3 Output Response Diagram

[0142] By introducing the concept of image gradient, the original image can be viewed as a two-dimensional signal, and target tracking becomes a problem of solving for the similarity of the two-dimensional signal at different times. After training, the filter is correlated with the original image to obtain a Gaussian response output containing the response values ​​at each location. This can be expressed by the formula:

[0143]

[0144] Where f represents the original input image, α represents the trained filter template or filter, and g represents the desired Gaussian response output. Since performing correlation operations in two-dimensional space leads to a large amount of computation, the Fast Fourier Transform (FFT) is used to transform the correlation operations in the time domain into dot product operations in the frequency domain, thus making the overall speed of correlation filtering methods faster. The transformed formula is:

[0145]

[0146] in Let represent the Fourier transform, α be the required correlation filter template, and G represent the output response graph.

[0147] To demonstrate the effectiveness of the invention, a comparative experiment was conducted. The video tracking dataset used for the experiment was the OTB2013 dataset. OTB2013 contains a total of 51 video sequences.

[0148] The method of this invention (referred to as ResNet_ML in the following table) and the original KCF tracking method were tested using the OTB2013 dataset. The overall success rate and accuracy of 51 video sequences are shown in Table 1. As can be seen from the table, the success rate of the original KCF tracking method was 0.476, and the accuracy was 0.674. The method using ResNet feature extraction and feature fusion achieved a success rate of 0.613 and an accuracy of 0.879, representing an improvement of 0.137 in success rate and 0.205 in accuracy compared to the original method. This represents a significant improvement overall. Therefore, it can be concluded that replacing the HOG feature extraction method with the ResNet feature extraction method and employing an additive feature fusion method effectively optimizes the method.

[0149] Table 1 Comparison of success rate and accuracy of the method before and after improvement

[0150]

[0151] Example 2

[0152] Based on Embodiment 1, this embodiment provides a video tracking system based on deep network multi-layer feature fusion, including a processor and a storage medium;

[0153] The storage medium is used to store instructions;

[0154] The processor is configured to operate according to the instructions to execute the method according to Embodiment 1.

[0155] Example 3

[0156] Based on Embodiment 1, this embodiment provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in Embodiment 1.

[0157] Example 4

[0158] Based on Embodiment 1, this embodiment provides a device, including,

[0159] Memory;

[0160] processor;

[0161] as well as

[0162] Computer programs;

[0163] The computer program is stored in the memory and configured to be executed by the processor to implement the method described in Embodiment 1.

[0164] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0165] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0166] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0167] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0168] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A video tracking method based on deep network multi-layer feature fusion, characterized in that, include: Obtain the t-th frame of the target video; For the t-th frame image, extract the features of the candidate target region; Based on the candidate target region features, calculate the kernel matrix of the current region features and the target region features of the previous frame; The output response map is calculated based on the kernel matrix of the current region features and the target region features of the previous frame, as well as the filtering template. Determine the target location based on the output response map; The method for obtaining the filter template includes: For consecutive training sample images, the features of the target region are extracted to form a feature matrix; Based on the feature matrix, the kernel matrix of the target region features itself is calculated using a kernel function; The filter template is obtained by training the output response using the kernel matrix and the ideal Gaussian kernel function. Specifically, the ResNet backbone network feature extraction method is used to extract features of candidate target regions, including: Based on the features extracted by ResNet, the features from the original three layers are fused together to combine deep and shallow features. The ResNet backbone network includes a first convolutional layer, a second convolutional layer, a third convolutional layer, a fourth convolutional layer, and a fifth convolutional layer. The input image goes through five stages, sequentially passing through the first, second, third, fourth, and fifth convolutional layers to extract the first, second, third, fourth, and fifth features. To meet the requirements of target tracking applications that require both high semantic category features and spatially sensitive features, the third, fourth, and fifth features obtained after passing through the third, fourth, and fifth convolutional layers in the original ResNet feature extraction process are downsampled to have the same number of channels. These features are then fused together to obtain candidate target region features, thereby improving the accuracy of target tracking.

2. The method according to claim 1, characterized in that, The kernel matrix K of the target region features is calculated using a kernel function, including: ; The characteristic matrix Each of them Each element represents a sample. is the kernel function, representing the result of mapping the feature matrix to a higher-dimensional space.

3. The method according to claim 2, characterized in that, We employ a method that sacrifices the unbiasedness of ridge regression to ensure numerical stability. During the sampling process of the candidate target region, the sample set of the correlation filter tracking method is represented as follows: , m represents the number of samples in the sample set; Training aims to find a target function. , making the sample With regression target The average error is the smallest; among them The required parameter filtering template; Therefore, if we consider it as a ridge regression problem, the loss function is expressed as: ; in The coefficients of the regularization term in the filter template are represented. Indicates sample The corresponding label values ​​are represented in matrix form as follows: ; The characteristic matrix Each of them Each element represents a sample, and Each of them The element represents the expected output of the corresponding sample, i.e., the label; the optimal solution of the above equation is obtained by taking the derivative: ; in represent Hermitian transpose; In solving In the process, assume the sample matrix It is a circulant matrix. The property that circulant matrices can be diagonalized in the frequency domain is used to solve the problem. The problem of excessive computational cost in matrix inversion during the process.

4. The method according to claim 3, characterized in that, Introducing a kernel function extends the problem to a nonlinear space, and the filtering template... use Filter template in dual space The linear combination is expressed as: ; ; Will Substitute middle, The solution is then transformed into a problem involving... The solution is obtained using matrix transformations: ; The characteristic matrix Each of them Each element represents a sample, and Each of them The element represents the expected output of the corresponding sample, i.e., the label; let , where K represents the kernel matrix in the kernel space; The coefficients of the regularization term in the filter template are represented by I, where I represents the regularization coefficients of the filter template. Find the inverse result.

5. The method according to claim 1, characterized in that, Based on the candidate target region features, calculate the kernel matrix of the current region features and the target region features of the previous frame. ,include: ; in, Represents the characteristic matrix, Represents the original input image. The bandwidth region of the function is used to control the radial range of the function.

6. The method according to claim 1, characterized in that, The kernel matrix is ​​based on the current region features and the target region features of the previous frame. and filter template The output response map is calculated, including: ; in This represents the output response graph. Indicates Fourier transform, Represents the characteristic matrix, Represents the original input image. This represents the filter template obtained through training. This represents the desired Gaussian response output.

7. The method according to claim 1, characterized in that, Based on the output response map, the target location is determined, including: The response value corresponding to each point in the output response graph represents the probability that the location is the target. The location of the point with the largest response value in the output response graph is determined as the target location.

8. A video tracking system based on deep network multi-layer feature fusion, characterized in that, Including processor and storage media; The storage medium is used to store instructions; The processor is configured to operate according to the instructions to perform the method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that, It stores a computer program thereon, which, when executed by a processor, implements the method described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Target tracking method based on kernel correlation filtering

    CN108288062A

  • A multi-layer convolution feature self-adaptive fusion moving target tracking method

    CN109816689A