Abstract
Crowd counting from a single image is a challenging task due to high appearance similarity, perspective changes and severe congestion. Many methods only focus on the local appearance features and they cannot handle the aforementioned challenges. In order to tackle them, we propose a Perspective Crowd Counting Network (PCC Net), which consists of three parts: 1) Density Map Estimation (DME) focuses on learning very local features for density map estimation; 2) Random High-level Density Classification (R-HDC) extracts global features to predict the coarse density labels of random patches in images; 3) Fore-/Background Segmentation (FBS) encodes mid-level features to segments the foreground and background. Besides, the DULR module is embedded in PCC Net to encode the perspective changes on four directions (Down, Up, Left and Right). The proposed PCC Net is verified on five mainstream datasets, which achieves the state-of-the-art performance on the one and attains the competitive results on the other four datasets.
Introduction
Crowd counting from a single image is notoriously difficult due to three main factors: high appearance similarity where background elements mimic crowds, severe congestion where individual detection is nearly impossible, and perspective distortion. Perspective distortion causes people further from the camera to appear smaller and more densely packed. Most existing models focus on local features and fail to understand the global "trend" of density changing across the frame. To count accurately, a model must understand how the scene's geometry affects appearance.
Methodology
The Perspective Crowd Counting Network (PCC Net) utilizes a three-pronged multi-task approach to address these challenges.
Multi-Task Framework
- Density Map Estimation (DME): This core task predicts a pixel-level map where the sum of all values equals the total count.
- Random High-level Density Classification (R-HDC): This module extracts global features by randomly cropping regions of interest (ROIs) and classifying them into ten density levels. This acts as a powerful data augmentation technique and helps the model learn global context.
- Fore-/Background Segmentation (FBS): This branch learns to distinguish between "human" regions and "background" regions, acting as a filter to prevent the model from "hallucinating" people in trees or buildings.
The DULR Module
The most novel component is the DULR module (Down, Up, Left, Right). Inspired by Spatial CNNs, it propagates information across the feature map in four directions. This allows the network to "see" the gradual change in perspective across the image, effectively encoding the geometric layout of the scene into the density estimation process.
Experimental Results
The model was validated on five major benchmarks: ShanghaiTech (Part A & B), UCF_CC_50, WorldExpo’10, and UCF-QNRF.
Performance and Efficiency
PCC Net demonstrated superior performance across the board, particularly in congested scenes. On ShanghaiTech Part A, it achieved a Mean Absolute Error (MAE) of 73.5. On the extremely dense UCF_CC_50, it reduced MAE to 240.0, a significant improvement over previous methods. Despite its multi-task complexity, PCC Net is remarkably efficient, with a model size of only 2.0MB and 0.55M parameters, making it suitable for edge device deployment.
Qualitative Insights
Visualization shows that the segmentation branch significantly reduces errors in background regions. By forcing the model to decide if a region is foreground, it becomes robust to cluttered environments. The DULR module treats perspective as a global spatial relationship, allowing the model to learn that density typically increases or decreases in specific directions.
Conclusion
PCC Net effectively addresses perspective changes and background noise in crowd counting through its multi-task architecture and spatial information propagation. While its impact is most significant in high-density scenes with clear perspective shifts, future work will explore invariant features to bridge the performance gap in extremely varied environments and more complex scene geometries.
Summary updated