Introduction
Accurate human detection is a fundamental task in computer vision, yet it remains challenging in crowded indoor environments where partial occlusions are common. Traditional deep learning models, such as SSD or OpenPose, often demand significant computational resources, making real-time deployment on edge devices like the NVIDIA Jetson TX2 difficult. This paper presents a high-speed hybrid system specifically designed for detecting human heads and shoulders using RGB-D (color and depth) data. By focusing on these specific anatomical features, the system achieves robustness against occlusions while maintaining the efficiency required for privacy-conscious monitoring and person-counting applications.
System Architecture
The proposed detection pipeline follows a two-stage hybrid approach that leverages both traditional image processing and modern deep learning.
1. Candidate Head-top Locations (CHL)
To avoid the computational overhead of a sliding-window search, the system first employs a traditional image processing algorithm to generate object proposals. This CHL algorithm scans depth data to identify "blobs" of connected pixels at similar distances, which likely represent human heads. Optimized using Cython and a single-pass scanning technique, this stage operates at approximately 115 FPS, a 3x improvement over previous iterations.
2. Multi-Task CNN Refinement
The candidate regions identified by the CHL algorithm are cropped and passed to a lightweight multi-task Convolutional Neural Network (CNN). This network features three distinct output heads that simultaneously perform:
- Classification: Distinguishing between actual heads and background noise.
- Bounding Box Regression: Refining the spatial coordinates of the detected head.
- Keypoint Detection: Identifying the precise locations of the left and right shoulders.
The researchers evaluated three network variants (CNN4, CNN5, and CNN6) to optimize the trade-off between detection accuracy and inference speed.
Experimental Setup
The system was validated using a custom dataset captured with an Orbbec Astra 3D camera across four diverse indoor restaurant locations. The dataset comprises 1,610 RGB-D images, containing 3,212 positive head/shoulder samples and nearly 29,000 negative samples. To enhance model robustness, the positive training set was expanded to over 16,000 samples through rotation-based data augmentation.
Results and Analysis
The hybrid approach demonstrates significant performance gains over proposal-only methods and remains competitive with heavier deep learning architectures.
Detection Performance
The integration of the CNN refinement stage drastically improved localization accuracy. The Intersection over Union (IoU) metric increased from 0.28 for raw proposals to 0.69 after CNN processing. As shown in the Precision-Recall curves, the proposed models maintain comparable precision to SSD-Mobilenet while offering superior inference speeds.
Speed and Efficiency
The fastest variant, CNN4, achieved a remarkable 84.75 FPS on a desktop GPU and 13.51 FPS on the NVIDIA Jetson TX2. This represents a nearly 20x speedup compared to models like OpenPose, which runs at only 4 FPS on desktop hardware.
The Role of Depth Data
A key insight from the study is the nuanced role of depth information. While depth data is crucial for the initial CHL proposal stage—drastically reducing the search space—its inclusion in the CNN classification task yielded mixed results. Depth significantly improved shoulder keypoint localization (measured by the PCKh metric) but occasionally introduced ambiguity in categorical head classification compared to using RGB data alone.
Conclusion and Future Work
This research demonstrates that a hybrid pipeline combining depth-based proposals with lightweight multi-task CNNs can achieve real-time head and shoulder detection on edge hardware. While the system is highly efficient, it remains dependent on the quality of depth sensor data, which can be affected by environmental factors like bright sunlight. Future work will explore multi-threading the CHL algorithm to further increase throughput and expanding the model's keypoint detection capabilities to support more complex pose estimation tasks in a lightweight framework.
Summary updated