Abstract
Accurate crowd counting and localization remain challenging due to extreme scale variations and dense occlusions in crowded scenes. Traditional regression-based methods provide counts but lack precise localization, while detection-based methods often underestimate counts in dense regions. This paper introduces RDNet, a hybrid framework that integrates density map regression with object detection using RGB-D (color + depth) data. By employing depth-adaptive kernels and depth-aware anchors, RDNet effectively addresses the underestimation problem. Evaluated on the new ShanghaiTechRGBD dataset, RDNet achieves state-of-the-art performance in both counting accuracy and localization.
Introduction
Crowd counting is a critical task in computer vision with applications in public safety and urban planning. Existing approaches generally fall into two categories: regression-based and detection-based. Regression methods estimate a density map to count individuals, excelling in dense scenes but failing to provide precise locations. Conversely, detection methods provide bounding boxes but suffer from significant underestimation in crowded areas where heads appear as small, indistinct pixel clusters.
The primary challenges identified are the lack of large-scale RGB-D datasets and the difficulty of detecting heads across vastly different scales. RDNet addresses these by utilizing depth information to normalize scales and using regression outputs to guide the detection process.
Methodology: RDNet Architecture
The Regression Guided Detection Network (RDNet) consists of two synergistic modules: a Regression module and a Detection module.
Density Map Regression Module
This module utilizes a modified CSRNet to generate a density map. A key innovation is the depth-adaptive kernel. Unlike traditional methods that use fixed Gaussian kernels, RDNet uses depth data to scale the kernel size according to the physical distance of the head from the camera. This ensures that the ground-truth density maps accurately reflect the physical size of heads in the image plane.
Detection Module
The detection module is based on RetinaNet and is enhanced with two depth-driven components:
- Density Map Guided Classification: The predicted density map serves as a spatial prior for the detection subnet. By concatenating the density map with feature maps, the detector receives a "hint" about head locations, significantly improving the recall of small or occluded heads.
- Depth-Aware Anchors: Instead of static anchor boxes, RDNet uses depth information to initialize anchors. By knowing the distance, the model can predict the expected pixel size of a head, narrowing the search space for the detector.
Datasets and Benchmarks
The authors introduce ShanghaiTechRGBD, a comprehensive benchmark containing 2,193 images and over 144,000 annotated heads captured with a ZED stereo camera. The dataset covers diverse environments with depth information up to 20 meters. Additionally, the model was tested on the MICC dataset and the RGB-only ShanghaiTech Part B to evaluate its generalization capabilities.
Experimental Results
RDNet demonstrates superior performance across multiple benchmarks:
- Counting Accuracy: On ShanghaiTechRGBD, RDNet achieved a Mean Absolute Error (MAE) of 4.96, outperforming both standard RetinaNet (10.25) and CSRNet (5.11).
- Localization: The model reached an Average Precision (AP) of 0.610, nearly doubling the performance of baseline detection models.
- Generalization: On the RGB-only ShanghaiTech Part B dataset, RDNet remained competitive with an MAE of 8.8, proving its robustness even in the absence of active depth sensors.
Conclusion
RDNet successfully bridges the gap between regression and detection for crowd counting. By leveraging depth as a scale normalizer and using density maps to guide classification, the network overcomes the traditional "underestimation" problem. While the model's peak performance relies on high-quality depth data, its architectural innovations provide a robust framework for high-accuracy crowd analysis in complex real-world scenarios.
Summary updated