Abstract
Camera calibration for estimating the intrinsic parameters and lens distortion is a prerequisite for various monocular vision applications including feature tracking and video stabilization. This application paper proposes a model for estimating the parameters on the fly by fusing gyroscope and camera data, both readily available in modern day smartphones. The model is based on joint estimation of visual feature positions, camera parameters, and the camera pose, the movement of which is assumed to follow the movement predicted by the gyroscope. Our model assumes the camera movement to be free, but continuous and differentiable, and individual features are assumed to stay stationary. The estimation is performed online using an extended Kalman filter, and it is shown to outperform existing methods in robustness and insensitivity to initialization. We demonstrate the method using simulated data and empirical data from an iPad.
Introduction
Precise knowledge of a camera's intrinsic parameters—such as focal length ($f_x, f_y$) and optical center ($c_x, c_y$)—along with lens distortion coefficients ($k_1, k_2$) is essential for mobile computer vision tasks like Augmented Reality (AR) and video stabilization. Traditionally, obtaining these parameters requires a dedicated calibration session using known patterns like checkerboards. "Self-calibration" attempts to derive these parameters from natural scenes, but existing vision-only methods often struggle with sparse features, poor lighting, or arbitrary motion.
This paper introduces a robust, online self-calibration method that fuses visual data with high-frequency gyroscope readings. By treating calibration as a dynamic estimation problem, the system achieves accurate results in real-time without specialized patterns.
Methods
The proposed approach utilizes an Extended Kalman Filter (EKF) to jointly estimate a state vector comprising camera intrinsics, radial distortion, camera pose (position, velocity, and orientation), and the 3D coordinates of tracked visual features.
The core innovation is the use of the device's gyroscope as a control signal. While camera frames are typically processed at ~10 Hz, the gyroscope provides turn-rate data at ~100 Hz. This high-frequency data is used to "forward-predict" the camera's orientation, significantly constraining the search space for visual feature tracking (performed via Lucas-Kanade). The EKF prediction step uses the gyroscope data and a Wiener velocity model, while the update step uses the reprojection error of visual features to refine the entire state. This joint estimation allows uncertainty in feature locations to directly inform the uncertainty in camera parameters.
Experimental Evaluation
The method was evaluated using both synthetic and empirical data:
- Simulated Data: A Monte Carlo setup with 100 different camera paths around a virtual 3D structure allowed for benchmarking against ground-truth values.
- Empirical Data: Captured using an Apple iPad Pro in three challenging scenarios: "Cards" (underexposed), "Cups" (feature-poor), and "Signs" (overexposed). Ground truth was established via traditional checkerboard calibration.
Results and Discussion
The system demonstrated high accuracy, achieving a Root Mean Square Error (RMSE) of less than 1 pixel for intrinsic parameters in simulations. In real-world tests, the estimated parameters converged reliably to values within a few pixels of the ground truth, even in the underexposed "Cards" dataset where vision-only methods typically fail.
A significant advantage of this method is its insensitivity to initialization. Due to the strong motion model provided by the gyroscope, the system can recover from poor initial parameter guesses. Additionally, the EKF naturally provides variance estimates, allowing the system to monitor convergence and signal when a stable calibration has been reached.
Conclusion
By fusing inertial and visual data, this method provides a robust and practical solution for real-time camera self-calibration on mobile devices. It maintains accuracy in challenging environments and requires minimal user intervention. Future work will explore online estimation of gyroscope bias and the incorporation of rolling-shutter models to further improve performance on modern CMOS sensors.
Summary updated