Introduction
Real-time object tracking often faces a trade-off between computational speed and tracking precision. While feature-level methods like color histograms are efficient, they lack the spatial detail required to capture complex rotations and fine shape changes. This paper presents a hybrid CPU-GPU architecture that enables high-precision "pixel-level" matching within a particle filter framework, achieving real-time performance by offloading intensive rendering and segmentation tasks to the GPU.
Methodology
The proposed system utilizes a Sampling-Importance-Resampling (SIR) particle filter where the object state is defined by five parameters: 2D translation, rotation, and scaling. To handle the high computational cost of pixel-level likelihoods, the system splits tasks between the CPU and GPU to maximize throughput.
Image Pre-processing and Segmentation
Incoming RGB video is converted to the HSV color space to improve robustness against lighting variations. A 2D Gaussian Mixture Model (GMM) is then employed to segment skin-colored pixels. This classification is performed entirely on the GPU's fragment processor, resulting in a binary map of the target object.
GPU-Accelerated Likelihood Calculation
The core innovation lies in the GPU-based likelihood calculation. For each particle hypothesis (pose), the GPU renders a 3D mesh of the target (e.g., a hand or face) to generate a predicted silhouette. The system then performs a pixel-wise XOR comparison between this predicted silhouette and the actual segmented image. The resulting Sum of Squared Differences (SSD) determines the particle's weight. By keeping this data local to the GPU and only transferring the final numerical weights back to the CPU, the system avoids the common PCIe bus bottleneck.
Performance and Results
The GPU-accelerated approach yields significant speedups, particularly as object complexity increases. In face tracking scenarios using a simple ellipsoid model, the GPU implementation reached 13.3 fps, a 7x improvement over the CPU's 1.9 fps.
For more complex targets like hands, which require detailed 3D meshes, the GPU maintained 5.4 fps while the CPU version struggled at 1.8 fps. Furthermore, the GMM-based segmentation process was found to be 20 times faster on the GPU than on a traditional CPU implementation.
Conclusion
By leveraging the parallel processing power of the GPU for rendering and pixel-wise comparisons, this research demonstrates that high-fidelity, silhouette-based tracking is feasible for real-time applications. While the current system uses rigid models and simple Brownian motion for prediction, future work aims to incorporate articulated models for finger tracking and more sophisticated motion models to handle occlusions and background interference.
Summary updated