Target tracking method based on fusion of visible light image and infrared image

By fusing visible light and infrared image features in the target tracking algorithm, combined with the occlusion re-detection mechanism and scale filter, the shortcomings of the KCF algorithm in occlusion and scale changes are solved, the tracking accuracy and success rate are improved, and it is suitable for dark light and smoke. Block the environment.

CN118537593APending Publication Date: 2024-08-23XIAN TECH UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410534408.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing target tracking algorithms have not effectively solved the problems of occlusion, scale changes and incomplete target features under dark light. In particular, the kernel correlation filter (KCF) algorithm has deficiencies in occlusion and scale adaptation.

Method used

Using a target tracking method based on the fusion of visible light images and infrared images, target detection is performed through the YOLOv3 algorithm, FHOG and color features are extracted, PCA fusion is performed, position and scale filters are initialized, and occlusion re-detection mechanisms and scale filters are introduced to improve the algorithm Anti-occlusion and scale adaptive capabilities.

Benefits of technology

It effectively reduces target loss due to occlusion and improves tracking accuracy and success rate. Especially in the case of dim indoor light and smoke obstruction, it improves the representation of target features and expands application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537593A
    Figure CN118537593A
Patent Text Reader

Abstract

The invention belongs to the technical field of image processing, and particularly relates to a target tracking method based on fusion of a visible light image and an infrared image. The method comprises the steps of parameter initialization, image preprocessing, target detection, updating of a position filter and a scale filter, shielding of a re-detection mechanism, extraction of respective characteristics of a visible light image and an infrared image and fusion. According to the invention, the anti-shielding capability of the tracking algorithm of the kernel correlation filtering algorithm is improved, the scale can be self-adaptive when the target is tracked, and the tracking failure that the target is lost due to the change of the size of the target is avoided; features of the visible light image and the infrared image are extracted and fused, the method can adapt to the special environment of indoor dim light, and the tracking precision and the success rate of the algorithm are improved; and a shielding re-detection mechanism is added, so that the anti-shielding capability is improved, and the application scene is wider.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image processing, and in particular relates to a method for fusion tracking of visible light images and infrared images. Background Art

[0002] In the field of target tracking, target tracking based on visible light images is the simplest and most commonly used tracking method. With the technological development and price reduction of infrared cameras in recent years, more and more target tracking has begun to use infrared images as a supplement to traditional visible light tracking. Due to the limitations of the imaging mechanism of visible light images, when the lighting conditions are poor or change significantly, visible light tracking may be unreliable in some cases. Infrared images detect the thermal information of the target and are not sensitive to these factors. They can provide complementary information to visible images. However, infrared images usually have low resolution and are unreliable under certain conditions. Therefore, more and more researchers have begun to study target tracking methods based on the fusion of visible light and infrared images to overcome the inherent shortcomings of tracking based on single-modal images.

[0003] In the field of traditional target tracking algorithms, the classic tracking algorithms based on correlation filtering technology (CF) include the MOSSE algorithm proposed by Bolme et al., the cyclic structure detection tracking (CSK) algorithm proposed by Henriques et al., the adaptive color attribute visual tracking (CN) algorithm proposed by Danelljan et al., and the kernel correlation filter (KCF) tracking algorithm proposed by Henriques et al. based on CSK. The KCF tracking algorithm uses the Hough (HOG) directional gradient histogram feature instead of the original gray value feature, and expands the kernel correlation filter from a single channel to multiple channels, which significantly improves the tracking performance. However, the following problems still exist:

[0004] 1. Occlusion problem: The Kernel Correlation Filter (KCF) algorithm has made optimizations in multi-channel features and methods, replacing single-channel grayscale features with multi-channel HOG features and using Gaussian kernel functions to optimize the algorithm. However, the KCF algorithm has not yet solved the occlusion problem during tracking.

[0005] 2. Scale estimation problem: The traditional KCF algorithm does not have scale adaptation. In the actual tracking process, the target size will change to a certain extent, which will cause the target frame to drift and lead to tracking failure.

