Abstract
Overhead fisheye cameras are increasingly used for occupancy sensing due to their wide field of view. However, the radial distortion causes people to appear at arbitrary orientations, making standard axis-aligned object detectors ineffective. We present RAPiD (Rotation-Aware People Detection), a single-stage deep learning model that regresses arbitrarily-oriented bounding boxes. By introducing a novel periodic loss function to handle angular wrap-around and a new large-scale dataset (CEPDOF), RAPiD achieves state-of-the-art performance and real-time inference speeds without requiring computationally expensive image rotations or dewarping.
Introduction
Occupancy sensing in smart buildings often relies on overhead fisheye cameras because a single sensor can cover a 360° field of view. However, these images present a unique challenge: due to the radial geometry and barrel distortion, people appear "tilted" or rotated depending on their distance from the image center. Standard object detectors, such as YOLO or Faster R-CNN, typically use axis-aligned bounding boxes. These fail to capture the elongated shape of a person leaning at a 45° angle or lying down.
Previous attempts to address this were either computationally heavy—such as rotating the image in 15° increments and running a detector 24 times per frame—or overly simplistic, assuming people always align perfectly with the image radius. RAPiD aims to solve this by detecting arbitrarily-oriented bounding boxes in a single, end-to-end pass.
Methodology
The RAPiD architecture is built upon the YOLOv3 framework, utilizing a backbone for feature extraction and a Feature Pyramid Network (FPN) to handle objects at different scales.
Angle Regression and Symmetry
Unlike standard YOLO, which predicts $(x, y, w, h)$, RAPiD adds a fifth parameter, $\theta$, representing the box's rotation. To avoid ambiguity (e.g., whether a box is at 0° with width $W$ or 90° with height $W$), the authors enforce a ground-truth rule where the width is always less than the height ($b_w < b_h$). This ensures every person has a unique, non-ambiguous mathematical representation.
Periodic Loss Function
Angles present a challenge for neural networks because $\pi$ and $-\pi$ represent the same orientation, but a standard L2 loss would treat them as being far apart. The authors propose a continuous, $\pi$-periodic loss function using a modulo operation. This ensures the network isn't penalized for "wrapping around" the angular boundary, allowing gradient descent to correctly interpret the circular nature of rotation.
Evaluation and Results
The paper utilizes three main datasets for evaluation: CEPDOF, a new dataset introduced by the authors containing 25,504 frames with 173,000 annotations; MW-R, a subset of the Mirror Worlds dataset re-annotated with rotated boxes; and HABBOF, an existing fisheye benchmark.
RAPiD achieved state-of-the-art accuracy across all three datasets. On the CEPDOF dataset, it reached an $AP_{50}$ of 85.8, significantly outperforming the previous best of 76.9. In terms of speed, RAPiD achieves 7.0 FPS on a modest NVIDIA GTX 1650 at $608 \times 608$ resolution, and 3.7 FPS at $1024 \times 1024$. This performance is tens of times faster than multi-rotation methods, making it viable for real-time edge deployment.
Conclusion
RAPiD demonstrates that incorporating rotation directly into the regression head of a single-stage detector is both efficient and highly accurate for overhead fisheye imagery. While the model shows robustness in various poses, it still faces challenges with contextual confusion (e.g., people on screens) and extreme low-light conditions. Future work will leverage the spatio-temporal labels in the CEPDOF dataset to explore multi-person tracking and re-identification in overhead configurations.
Summary updated