A visual multi-tracking operator fusion method
Through the visual multi-tracking operator fusion method, the similarity and stability between each tracking operator are calculated, which solves the problem of poor adaptability of target tracking algorithms in the existing technology, improves the ability to handle challenges such as lighting and occlusion, and achieves More stable target tracking effect.
Patent Information
- Application Number
- CN202210200738.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-02
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-03-02
AI Technical Summary
Existing target tracking algorithms have poor adaptability and cannot effectively cope with challenges such as illumination, occlusion, target scale changes, non-rigid body motion, and blur.
A visual multi-tracking operator fusion method is proposed. By calculating the visual feature similarity and geometric feature similarity between each tracking operator, an operator stability evaluation matrix is constructed, unstable operators are eliminated, and the position of the target of interest after fusion is calculated. Improve the robustness of the algorithm.
The algorithm's performance on challenges such as illumination, occlusion, target scale changes, non-rigid body motion and blur is improved, and the target tracking task is effectively completed.
Smart Images

Figure CN114612650B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of image target tracking, in particular to a visual multi-tracking operator fusion method. Background Art
[0002] Visual target tracking is an important research direction in computer vision. Its basic idea is to comprehensively utilize multidisciplinary theories such as image processing, pattern recognition, optimization theory, probability theory and random processes to determine the position of the target in each frame in the video sequence based on the correlation between video frames and the target features within the frame.
[0003] Object tracking algorithms based on correlation filtering and deep learning frameworks are gradually becoming mainstream. Although current tracking algorithms have been greatly improved in accuracy and robustness, they are still unable to effectively cope with the challenges of visual object tracking in various application scenarios, and are still insufficient to support the urgent needs of various intelligent applications for video tracking algorithms. Summary of the invention
[0004] The technical problem to be solved by the present invention is that the adaptability of the existing target tracking algorithm is relatively poor.
[0005] The present invention proposes a visual multi-tracking operator fusion method.
[0006] A visual multi-tracking operator fusion method comprises the following steps:
[0007] Step 1: Input video data, set the target of interest and monitoring area, and select the visual target tracking operator;
[0008] Step 2, read the video frame until the target of interest appears, this frame is the starting frame, determine the target area of interest according to the starting frame, and complete the initialization of each tracking operator;
[0009] Step 3, read the Nth frame after the start frame as the current frame, calculate the target area estimated by each tracking operator in the current frame, calculate the visual feature similarity and geometric feature similarity based on the target area estimated in the current frame, the geometric feature similarity is composed of the scale similarity or the coverage area similarity or the center distance similarity or any combination of the above three between each tracking operator, calculate the joint similarity between each tracking operator based on the visual feature similarity and the geometric feature similarity, N is a positive integer;
[0010] Step 4: If the number of reads of the current frame is greater than 1, calculate the joint similarity between each tracking operator and the fused tracking operator, and construct an operator stability evaluation matrix based on the joint similarity between each tracking operator of multiple frames and the joint similarity between each tracking operator of multiple frames and the fused tracking operator; otherwise, jump to step 7;
[0011] Step 5, calculating the mean similarity between operators according to the operator stability evaluation matrix, and eliminating unstable operators according to the mean similarity between operators;
[0012] Step 6, calculating the position of the fused object of interest based on the mean similarity between operators;
[0013] Step 7: If the position of the target of interest after fusion is outside the monitoring area, end; otherwise, let N = N + M, M is a positive integer, and return to step 3.
[0014] Preferably, in step 3, the calculation formula of the visual feature similarity is:
[0015]
[0016] Where Hi and Hj are the gradient histogram feature vectors of the target area estimated by any tracking operator i and any tracking operator j in the current frame, G is the Gaussian template, ⊙ represents the element-by-element product, is the color feature similarity;
[0017]
[0018] Where pu and qu represent the u components corresponding to the color histograms extracted by tracking operator i and tracking operator j in the predicted target area of the current frame, respectively, and m represents the total number of bins contained in the color histogram feature.
[0019] Preferably, in step 3, the calculation formula for the scale similarity between the tracking operators is:
[0020]
[0021] Where wi, wj, hi, hj refer to the width and height of the target area estimated by any tracking operator i and any tracking operator j in the current frame respectively;
[0022] The calculation formula for the similarity of the coverage area between each tracking operator is:
[0023]
[0024] Where Bi and Bj represent the pixel point sets contained in the target area estimated by tracking operator i and tracking operator j in the current frame respectively, and A(x) is the total number of pixels corresponding to the pixel point set x.
[0025] The calculation formula for the center distance similarity between each tracking operator is:
[0026]
[0027] Where Oi and Oj are the center coordinates of the target area predicted by tracking operator i and tracking operator j in the current frame respectively.
[0028] Preferably, in step 3, the calculation formula for the joint similarity between the tracking operators of the current frame is:
[0029] l=λl G +(1-λ)l A
[0030] =λl S l O l D +(1-λ)l A
[0031] Among them l G is the geometric similarity between operators, λ is the weight, and its value range is between 0 and 1;
[0032] In step 4, the joint similarity between each tracking operator and the fusion tracking operator is calculated as follows:
[0033]
[0034] in and It is the scale similarity, coverage area similarity, center distance similarity and visual feature similarity between any tracking operator and the fused tracking operator.
[0035] Preferably, in step 4, the method for calculating the joint similarity between the tracking operators of multiple frames is as follows:
[0036]
[0037] Among them, ω k is the similarity weight corresponding to the k frame, l k (i, j) is the joint similarity between tracking operator i and tracking operator j at frame k. When k is less than the initial value of N, ω k is 0, the corresponding l k (i, j) is not calculated, t refers to the tth frame after the target tracking operator is initialized, the corresponding frame when the tracking operator is initialized is the 0th frame, and T is a preset integer;
[0038] The calculation method of the joint similarity between each tracking operator and the fusion tracking operator of multiple frames is as follows:
[0039]
[0040] Among them, ω k is the similarity weight corresponding to the k frame, l Fk (i) is the joint similarity between tracking operator i and fusion tracking operator f at frame k, when k is less than the initial value of N, ω k is 0, the corresponding l Fk(i) No calculation is performed, t refers to the tth frame after the target tracking operator is initialized, the corresponding frame when the tracking operator is initialized is the 0th frame, and T is a preset integer.
[0041] Preferably, in step 4, the method for constructing the operator stability evaluation matrix is as follows:
[0042]
[0043] Where Eij is the i-th row and j-th column element of the stability evaluation matrix, and Eij = Eji.
[0044] Preferably, in step 5, the method for calculating the mean similarity between the tracking operator Tracker-i and other operators is as follows:
[0045]
[0046] where ω i ,ω j is the weight.
[0047] Preferably, in step 5, when the average similarity between the tracking operator Tracker-i and other operators When it is less than the threshold, the tracking operator Tracker-i is an unstable operator.
[0048] Preferably, in step 6, the calculation formula for the position of the target of interest after fusion is:
[0049]
[0050] in n is the total number of tracking operators at frame time t.
[0051] Preferably, and The calculation method and l S , l O , l D , l A The calculation method is consistent with that of , where the width / height, covered pixel set, center coordinates, gradient and color histogram information corresponding to the tracking operator Tracker-j need to be replaced with the corresponding information of the fused tracking operator in the current frame.
[0052] Compared with the prior art, the present invention has the following advantages and effects:
[0053] 1. The present invention has low computational complexity and can effectively complete the fusion of multiple tracking operators, improve the performance of the algorithm in dealing with challenges such as illumination, occlusion, target scale change, non-rigid motion, blur, rotation, etc., and complete the target tracking task. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] 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.
[0055] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0057] Embodiment 1:
[0058] Step 1:
[0059] Connect a USB interface camera to transmit the collected video data to the computer terminal in real time.
[0060] Step 2:
[0061] Set the target of interest and monitoring area, and select multiple visual target tracking operators, for example, select 10 visual target tracking operators.
[0062] Step 3:
[0063] The video frame is read until the object of interest appears, and this frame is the starting frame. The area of the object of interest is determined according to the starting frame, and the initialization of each tracking operator is completed. In this embodiment, a rectangular frame is used to select the object, and the width of the rectangular frame is w and the height is h.
[0064] Step 4:
[0065] The Nth frame after the start frame is read, where N is a positive integer, as the current frame. The target area estimated by each tracking operator in the current frame is calculated, where the target area is a rectangular area. The visual feature similarity and the geometric feature similarity are calculated based on the target area estimated in the current frame. The geometric feature similarity is composed of at least the scale similarity, the coverage area similarity, or the center distance similarity between the tracking operators, for example, any combination of the above three.
[0066] The scale similarity between each tracking operator is calculated according to the following formula:
[0067]
[0068] Where wi, wj, hi, and hj refer to the width and height of the target area predicted by tracking operators Tracker-i and Tracker-j in the current frame, respectively.
[0069] The similarity of the coverage area between each tracking operator is calculated according to the following formula:
[0070]
[0071] Where Bi and Bj represent the pixel point sets contained in the target area predicted by tracking operators Tracker-i and Tracker-j in the current frame, respectively, and A(x) is the total number of pixels in the pixel point set x.
[0072] The similarity of multiple visual features between tracking operators is calculated according to the following formula:
[0073]
[0074] Where Hi and Hj are the HOG (histogram of gradients) feature vectors of the target area predicted by the tracking operators Tracker-i and Tracker-j in the current frame, ⊙ represents the element-by-element product, and G is a Gaussian template, which performs Gaussian suppression on the feature information of the surrounding pixels with the center coordinate of the target area as the center. The farther away from the center coordinate point of the target area, the more its features are suppressed. In this embodiment, the HOG feature vector contains 32 components. In this embodiment, σ1 is set to 22.
[0075] In the above formula, the color feature similarity Where pu and qu represent the u components corresponding to the color histograms extracted by the two tracking operators in the target area predicted in the current frame, respectively, and m represents the total number of bins contained in the color histogram feature. In this embodiment, the width of each bin of the color histogram is set to 32, with three channels of R, G, and B. Gaussian suppression is used when extracting color histogram features. The farther away from the center of the target area, the smaller the weight.
[0076] Then calculate the center distance similarity between each tracking operator Where Oi and Oj are the center coordinates of the target area predicted by the tracking operators Tracker-i and Tracker-j in the current frame. In this embodiment, σ2 is set to (w+h) / 2.
[0077] Finally, the geometric-visual joint similarity between the tracking operators in the current frame can be calculated as follows:
[0078] l=λl S l O l D +(1-λ)l A
[0079] Here, λ is a weight value, and its value range is between 0 and 1. In this embodiment, λ is set to 0.6.
[0080] Step 5:
[0081] If the number of reads in the current frame is greater than 1, the geometric-visual joint similarity between any tracking operator Tracker-i and the fused tracking operator Tracker-F in the current frame is calculated. The fused tracking operator Tracker-F is the operator obtained after the tracking operator is optimized. The fusion method is the existing fusion algorithm. The calculation formula is as follows:
[0082]
[0083] in and are the scale, coverage area, center distance and multi-visual feature similarity between the tracking operator Tracker-i and the fusion tracking operator Tracker-F. The calculation method of these four similarities is the same as l S , l O , l D , l A The calculation method is consistent with that of , the only difference is that the width / height, coverage pixel set, center coordinates, gradient and color histogram information of the tracking operator Tracker-j in the corresponding formula should be replaced by the corresponding information of the fused tracking operator Tracker-F in the current frame. In this embodiment, λ is set to 0.6.
[0084] After that, the geometric-visual joint similarity of any two tracking operators Tracker-i and Tracker-j in the time series of T frames is calculated as follows:
[0085]
[0086] where ω k is the similarity weight corresponding to the k frame, l k (i, j) is the geometric-visual joint similarity between trackers Tracker-i and Tracker-j at frame k, which is calculated according to l = λl S l O l D +(1-λ)l A formula.
[0087] Calculate the geometric-visual joint similarity of any tracking operator Tracker-i and the fusion tracking operator Tracker-F in the time series of T frames at t frame. The calculation method is as follows:
[0088]
[0089] where ωk is the similarity weight corresponding to the k frame, l Fk (i) is the geometric-visual joint similarity between the tracking operator Tracker-i and the fused tracking operator Tracker-F at frame k, which is calculated according to formula.
[0090] Finally, the operator stability evaluation matrix E at the t-frame time is constructed, and its construction method is as follows:
[0091]
[0092] Where Eij is the i-th row and j-th column element of the stability evaluation matrix E.
[0093] If the number of reads of the current frame is less than or equal to 1, jump directly to step seven.
[0094] Step 6:
[0095] Calculate the average similarity between the tracking operator Tracker-i and other operators. The calculation method is as follows:
[0096]
[0097] where ω i ,ω j is the weight, is the similarity between the enhanced tracking operator Tracker-i and the fused tracking operator Tracker-F, ω i The weight is set slightly larger than ω j In this embodiment, j Set to 1 / (n-1), where n is the total number of tracking operators at the current frame time, ω i Set to 1.1*ω j .
[0098] Remove poorly performing tracking operators based on the average similarity between operators: If the total number of current tracking operators is greater than N, then when the average similarity between the tracking operator Tracker-i and other operators is When it is less than 0.45, the tracking operator Tracker-i is eliminated. In this embodiment, N is set to 2.
[0099] Step 7:
[0100] Calculate the position of the target of interest at frame time t after fusion. The calculation formula is as follows:
[0101]
[0102] in, n is the total number of tracking operators at frame time t.
[0103] If the position of the target of interest after fusion is outside the monitoring area, then end; otherwise, let N = N + M, M is a positive integer, and return to step 4.
[0104] 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 visual multi-tracking operator fusion method, characterized in that: The following steps are involved: Step 1: Input video data, set the target of interest and monitoring area, and select the visual target tracking operator; Step 2, read the video frame until the target of interest appears, this frame is the starting frame, determine the target area of interest according to the starting frame, and complete the initialization of each tracking operator; Step 3, reading the Nth frame after the start frame, where N is a positive integer, as the current frame, calculating the target area estimated by each tracking operator in the current frame, and calculating the joint similarity between each tracking operator according to the target area estimated in the current frame, wherein the calculation method of the joint similarity between each tracking operator is: calculating the visual feature similarity and the geometric feature similarity according to the target area estimated in the current frame, wherein the geometric feature similarity is at least composed of the scale similarity or the coverage area similarity or the center distance similarity between each tracking operator, and calculating the joint similarity between each tracking operator according to the visual feature similarity and the geometric feature similarity; The calculation formula of the visual feature similarity is: Among them, H i , H j are the gradient histogram feature vectors of the target area estimated by tracking operator i and tracking operator j in the current frame, G is the Gaussian template, ⊙ represents the element-by-element product, is the color feature similarity; where p u ,q u They represent the u components corresponding to the color histograms extracted by tracking operator i and tracking operator j in the target area predicted in the current frame, respectively, and m represents the total number of bins contained in the color histogram feature; The calculation formula for the scale similarity between each tracking operator is: where w i , w j ,h i ,h j They refer to the width and height of the target area estimated by tracking operator i and tracking operator j in the current frame respectively; The calculation formula for the similarity of the coverage area between each tracking operator is: Among them B i , B j They represent the pixel points contained in the target area estimated by tracking operator i and tracking operator j in the current frame respectively, and A(x) is the total number of pixels corresponding to pixel point set x; The calculation formula for the center distance similarity between each tracking operator is: Among them, i , O j are the center coordinates of the target area predicted by tracking operator i and tracking operator j in the current frame respectively; The calculation formula of the joint similarity between the tracking operators of the current frame is: l=l G +(1-λ)l A =λl S the O the D +(1-λ)l A Among them l G is the geometric similarity between operators, λ is the weight, and its value range is between 0 and 1; In step 4, the joint similarity between each tracking operator and the fusion tracking operator is calculated as follows: in and It is the scale similarity, coverage area similarity, center distance similarity and visual feature similarity between tracking operators and fused tracking operators; Step 4, if the number of readings in step 3 is greater than 1, calculate the joint similarity between each tracking operator and the fused tracking operator, calculate the joint similarity between each tracking operator of multiple frames and the joint similarity between each tracking operator and the fused tracking operator according to the joint similarity between each tracking operator and the joint similarity between each tracking operator and the fused tracking operator, and construct an operator stability evaluation matrix according to the joint similarity between each tracking operator of multiple frames and the joint similarity between each tracking operator and the fused tracking operator; otherwise, let N = N + M, M is a positive integer, and return to step 3; The method for calculating the joint similarity between the tracking operators of multiple frames is as follows: Among them, ω k is the similarity weight corresponding to the k frame, l k (i, j) is the joint similarity between tracking operator i and tracking operator j at frame k. When k is less than the initial value of N, ω k is 0, the corresponding l k (i, j) is not calculated, t refers to the tth frame after the target tracking operator is initialized, the corresponding frame when the tracking operator is initialized is the 0th frame, and T is a preset integer; The calculation method of the joint similarity between each tracking operator and the fusion tracking operator of multiple frames is as follows: Among them, ω k is the similarity weight corresponding to the k frame, l Fk (i) is the joint similarity between tracking operator i and fusion tracking operator f at frame k, when k is less than the initial value of N, ω k is 0, the corresponding l Fk (i) No calculation is performed, t refers to the tth frame after the target tracking operator is initialized, the corresponding frame when the tracking operator is initialized is the 0th frame, and T is a preset integer; The construction method of the operator stability evaluation matrix is as follows: Where E ij is the i-th row and j-th column element of the stability evaluation matrix, E ij =E ji ; Step 5: Calculate the mean similarity between operators according to the operator stability evaluation matrix, calculate the position of the fused target of interest according to the mean similarity between operators, and remove unstable operators; The calculation method of the mean similarity between the tracking operator and other operators is as follows: where ω i ,ω j is the weight; Step 6: If the position of the target of interest after fusion is outside the monitoring area, end; otherwise, let N = N + H, H is a positive integer, and return to step 3.
2. The visual multi-tracking operator fusion method according to claim 1, characterized in that: In step 5, when the similarity mean between tracking operator i and other operators is When it is less than the threshold, the tracking operator i is an unstable operator.
3. The visual multi-tracking operator fusion method according to claim 1, characterized in that: In step 5, the calculation formula for the position of the target of interest after fusion is: in n is the total number of tracking operators at frame time t.
4. The visual multi-tracking operator fusion method according to claim 1, characterized in that: and The calculation method and l S , l O , l D , l A The calculation method is consistent with that of , in which the corresponding width / height, covered pixel set, center coordinates, gradient and color histogram information of the tracking operator need to be replaced with the corresponding information of the fused tracking operator in the current frame.
Citation Information
Patent Citations
Neutrosophic similarity measurement-based scale-adaptive visual target tracking method
CN108492313A
Adaptive cross-camera cross-target tracking method and system
WO2016131300A1
