Abstract
Estimating the Manhattan frame—a set of three mutually orthogonal vanishing points—is a fundamental task in 3D scene understanding and camera calibration. Traditional methods for uncalibrated images typically require at least four line segments, leading to high computational costs and sensitivity to outliers in RANSAC-based frameworks. This paper presents a robust approach that leverages a gravity prior, commonly available from modern inertial measurement units (IMUs), to simplify the estimation process. By introducing two new minimal solvers that require only two lines, the proposed method significantly reduces the search space, improves accuracy in noisy environments, and avoids common mathematical singularities.
Introduction
In computer vision, vanishing points (VPs) provide critical cues regarding the 3D structure of a scene. Under the "Manhattan world" assumption, where most structural lines align with three orthogonal axes, VPs can be used to determine a camera's orientation and internal parameters, such as focal length. However, when the camera is uncalibrated, the problem becomes significantly more complex.
Standard estimation techniques often rely on four-line minimal solvers. In a RANSAC (Random Sample Consensus) framework, the number of iterations required to find a valid solution increases exponentially with the number of data points per sample. This makes traditional 4-line solvers computationally expensive. This research addresses this challenge by incorporating a gravity prior—a "free" signal from sensors in smartphones, drones, and AR headsets—to constrain the problem and enable more efficient solvers.
Methodology
Minimal Solvers
The core contribution of this work is the derivation of two new minimal solvers that utilize the gravity direction to reduce the required input to just two lines:
- 0-1-1g Solver: This solver utilizes one vertical line and one horizontal line in conjunction with the gravity prior.
- 1-1-0g Solver: This solver uses two horizontal lines. A key advantage of this formulation is its stability; it avoids the mathematical singularities that often cause other solvers to fail when an image is captured from a perfectly upright position.
Optimization and Hybrid Framework
Beyond minimal solvers, the authors introduce a non-minimal solver based on least-squares optimization. This allows for the refinement of initial estimates using an arbitrary number of lines, enhancing final accuracy.
To handle varying levels of sensor reliability, a Hybrid RANSAC framework is employed. This system adaptively selects the most appropriate solver based on the data quality, balancing the strengths of traditional 4-line solvers with the speed and robustness of the new gravity-aided 2-line solvers. This ensures the system remains performant even when the gravity prior is noisy or the scene geometry is challenging.
Experimental Evaluation
The proposed methods were evaluated across three diverse datasets:
- York Urban DB: A benchmark of 102 indoor and outdoor images used to measure baseline vanishing point accuracy.
- ScanNet: A large-scale dataset of indoor environments used to test robustness against real-world noise and clutter.
- LaMAR: A dataset focused on AR and localization, used to demonstrate the utility of these solvers in calculating relative camera rotation.
Key Insights and Results
Efficiency and Robustness
The transition from a 4-line to a 2-line solver results in an order-of-magnitude increase in RANSAC speed. Furthermore, synthetic testing indicates that these new solvers are significantly less sensitive to pixel jitter and image noise compared to traditional methods. By using gravity as a regularizer, the search space for camera orientation is effectively pruned, even when the prior is only accurate within a ~25-degree margin.
Accuracy Gains
The empirical results demonstrate substantial improvements over state-of-the-art baselines:
- Rotation Accuracy: The method achieved a 27% improvement in median rotation error on the York Urban dataset and a 40% improvement on the ScanNet dataset.
- Focal Length Estimation: The solvers provide more reliable recovery of the camera's focal length, a critical component for downstream 3D reconstruction tasks.
- Relative Rotation: In practical applications, such as estimating movement between two camera frames, the gravity-aided VP solvers proved more stable than standard point-matching algorithms, particularly in scenarios involving pure rotation.
Limitations and Future Work
While the method is highly effective, it is constrained by the Manhattan world assumption. In environments lacking orthogonal structures—such as natural landscapes or organic architectural forms—the solver's performance may degrade. Additionally, the current model assumes the camera's principal point is centered in the image, which may not hold for specialized lenses or cropped images.
Future research may involve integrating Bayesian reasoning into the hybrid framework to more dynamically weigh the reliability of the gravity prior against the observed geometric data in the image.
Conclusion
By integrating a gravity prior into the vanishing point estimation pipeline, this work provides a faster, more accurate, and more robust solution for uncalibrated images. The introduction of 2-line minimal solvers and a hybrid RANSAC framework represents a significant step forward for real-time 3D vision on mobile and autonomous devices.
Summary updated