Rotational Rectification Network for Robust Pedestrian Detection

Xinshuo Weng, Shangxuan Wu, Fares Beainy, Kris Makoto Kitani

Abstract

Standard pedestrian detectors often fail when cameras tilt, as they are typically trained on upright datasets. This paper presents the Rotational Rectification Network (R2N), a plug-and-play module that estimates camera rotation and rectifies image features. By utilizing Global Polar Pooling (GP-Pooling) to transform rotation into translation, the R2N enables detectors to maintain high accuracy on tilted footage without requiring retraining. Experimental results show significant improvements, including a 26% absolute reduction in miss-rate on rotated benchmarks.

Introduction

Pedestrian detection is a critical component for autonomous systems, yet it frequently relies on the "upright assumption"—the premise that pedestrians will always be vertically aligned with the camera's y-axis. In real-world mobile scenarios, such as wearable cameras, drones, or vehicles on uneven terrain, this assumption is often violated. Standard detectors like Faster R-CNN, trained on upright data, struggle to identify pedestrians at significant angles, often missing them entirely.

Comparison of pedestrian detection on tilted footage. Without R2N (left), the detector fails to identify several pedestrians; with the R2N module inserted (right), the system accurately detects and bounds rotated pedestrians.

The Rotational Rectification Network (R2N) addresses this by estimating the rotation angle and "untwisting" the feature maps before they reach the detection head. This approach allows existing detectors to handle rotational distortion effectively without the need for extensive data augmentation or retraining.

Methodology

The R2N framework is designed to be inserted into standard CNN-based detectors after initial feature extraction. It consists of two main technical innovations: Global Polar Pooling and Feature-Level Rectification.

Global Polar Pooling (GP-Pooling)

Rotation in Cartesian coordinates $(x, y)$ is mathematically equivalent to a translational shift in Polar coordinates $(r, \theta)$. R2N leverages this by representing feature maps on a polar grid. This transformation allows standard convolutional layers to detect rotation as a simple horizontal shift, making the network inherently more robust to orientation changes. This "cheat code" turns a complex rotation invariance problem into a more manageable translation invariance problem.

Feature-Level Rectification

Instead of rotating the high-resolution input image, which is computationally intensive and can introduce artifacts, R2N rectifies intermediate feature maps. The estimated angle $\theta$ is passed to a Spatial Transformer Network (STN), which applies an inverse rotation. This ensures that the subsequent detection layers receive "upright" features, regardless of the original camera tilt.

The R2N architecture integrated with a general pedestrian detector. The Rotation Estimation Module employs GP-Pooling to determine the tilt angle, which is then used by the Spatial Transformer to rectify the feature maps.

Experimental Results

The R2N was evaluated on the Rotated Caltech dataset and a newly introduced YouTube Wearable Dataset, which contains natural rotation from GoPros and smartphones.

  • Quantitative Gains: On the Rotated Caltech dataset, adding R2N to an RPN-BF detector reduced the miss-rate from 83.3% to 57.6%—a nearly 26% absolute improvement. On the YouTube Wearable dataset, Faster R-CNN performance improved by 18.2%.
  • Zero-Shot Adaptation: A significant finding is that R2N works as a zero-shot adapter. Detectors trained only on upright pedestrians can be equipped with R2N to detect tilted pedestrians immediately, without further fine-tuning on rotated data.
  • Precision: The GP-Pooling module estimated rotation angles with high accuracy, achieving errors as low as 8.78° on MNIST and 15.82° on Caltech, significantly outperforming standard CNN architectures.

Conclusion

The Rotational Rectification Network provides a robust solution for pedestrian detection in dynamic, mobile environments. By converting rotation into a translation problem through polar coordinates, R2N offers a computationally efficient and modular way to overcome the limitations of the upright assumption in computer vision. Future work may focus on extending this rectification to "out-of-plane" rotations and exploring end-to-end joint training to further minimize performance overhead on perfectly upright images.

Summary updated

BibTeX
@inproceedings{weng2018rotational,
  author = {Xinshuo Weng and Shangxuan Wu and Fares Beainy and Kris Makoto Kitani},
  title = {{Rotational Rectification Network for Robust Pedestrian Detection}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2018},
  doi = {10.1109/wacv.2018.00124},
}
Figure