Abstract
Focusing on the failure under the condition of target blocking and the similarity between target color and background color for the Camshift algorithm, an improved algorithm based on the Camshift algorithm is proposed. Gaussian mixture model (GMM) is used to determine the tracking area fast and accurately because it is not sensitive to external conditions such as light and shadow. A Kalman predictor is used to predict the blocked target effectively. The video is processed in the MATLAB environment. The moving target can be tracked and its position can be predicted accurately with the proposed improved algorithm. The results verify the feasibility and effectiveness of the algorithm.
1. Introduction
The Continuously Adaptive Meanshift (Camshift) algorithm is a staple in computer vision, prized for its lightweight nature and effectiveness in color-based tracking. However, it possesses two primary weaknesses: background interference and total occlusion. When a target's color profile matches the background or when it moves behind an obstacle, standard Camshift often loses the target permanently. This paper presents a robust hybrid approach that combines Gaussian Mixture Models (GMM) for precise foreground extraction and Kalman filtering to maintain tracking through occlusions.
2. Methodology
The researchers propose a three-layered cascade algorithm to address the inherent limitations of color-only tracking.
2.1 Improved GMM for Foreground Extraction
To distinguish the target from a similarly colored background, the system uses a GMM to identify moving pixels. The model is optimized by using a variable number of Gaussian distributions—three for nearby regions and one for distant ones—to balance accuracy and computational speed. A dynamic learning rate is also implemented to help the model adapt to lighting changes and minor camera vibrations.
2.2 Camshift Core
Following foreground extraction, the Camshift algorithm operates on the Hue component of the HSV color space. This stage identifies the object's centroid and adjusts the tracking window size to accommodate changes in the target's scale.
2.3 Kalman Prediction
The Kalman filter serves as the system's predictive engine, tracking the object's position and velocity over time. If the target is occluded (the "object shelter" problem), the Kalman filter estimates the target's trajectory. This allows the tracker to maintain a predicted position and re-acquire the target immediately upon its reappearance.
3. Experimental Results
The approach was evaluated using a 640 × 480 pixel video sequence processed in MATLAB on a Pentium Dual-Core system. The test case involved a book (the target) moving across a room and passing behind the back of a chair (the occlusion).
Experimental observations showed that while the standard Camshift algorithm frequently lost the target or failed to maintain a proper tracking window near the obstacle, the proposed improved algorithm maintained a stable lock. Even when the book was fully hidden behind the chair, the Kalman filter successfully predicted its position, allowing for seamless tracking once it emerged.
4. Conclusion and Future Work
The integration of GMM and Kalman filtering transforms the Camshift tracker from a reactive system into a predictive one, significantly improving performance in complex environments. Future work will focus on reducing the number of manual parameters to make the system more autonomous and further optimizing the computational overhead for high-demand real-time scenarios. Additionally, the researchers aim to test the Kalman predictor's effectiveness against targets with non-linear motion paths.
Summary updated