[0006] 3. The tracking target features are not fully reflected: Since the tracking environment is indoors, the light is dim and there is smoke obstruction, the imaging effect of visible light images is poor, and the texture details of the tracking target cannot be fully obtained. Summary of the invention

[0007] The purpose of the present invention is to design a target tracking method based on the fusion of visible light images and infrared images to overcome the problems of occlusion, scale change and incomplete target features under dark light in the prior art.

[0008] To achieve the above object, the technical solution of the present invention is: a target tracking method based on the fusion of visible light image and infrared image, comprising the following steps:

[0009] Step 1: Initialize parameters;

[0010] Step 2: First, perform image preprocessing, and then determine whether it is the first frame. If so, proceed to the next step; otherwise, jump to step 4;

[0011] Step 3: Use the YOLOv3 algorithm to detect the target on the first frame image and select the target to be tracked. Then extract the image features of the visible light and infrared light of the tracked target and perform PCA fusion. Finally, initialize the position filter and scale filter and jump to step 2.

[0012] Step 4: Extract visible light image features and infrared light image features and perform PCA fusion, then train position filters and scale filters to detect targets and obtain output responses;

[0013] Step 5: Calculate the occlusion factor using the output response, and determine whether it is occluded according to the occlusion re-detection mechanism; if the target is occluded, stop updating the position filter and scale filter, jump to step 3, re-use the YOLOv3 algorithm for detection, get the position of the target, and proceed to the next step; if the target is not occluded, update the position filter and scale filter;

[0014] Step 6: Determine whether it is the last frame. If so, end the tracking, otherwise jump to step 2.

[0015] Furthermore, the parameters of the above step 1 include the feature dimension of the position filter, the number of scales, the learning rate η of the filter model, and the size of the candidate box.

[0016] Furthermore, the image preprocessing in the above step 2 is to input the visible light image and infrared image captured in real time by the visible light camera and the infrared camera into the system to perform image correction.

[0017] Furthermore, in the above step 3, the image features of visible light and infrared light are extracted by extracting FHOG features and color features for visible light images and FHOG features and texture features for infrared images; PCA fusion is performed using the 28-dimensional visible light feature vector V visible and 28-dimensional infrared feature vector V infrared , get the fused feature matrix V PCA .

[0018] Furthermore, in the above step 4, the visible light image features and the infrared light image features are extracted and PCA fusion is performed in the same manner as step 3.

[0019] Furthermore, in the above step 4, training the scale filter to detect the target includes the following specific steps:

[0020] Let the training sample be f, the dimension of the sample feature be d, and the ideal output be g, then the minimum sum of squared errors is:

[0021]

[0022] Where l∈{1,2,…,d}, h is the scale filter template, and the above equation is Fourier transformed and converted to the frequency domain for solution, and we can get:

[0023]

[0024] The solution of the above filter template is divided into two parts and iteratively updated:

[0025]

[0026] in and B t They are:

[0027]

[0028]

[0029] When detecting a target, let the fusion feature of the candidate sample be z, and perform correlation operation on the trained scale filter model h and z in the frequency domain to obtain the frequency domain output response

[0030]

[0031] Performing inverse Fourier transform on the above equation, we can get the time domain output response y t :

[0032]

[0033] Furthermore, the above step 5 includes the following specific steps:

[0034] If the occlusion factor ρ occ Greater than the maximum occlusion factor ρ max k times, the target is not blocked, and the position and scale of the tracked target can be obtained according to the output response. Then, the features of the visible light image and infrared image are extracted and detected again, and the position filter and scale filter are updated. If the occlusion factor ρ occLess than or equal to the maximum occlusion factor ρ max If the value is k times that of , the target is blocked. In this case, the updating of the position filter and the scale filter is stopped, and YOLOv3 is used to detect the position of the target.

[0035] Furthermore, in the occlusion re-detection mechanism in step 5 above:

[0036] When the occlusion factor is less than or equal to k (k < 1) times the maximum occlusion factor, the target is determined to be occluded, and the filter model stops updating. The occlusion factor is defined as:

[0037]

[0038] Among them, y max is the maximum value of the output response, y min is the minimum value of the output response, σ 2 is the variance of the output response, n is the number of output responses, is the mean of the output responses.

