Abstract
We present a minimal, non-iterative solution to the absolute pose problem for images from rolling shutter cameras. Absolute pose problem is a key problem in computer vision and rolling shutter is present in a vast majority of today's digital cameras. We propose several rolling shutter camera models and verify their feasibility for a polynomial solver. A solution based on linearized camera model is chosen and verified in several experiments. We use a linear approximation to the camera orientation, which is meaningful only around the identity rotation. We show that the standard P3P algorithm is able to estimate camera orientation within 6 degrees for camera rotation velocity as high as 30deg/frame. Therefore we can use the standard P3P algorithm to estimate camera orientation and to bring the camera rotation matrix close to the identity. Using this solution, camera position, orientation, translational velocity and angular velocity can be computed using six 2D-to-3D correspondences, with orientation error under half a degree and relative position error under 2%. A significant improvement in terms of the number of inliers in RANSAC is demonstrated.
Introduction
Most computer vision algorithms assume a global shutter model, where every pixel in an image is exposed at the exact same moment. However, the vast majority of modern CMOS sensors (found in smartphones, drones, and consumer cameras) use a rolling shutter (RS). These sensors capture the image row-by-row over a short period of time. If the camera moves while the shutter is "rolling," the resulting image suffers from geometric distortions like skew, smear, or the infamous "jello effect."
When solving the Perspective-n-Point (PnP) problem—finding the camera's location and orientation relative to 3D points—using standard tools like P3P on these distorted images, the results are often wildly inaccurate. This paper introduces R6P (Rolling Shutter 6-Point), a method to solve PnP while explicitly modeling the camera's motion during the frame capture.
Methodology
The R6P algorithm is the first minimal, non-iterative solution for determining the absolute pose of a rolling shutter camera using only six 2D-to-3D correspondences. The approach hinges on a few mathematical simplifications:
- The Double Linearized Model: To avoid the computational weight of complex rotations (sines and cosines), the authors linearize both the camera's initial orientation and its angular velocity during the frame.
- Gröbner Basis Solver: A specialized solver allows the algorithm to run in just 1.7ms, making it fast enough for use inside a RANSAC loop.
- The P3P Initialization Trick: Linearization requires the camera's orientation to be close to a known starting point. The researchers discovered that standard P3P is "good enough" to estimate orientation within about 6 degrees, even with heavy RS distortion. This rough guess is used to rotate the data close to identity before R6P finds the precise pose and velocity.
Experimental Results
The researchers evaluated R6P using synthetic simulations and real-world datasets captured with iPhone 4 and Nexus 4 devices.
Key Insights
- Accuracy: At high rotation speeds (30 deg/frame), R6P maintains an orientation error of less than 0.5 degrees and a position error of under 2%. As shown in the synthetic tests, the error remains stable even as angular velocity increases.
- Robustness: In RANSAC tests on real data, R6P consistently found significantly more "inliers" (correct matches) than P3P. In rapid motion scenarios where P3P's inlier count dropped below 10%, R6P maintained over 90% accuracy.
- Velocity Estimation: Unlike standard PnP, R6P provides the camera's translational and angular velocity during the capture of a single frame as a "free" output.
Conclusion
R6P provides a robust solution to the distortions inherent in modern CMOS sensors. By finding a solution that only requires 6 points, the algorithm can be effectively deployed in RANSAC for real-world applications where outliers are common. While the model assumes constant velocity during the millisecond-scale capture of a single frame, it represents a significant leap forward in pose estimation for mobile and consumer hardware. Future work may involve integrating inertial sensors (IMUs) to further improve the initial orientation guess.
Summary updated