CalibAnyView: Beyond Single-View Camera Calibration in the Wild

Boying Li, Cheng Zhang, Weirong Chen, Guyuan Chen, Daniel Cremers, Jianfei Cai, Ian Reid, Hamid RezatofighiarXiv 2026

TL;DR

CalibAnyView is a unified framework for camera calibration that works across the spectrum from single images to sparse multi-view sequences "in the wild." By integrating cross-view attention within a transformer and employing a robust geometric solver, it accurately recovers camera intrinsics and absolute gravity direction for diverse lens models, including highly distorted fisheye optics.

What Problem Does This Paper Address?

Camera calibration—determining a camera's internal parameters (intrinsics) and its orientation relative to the world (gravity)—is the bedrock of 3D computer vision. Traditional methods are often brittle: they require specialized targets like checkerboards, dense view coverage for Structure-from-Motion (SfM), or specific scene structures like straight lines.

Casual imagery from smartphones or drones rarely meets these criteria. While recent deep-learning methods can calibrate from a single image, they struggle with ambiguity and fail to leverage the geometric consistency available in short video clips or burst captures. Conversely, multi-view methods often assume a simple pinhole camera model, failing on the distorted wide-angle lenses common in modern mobile devices. CalibAnyView bridges this gap by creating a unified, robust system for "any-view" calibration in unconstrained environments.

Methods

The authors propose a two-stage framework that combines learned visual priors with rigorous geometric optimization:

  1. The CalibAnyView Network:
    • Feature Extraction: Uses a frozen DINOv2 backbone to extract rich visual features.
  2. Cross-View Transformer: A series of alternating intra-frame and cross-frame attention blocks allows the network to "exchange" geometric evidence between different views of the same camera. This helps resolve ambiguities that a single view might leave open.
  3. Perspective Fields: The network predicts two camera-model-agnostic maps: an Up Field (U) (per-pixel unit vectors pointing toward the zenith) and a Latitude Field (Φ) (the angle between the horizon and the viewing ray).
  4. Multi-view Geometric Optimization:
    • A differentiable Levenberg-Marquardt (LM) solver fuses the predicted fields into shared camera intrinsics and per-view gravity directions.
  5. Handling Distortion: The framework supports the Enhanced Unified Camera Model (EUCM), which can represent everything from pinhole to extreme fisheye lenses.
  6. Two-Stage Initialization: To prevent the solver from getting stuck in local minima (a common problem with wide-angle lenses), the authors developed a novel closed-form initialization specifically for the EUCM model based on the properties of the Latitude Field.
Figure 1: CalibAnyView calibrates cameras from image(s) in the wild. Given a single image or a sparse multi-view sequence, our framework predicts the Up Field (U) and Latitude Field (Φ), from which camera intrinsics, distortion parameters, and gravity direction are recovered by geometric optimization. The bottom row shows a sequential image clip with predicted gravity highlighted by green arrows and lines, while the middle panel presents a zoomed-in view with the gravity predictions.

Datasets

To train a model capable of handling real-world complexity, the authors constructed a massive new dataset:

  • Multi-view Video Dataset: They re-projected high-quality 360° panoramic content (from OpenPano and 360-1M) into virtual cameras with diverse lens distortions and realistic motion trajectories.
  • VLM Filtering: They used a Vision-Language Model (Qwen3-VL) to automatically filter out low-quality clips containing watermarks, stitching artifacts, or occlusions.
  • Evaluation Benchmarks: The model was tested on four challenging, unseen benchmarks: Stanford2D3D, Aria-ADT (RGB and Grayscale), and ScanNet++.
Figure 3: Overview of the dataset construction pipeline. Panoramic content from static OpenPano and in-the-wild 360-1M videos is projected with transferred camera rotations, each paired with an independently sampled virtual camera; the in-the-wild clips are further filtered by a VLM, yielding video sequences with calibration ground truth.

Key Insights and Ideas

  • Consistency is Key: The most significant "aha moment" is that modeling cross-view interactions inside the neural network (via attention) provides a much larger accuracy boost than simply sharing intrinsics in a post-processing step.
  • Model-Agnostic Learning: By predicting "perspective fields" rather than raw camera parameters, the network learns general geometric principles that apply to any camera, whether it's a standard pinhole or a distorted fisheye.
  • Sparse is Enough: Unlike SfM, which often fails with only two or three views, CalibAnyView shows steady improvement as views are added, even in the very sparse regime (N=2 to 10).

Key Results

CalibAnyView sets a new state-of-the-art in both single-view and multi-view settings:

  • Multi-view Superiority: On the ScanNet++ benchmark, CalibAnyView achieved a median vertical Field of View (vFoV) error of just 1.53° with 8 views, significantly outperforming traditional tools like COLMAP (0.53° but with a much higher failure rate) and recent learning-based methods like GeoCalib (18.90° for the pinhole variant).
  • Robustness to Distortion: As shown in qualitative results, the model remains faithful to the ground truth even as lens distortion increases, whereas previous methods like GeoCalib tend to "drift" and flatten the geometry.
  • Scaling with Views: The error drops sharply as the number of views increases, proving the effectiveness of the cross-view attention mechanism.
Figure 2: Calibration error versus the number of input views. vFoV error on the test split of our dataset, with each batch fed to the network jointly (Multi-views) or view by view (Single-view), and the solver either sharing the intrinsics across the batch or not. Aggregating views inside the network yields a larger gain than sharing intrinsics in the solver alone, as done in GeoCalib (Veicht et al. 2024).
Figure 4: Qualitative perspective field results on Stan- ford2D3D. Rows span the benchmark’s pinhole, radial, and EUCM cameras. As distortion grows, GeoCalib drifts from the ground truth, whereas ours stays faithful across all lens types.

Limitations and Future Work

  • Fixed Principal Point: The current model assumes the optical center is at the exact middle of the image, which isn't always true for cropped or shifted images.
  • No Zoom Support: It assumes intrinsics are shared across the sequence, meaning it cannot currently handle a camera zooming in or out during a clip.
  • Computational Scaling: The quadratic cost of the global attention mechanism makes it difficult to scale the network to very long video sequences (e.g., hundreds of frames).
  • Future Directions: The authors suggest exploring ray-based parameterizations to relax the principal point assumption and investigating token pruning to improve efficiency for longer sequences.

Summary updated

BibTeX
@misc{li2026calibanyview,
  author = {Boying Li and Cheng Zhang and Weirong Chen and Guyuan Chen and Daniel Cremers and Jianfei Cai and Ian Reid and Hamid Rezatofighi},
  title = {{CalibAnyView: Beyond Single-View Camera Calibration in the Wild}},
  year = {2026},
  eprint = {2605.14615},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.14615},
}
Figure