[0039] Furthermore, in the occlusion re-detection mechanism in step 5 above, when the target is occluded, the update strategy of the filter model is optimized

[0040]

[0041] Compared with the prior art, the present invention has the following beneficial effects:

[0042] 1. The present invention proposes an occlusion resampling detection mechanism. When the occlusion factor is low, the mechanism determines that the target is occluded. The filter model stops updating, the learning rate η is set to 0, and the target is re-detected for tracking, thereby reducing the situation of losing the target due to occlusion problems and improving the algorithm's anti-occlusion ability.

[0043] 2. A scale filter is added based on the position filter of the KCF target tracking algorithm. The scale filter extracts FHOG features from visible light images and infrared images during training and detection, achieves scale adaptation improvements, and improves the tracking accuracy and success rate of the algorithm.

[0044] 3. The present invention extracts features from visible light images and infrared images and performs fusion tracking, using the advantages of both to expand the application scenarios, especially in indoor environments with dim light and smoke obstructions, improving the problem of incomplete target feature representation. The addition of an occlusion re-detection mechanism and a scale filter improves the anti-occlusion tracking capability, making the application scenarios more extensive. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a flow chart of the target tracking method of the present invention by fusing visible light image and infrared image;

[0046] Figure 2 It is a feature extraction and fusion flow chart of the present invention;

[0047] Figure 3 It is a training and detection flow chart of the scale filter of the present invention;

[0048] Figure 4 is a flow chart of the occlusion re-detection mechanism of the present invention;

[0049] Figure 5 It is the result of tracking the occluded target by the original algorithm and the result of tracking the occluded target by the improved algorithm;

[0050] Figure a is the tracking result of the original algorithm. When the target is occluded, the original algorithm will lose the target in the first few frames of the video sequence. Figure b is the tracking result with the anti-occlusion mechanism added. When the target is occluded, it can still be tracked effectively.

[0051] Figure 6 It is the tracking result of the original algorithm and the tracking result of the improved algorithm with the scale filter added;

[0052] Figure a is the tracking result of the original algorithm. When the target moves from far to near, the scale of the tracking result will not change, and the target is likely to be lost in subsequent tracking. Figure b is the tracking effect after adding a scale filter. When the target moves from far to near, the tracking scale will change with the target, showing an adaptive effect.

[0053] Figure 7 It is the result of the original algorithm tracking the target in the visible light image and the result of the improved algorithm tracking the target after fusion;

[0054] Figure a is the tracking result of the original algorithm, and the tracking target is lost in a dim environment; Figure b is the tracking effect diagram that combines the visible light tracking result with the infrared tracking result, which can still track accurately in a dim environment. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the flowchart drawings of the present invention.

[0056] Combination Figures 1 to 7 , combined with Figure 1 The present invention provides a target tracking algorithm method based on the fusion of visible light image and infrared image, comprising the following steps:

[0057] Step 1: Initialize parameters:

[0058] Set the feature dimension of the position filter to 28, the number of scales to 17, the number of scales after interpolation to 33, the learning rate η when not occluded to 0.005, the learning rate η when occluded to 0, and the size of the candidate box to 2.5 times the size of the tracking box;

[0059] Step 2: First, perform image preprocessing, and then determine whether it is the first frame. If yes, proceed to the next step; otherwise, jump to step 4. The specific implementation method is as follows:

[0060] Image preprocessing is to input the visible light image and infrared image taken by the visible light camera and infrared camera in real time into the system for image correction. Then determine whether it is the first frame. If so, proceed to the next step; otherwise, jump to step 4;

[0061] Step 3: Use the YOLOv3 algorithm to detect the target on the first frame image and select the target to be tracked. Then extract the image features of the visible light and infrared light of the tracked target and perform PCA fusion. Finally, initialize the position filter and scale filter and jump to step 2. The specific implementation method is as follows:

