Abstract
This paper introduces a high-efficiency framework for counting moving objects directly within the H.265/HEVC compressed domain. By leveraging motion vectors and block structures inherent in the bitstream, the proposed method avoids the computational overhead of full video decoding. Experimental results demonstrate a 400% increase in processing speed compared to traditional pixel-domain methods, with a negligible accuracy trade-off of less than 0.02%.
Introduction
In modern intelligent video surveillance, counting objects like vehicles or pedestrians typically requires a "pixel-domain" approach. This necessitates fully decoding the H.265/HEVC bitstream into raw images before analysis can begin. As video resolutions increase, this decoding process becomes a massive computational bottleneck.
To address this, the authors propose a "compressed-domain" analysis that extracts information directly from the encoded bitstream. The primary challenge in this domain is that compressed data is inherently "noisy"; encoders often create motion vectors for optimization that do not correspond to physical movement. The proposed method filters this noise by treating the encoder as a pre-processor and analyzing the underlying structure of the bitstream.
Methodology
The system utilizes a four-stage pipeline designed to bypass the need for full decoding while maintaining high tracking accuracy.
1. Foreground Detection via "Momentum"
Instead of relying solely on motion vectors (MVs), the authors introduce a novel Momentum metric. Momentum is defined as the product of Movement (displacement) and Mass (the number of prediction blocks in a Coding Tree Unit). This allows the system to distinguish between real objects, which exhibit high mass and consistent movement, and artifacts or noise, which typically have low mass or erratic movement.
2. ROI Detection and Pseudo-Gravitation
Foreground blocks are clustered into Regions of Interest (ROIs). To prevent a single object from being split into multiple fragments, a pseudo-gravitation algorithm merges nearby clusters based on their relative area and distance, effectively treating them as having a gravitational pull toward one another.
3. Moving Object Tracking
Objects are tracked across frames using a Grade Table and a Matching Degree formula. This incorporates an "Age" concept: objects that persist over several frames are considered stable, while short-lived detections are discarded as transient noise. This temporal consistency is key to the system's robustness.
4. Tripwire Counting
Finally, a virtual tripwire is defined within the scene. The system employs touch detection and direction analysis to increment the count only when a tracked object crosses the wire in a specific, predefined direction.
Experimental Results
The proposed method was evaluated using public benchmarks including AVSS 2007 and PETS 2006/2007. When compared against a traditional pixel-domain approach using the OpenCV "blobtrack" library, the results were significant:
- Processing Speed: The compressed-domain approach achieved a consistent 400% speedup. In the AVSS dataset, total processing time was reduced from 152.6ms to just 35.8ms per unit.
- Accuracy: Despite the drastic reduction in computation, the accuracy degradation was less than 0.02%.
- Efficiency: The system enables real-time analysis of high-bitrate streams on standard hardware where traditional methods would typically struggle.
Conclusion and Future Work
By tapping into the work already performed by the H.265 encoder, this method provides a highly efficient solution for real-time surveillance. While currently optimized for static cameras, future research will explore global motion compensation for moving cameras and cross-camera tracking for broader surveillance networks. The approach holds significant promise for real-time big-data video analysis and complex traffic management scenarios.
Summary updated