Abstract
We present a solution to the rolling shutter (RS) absolute camera pose problem with known vertical direction. Our new solver, R5Pup, is an extension of the general minimal solution R6P, which uses a double linearized RS camera model initialized by the standard perspective P3P. Here, thanks to using known vertical directions, we avoid double linearization and can get the camera absolute pose directly from the RS model without the initialization by a standard P3P. Moreover, we need only five 2D-to-3D matches while R6P needed six such matches. We demonstrate in simulated and real experiments that our new R5Pup is robust, fast and a very practical method for absolute camera pose computation for modern cameras on mobile devices. We compare our R5Pup to the state of the art RS and perspective methods and demonstrate that it outperforms them when vertical direction is known in the range of accuracy available on modern mobile devices. We also demonstrate that when using R5Pup solver in structure from motion (SfM) pipelines, it is better to transform already reconstructed scenes into the standard position, rather than using hard constraints on the verticality of up vectors.
Introduction
Most modern smartphones and DSLRs utilize rolling shutter (RS) sensors, which capture image rows sequentially. When the camera moves during this process, it introduces geometric distortions—often called the "jello effect"—such as skew and wobble. In computer vision, the Perspective-n-Point (PnP) problem aims to determine a camera's pose from 2D-to-3D point matches. Standard PnP solvers assume a global shutter, leading to significant errors when applied to distorted RS images. While previous RS solvers existed, they were often computationally expensive, required at least six point matches, or relied on initial estimates from global shutter solvers that failed under high distortion.
The R5Pup Solver
The proposed R5Pup (Rolling 5-Point up-vector) solver is a minimal solution tailored for mobile devices. It leverages the Inertial Measurement Unit (IMU) found in nearly all modern smartphones to obtain a gravity-aligned "up-vector." This known vertical direction fixes two degrees of freedom in the camera's rotation, allowing the problem to be solved with only five point matches.
By adopting a linearized RS model—assuming constant linear and angular velocity during frame capture—the pose problem is formulated as a system of polynomial equations. Using Gauss-Jordan elimination and the hidden variable method, the system is reduced to a single degree-8 polynomial. This direct approach allows R5Pup to find the correct pose even in highly distorted images where standard solvers fail, and it does so approximately 10x faster than the previous R6P solver (140µs vs. >1ms).
Experimental Evaluation
The researchers evaluated R5Pup using three distinct approaches:
- Synthetic Data: Testing against varying levels of noise, rotation speeds, and up-vector inaccuracies.
- Real-World ArUco Markers: Using a Samsung Galaxy S5 to capture images of 2D barcodes for ground-truth accuracy testing.
- SfM Sequences: Six diverse datasets (House, Park, Street, Tree, Bench, and Door) captured with intentional movement to induce rolling shutter artifacts.
Key Results
R5Pup demonstrates exceptional robustness to high-speed camera rotation. As shown in the experimental data, the solver maintains high accuracy even at angular velocities exceeding 30 degrees per frame.
In real-world tests, R5Pup consistently outperformed standard perspective solvers (like P3P) and other RS solvers in both orientation and position accuracy. Furthermore, the system remains effective even if the IMU's gravity estimate is off by up to 2 degrees, which is well within the tolerance of modern mobile sensors. In SfM pipelines, R5Pup-aware reconstructions produced straight walls and complete structures in cases where standard software produced warped or incomplete models.
Conclusion and Limitations
R5Pup provides a fast, robust, and practical method for absolute camera pose computation on mobile devices. While highly effective, its performance is dependent on the quality of the vertical direction estimate from the IMU. High linear acceleration (e.g., on a vibrating drone) can degrade accuracy. Future work involves refining how IMU noise is handled within global bundle adjustment to further improve the reliability of 3D reconstructions in mobile applications.
Summary updated