[0062] Most target tracking algorithms only take one feature of the target as input, but a single feature sometimes cannot accurately describe the target. In order to improve the tracking accuracy and precision of the algorithm, multiple features of the image are extracted at the same time to describe the target. FHOG features and CN color features are extracted for visible light images, and FHOG features and texture features are extracted for infrared images. Since visible light images have poor imaging effects in environments with weak light intensity and smoke obstruction, the principal component analysis method is used to fuse the extracted feature vectors. On the basis of retaining complementary features, the redundant information between the same features is removed, and the dimension is reduced at the same time. PCA fusion uses the 28-dimensional visible light feature vector V visible and 28-dimensional infrared feature vector V infrared , get the fused feature matrix V PCA The specific feature extraction and fusion process is as follows: Figure 2 As shown;

[0063] Step 4: Extract visible light image features and infrared light image features and perform PCA fusion, then train position filters and scale filters to detect targets and obtain output responses;

[0064] The specific implementation method of training the scale filter to detect the target is as follows:

[0065] Let the training sample be f, the dimension of the sample feature be d, and the ideal output be g, then the minimum sum of squared errors is:

[0066]

[0067] Where l∈{1,2,…,d}, h is the scale filter template, and the above equation is Fourier transformed and converted to the frequency domain for solution, and we can get:

[0068]

[0069] The solution of the above filter template is divided into two parts and iteratively updated:

[0070]

[0071] in and B t They are:

[0072]

[0073]

[0074] When detecting a target, let the fusion feature of the candidate sample be z, and perform correlation operation on the trained scale filter model h and z in the frequency domain to obtain the frequency domain output response

[0075]

[0076] Performing inverse Fourier transform on the above equation, we can get the time domain output response y t :

[0077]

[0078] The algorithm independently trains the position filter and the scale filter. During detection, the position filter is first used to detect the target position, and then the scale filter is used to detect the target scale. The scale filter in this embodiment collects samples of 17 scales, and then uses trigonometric polynomials for interpolation to increase the number of scales to 33, reducing the computational cost. Different from the features extracted by the position filter, the scale filter only extracts FHOG features from visible light images and infrared images during training and detection. The specific training and detection process of the scale filter is as follows: Figure 3 As shown;

[0079] Step 5: Use the output response to calculate the occlusion factor, and determine whether it is occluded according to the occlusion re-detection mechanism; if the target is occluded, stop updating the position filter and scale filter, jump to step 3, re-use the YOLOv3 algorithm for detection, get the position of the target, and proceed to the next step; if the target is not occluded, update the position filter and scale filter:

[0080] The specific implementation of the occlusion re-detection mechanism is as follows:

[0081] The occlusion re-detection mechanism process is as follows Figure 4 When the occlusion factor is less than or equal to k (k < 1) times the maximum occlusion factor, the target is determined to be occluded, and the filter model stops updating. The occlusion factor is defined as:

[0082]

[0083] Among them, y max is the maximum value of the output response, y min is the minimum value of the output response, σ 2 is the variance of the output response, n is the number of output responses, is the mean of the output responses.

[0084] When the target is occluded, if the filter model does not stop updating, the model will contain more features of the occluder. Therefore, the update strategy of the filter model is optimized: when the target is occluded, the learning rate η is set to 0, and when the target is not occluded, the learning rate η is set to 0.005.

[0085]

[0086] When using the position filter to detect the target, a 28-dimensional position output response can be obtained. The occlusion factor ρ can be calculated by formula (1-9): occ , the maximum occlusion factor in all current frames is taken as ρ max . Let k = 0.15, when the occlusion factor ρ occ Greater than the maximum occlusion factor ρ max When the occlusion factor is 0.15 times, the target is not occluded. At this time, the position and scale of the maximum response are obtained, and the filter is resampled and updated. occ Less than or equal to the maximum occlusion factor ρ max When the target is 0.15 times of , the target is occluded. At this time, both the position filter and the scale filter stop updating, and YOLOv3 is used to detect the target. occ Greater than the maximum occlusion factor ρ max When the filter model is updated again, the filter model starts to update again.

[0087] Step 6: Determine whether it is the last frame. If so, end the tracking, otherwise jump to step 2.

[0088] The above description is only the technical method and implementation mode of the present invention, and the protection scope of the present invention is not limited thereto. Any person who makes equivalent replacement or change based on the technical solution and inventive concept of the present invention is covered by the protection scope of the present invention.

