Robust Frame-to-Frame Camera Rotation Estimation in Crowded Scenes

Fabien Delattre, David Dirnfeld, Phat Nguyen, Stephen Scarano, Michael J. Jones, Pedro Miraldo, Erik G. Learned-Miller

TL;DR

This paper introduces a highly efficient and robust method for estimating frame-to-frame camera rotation from handheld monocular video in crowded environments. By adapting the Hough transform to the space of 3D rotations ($SO(3)$), the algorithm bypasses the need for computationally expensive RANSAC iterations, cutting rotation error by nearly 50% compared to fast baselines while running over 400 times faster than traditional robust methods.

What Problem Does This Paper Address?

Estimating how a camera rotates as it moves through a scene is foundational for tasks like video stabilization, visual odometry, and SLAM. However, doing this reliably from a single handheld camera in crowded real-world environments (like a busy city street) remains a major challenge.

In crowded scenes, two main factors corrupt optical flow data: camera translation (which creates parallax based on depth) and independently moving objects (like pedestrians and cars). Traditional approaches rely on RANSAC to filter out these "outliers." However, when a scene is highly dynamic, the outlier ratio skyrockets, forcing RANSAC to require an impractically large number of iterations to find a correct consensus, making it prohibitively slow for real-time applications.

Methods

The authors tackle the outlier problem by introducing a voting mechanism based on a generalization of the Hough transform on $SO(3)$ (the mathematical space of 3D rotations).

Instead of iteratively sampling subsets of points, the algorithm evaluates every optical flow vector independently. Under a pure rotation model, a single optical flow vector does not map to a single unique camera rotation; instead, it constrains the possible rotations to a one-dimensional manifold (a curve or a line) in 3D rotation space.

The authors explore two motion models to define these manifolds:

  1. Perspective Projection Model: Yields complex 1D curves in $SO(3)$.
  2. Longuet-Higgins Model: Yields simple straight lines.
Figure 3. Longuet-Higgins vs. perspective projection. Each flow vector is compatible with a 1D manifold of rotations (axes in radians). Here, we show (partial) sets of compatible rotations using the Longuet-Higgins model (straight red lines) and (par- tial) sets of compatible rotations using perspective projection (blue curves.) Our algorithm can be used with either motion model.

By leveraging the Longuet-Higgins model, the directions of these lines depend solely on the pixel coordinates, meaning they can be precomputed. At runtime, the algorithm only needs to calculate the line intercepts based on the observed optical flow.

To avoid the massive memory footprint of a traditional 3D Hough accumulator grid, the authors densely sample points along each line and store them in a simple vote list. The camera rotation is then determined by finding the mode (the most frequent value) of this list.

Datasets

Because existing benchmarks lack highly dynamic, handheld monocular data with verified ground truth, the authors introduced a new dataset:

  • BUsy Street Scenes (BUSS): Contains 17 full HD video sequences (5,504 frames total) captured via a handheld smartphone in crowded public spaces. Ground truth rotation was derived from the phone's 400Hz gyroscope and rigorously cross-verified against a second rigidly attached smartphone to ensure sub-0.014° accuracy.
  • IRSTV: An existing dataset primarily composed of static scenes, used to evaluate how well the method generalizes to standard environments.

Key Insights and Ideas

  • Distant Points as Anchors: The core physical intuition is that the optical flow of distant objects is dominated by camera rotation rather than translation. In a crowded scene, while moving objects and close-up translations generate chaotic, unstructured votes in rotation space, distant static structures consistently vote for the true camera rotation.
  • Linearization for Speed: Choosing the Longuet-Higgins model over standard perspective projection linearizes the voting manifolds into straight lines. This mathematical choice enables offline precomputation, turning a potentially sluggish voting scheme into an incredibly fast, real-time algorithm.
  • Abandoning the Accumulator Grid: Traditional Hough transforms suffer from the "curse of dimensionality" when setting up multi-dimensional accumulator grids. Switching to a simple vote list and finding the mode allows for dense, high-precision sampling of $SO(3)$ without memory bloat.

Key Results

The proposed method was benchmarked against several state-of-the-art continual and discrete baselines:

  • On the BUSS Dataset: The method achieved an Average Angular Error (AAE) of 0.12°. It outperformed the second-best method by 25% while operating more than 400 times faster than baselines running with sufficient RANSAC iterations.
  • Robustness to Outliers: Even when less than 25% of the optical flow vectors voted for the winning bin (meaning 75%+ of the scene was corrupted by translation or moving objects), the algorithm still successfully identified the correct camera rotation with minimal error.
  • On the IRSTV Dataset: In mostly static scenes, the method performed on par with traditional algorithms (AAE of 0.14°), proving that it doesn't sacrifice standard performance to achieve robustness in crowded environments.

Limitations and Future Work

The primary limitation of this approach is its underlying assumption: camera translation between frames must be relatively small compared to the distance of the background objects. If a video is shot in a very confined space (e.g., a small room) or lacks a visible background, the assumption that distant points reflect "rotation-only" flow breaks down, which could degrade accuracy.

For future work, integrating this robust rotation estimation as a front-end module for monocular SLAM or video stabilization pipelines in crowded environments represents a promising direction.

Summary updated

BibTeX
@misc{delattre2023robust,
  author = {Fabien Delattre and David Dirnfeld and Phat Nguyen and Stephen Scarano and Michael J. Jones and Pedro Miraldo and Erik G. Learned-Miller},
  title = {{Robust Frame-to-Frame Camera Rotation Estimation in Crowded Scenes}},
  year = {2023},
  eprint = {2309.08588},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.08588},
}
Figure