Claims

1. A target tracking method by fusing visible light image and infrared image, characterized in that: The steps include: Step 1: Initialize parameters; Step 2: First, perform image preprocessing, and then determine whether it is the first frame. If so, proceed to the next step; otherwise, jump to step 4; Step 3: Use the YOLOv3 algorithm to detect the target on the first frame image and select the target to be tracked. Then extract the image features of the visible light and infrared light of the tracked target and perform PCA fusion. Finally, initialize the position filter and scale filter and jump to step 2. Step 4: Extract visible light image features and infrared light image features and perform PCA fusion, then train position filters and scale filters to detect targets and obtain output responses; Step 5: Calculate the occlusion factor using the output response and determine whether it is occluded according to the occlusion re-detection mechanism; If the target is blocked, stop updating the position filter and scale filter, jump to step 3, use the YOLOv3 algorithm to detect again, get the position of the target, and proceed to the next step; if the target is not blocked, update the position filter and scale filter; Step 6: Determine whether it is the last frame. If so, end the tracking, otherwise jump to step 2.

2. The target tracking method of claim 1, wherein: The parameters of step one include the feature dimension of the position filter, the number of scales, the learning rate η of the filter model, and the size of the candidate box.

3. The target tracking method of the visible light image and infrared image fusion according to claim 2 is characterized in that: The image preprocessing in step 2 is to input the visible light image and infrared image captured in real time by the visible light camera and the infrared camera into the system to perform image correction.

4. The target tracking method of claim 3 by fusing visible light image and infrared image, characterized in that: In the step 3, the image features of visible light and infrared light are: extracting FHOG features and color features for visible light images, and extracting FHOG features and texture features for infrared images; PCA fusion is performed using the 28-dimensional visible light feature vector V visible and 28-dimensional infrared feature vector V infrared , get the fused feature matrix V PCA .

5. The target tracking method of the visible light image and infrared image fusion according to claim 4 is characterized in that: In the step 4, the visible light image features and the infrared light image features are extracted and PCA fusion is performed in the same manner as in the step 3.

6. The target tracking method of claim 5 by fusing visible light image and infrared image, characterized in that: In step 4, training the scale filter to detect the target includes the following specific steps: Let the training sample be f, the dimension of the sample feature be d, and the ideal output be g, then the minimum sum of squared errors is: Where l∈{1,2,…,d}, h is the scale filter template, and the above equation is Fourier transformed and converted to the frequency domain for solution, and we can get: The solution of the above filter template is divided into two parts and iteratively updated: in and B t They are: When detecting a target, let the fusion feature of the candidate sample be z, and perform correlation operation on the trained scale filter model h and z in the frequency domain to obtain the frequency domain output response Performing inverse Fourier transform on the above equation, we can get the time domain output response y t :

7. The target tracking method of claim 6 by fusing visible light image and infrared image, characterized in that: The step five includes the following specific steps: If the occlusion factor ρ occ Greater than the maximum occlusion factor ρ max k times, the target is not blocked, and the position and scale of the tracked target can be obtained according to the output response. Then, the features of the visible light image and infrared image are re-extracted and detected, and the position filter and scale filter are updated. If the occlusion factor ρ occ Less than or equal to the maximum occlusion factor ρ max If the value is k times that of , the target is blocked. In this case, the updating of the position filter and the scale filter is stopped, and YOLOv3 is used to detect the position of the target.

8. The target tracking method of claim 7 by fusing visible light image and infrared image, characterized in that: In the occlusion re-detection mechanism in step 5: When the occlusion factor is less than or equal to k (k < 1) times the maximum occlusion factor, the target is determined to be occluded, and the filter model stops updating. The occlusion factor is defined as: Among them, y max is the maximum value of the output response, y min is the minimum value of the output response, σ 2 is the variance of the output response, n is the number of output responses, is the mean of the output responses.

9. The target tracking method of claim 8 by fusing visible light image and infrared image, characterized in that: In the occlusion re-detection mechanism in step 5, when the target is occluded, the update strategy of the filter model is optimized