Camera Calibration without Camera Access - A Robust Validation Technique for Extended PnP Methods

Emil Brissman, Per-Erik Forssén, Johan Edstedt · DOI

Abstract

In forensic metrology, estimating camera parameters from images alone—without access to the physical device—is a critical challenge. While Extended Perspective-n-Point (xPnP) methods provide a solution by matching 2D image points to 3D Lidar data, they are prone to overfitting, where low residual errors mask incorrect lens models. This paper presents a robust validation technique that models residual noise components and employs Goodness-of-Fit (GoF) testing. By standardizing residuals through Iteratively Reweighted Least Squares (IRLS) and applying the Kolmogorov-Smirnov (KS) test, the method effectively distinguishes between accurate models and those that merely overfit data noise. Evaluation across synthetic, real-world, and large-scale datasets reveals that many standard camera annotations fail rigorous statistical validation, highlighting the need for distribution-based model assessment.

Introduction

In an ideal calibration scenario, researchers have physical access to a camera to capture known patterns, such as checkerboards. However, in forensic analysis—where an image might come from a years-old crime scene or a discarded device—this is often impossible. To address this, engineers utilize Extended Perspective-n-Point (xPnP) methods. These algorithms estimate a camera’s focal length and lens distortion by matching 2D pixels in an image to 3D points from a Lidar scan of the scene.

A significant risk in this process is the "overfitting trap." A complex lens model may yield a very low residual error (the distance between a projected 3D point and its 2D observation) simply by absorbing the noise in the data, rather than accurately reflecting the camera's optical properties. This paper addresses the critical gap in model validation: determining whether an estimated calibration is truly representative of the lens or merely a statistical fluke.

Methodology

The proposed validation technique shifts the focus from the magnitude of error to the statistical distribution of residuals. The authors treat noise modeling as a robust regression problem through a four-stage process:

1. Error Decomposition

The total residual error is decomposed into three distinct components: 2D detector noise (human or algorithmic error in pixel selection), 3D Lidar noise (measurement uncertainty projected into the image plane), and model noise (the error resulting from an incorrect lens model).

2. Predictive Noise Modeling

Unlike traditional methods that assume uniform noise, this approach models how Lidar noise scales non-linearly across the image. This scaling is influenced by both perspective geometry and the specific lens distortion parameters being tested.

3. Standardization via IRLS

The researchers employ Iteratively Reweighted Least Squares (IRLS) to estimate the variance of the noise. This allows them to "standardize" the residuals. If the camera model is correct, these standardized residuals should theoretically follow a standard normal distribution ($N(0,1)$).

4. Hypothesis Testing

Finally, a Goodness-of-Fit (GoF) test is applied to the standardized residuals. The authors identified the Kolmogorov-Smirnov (KS) test as the most effective tool for this purpose. It successfully rejects models that produce "tailed" or non-Gaussian distributions—a hallmark of a poor fit—while accepting models that accurately describe the camera's geometry.

Experimental Evaluation

The methodology was validated across three diverse environments:

  • Synthetic Data: A custom OpenCV-based simulator was used to render checkerboards with ground-truth distortion and noise, establishing a baseline for model rejection capabilities.
  • Real-World Forensic Scenarios: The team used images from Axis security cameras paired with high-precision 3D point clouds from a Leica RTC360 Lidar scanner.
  • Large-Scale SfM: The method was applied to 1,000 images from the MegaDepth dataset, which contains diverse outdoor scenes with pre-computed camera annotations derived from Structure-from-Motion (SfM) pipelines.

Key Insights and Results

The Fallacy of Low Residuals

A primary finding is that an incorrect model can exhibit smaller residuals than a correct one if it overfits the noise. The research demonstrates that the shape of the error distribution is a far more reliable indicator of model validity than the magnitude of the error. When a model is mismatched (e.g., using a simple radial model for a complex wide-angle lens), the residuals become non-Gaussian, a deviation that is easily detected through standardization.

Statistical Performance

The KS test provided a "Goldilocks" balance for forensic applications. While other tests like Shapiro-Wilk were often too sensitive or too permissive, the KS test effectively rejected underfitted models even when the spatial spread of data points was limited.

The MegaDepth Audit

In a significant application of the tool, the authors audited the MegaDepth dataset. Surprisingly, 70% of the tested images failed the validation test. This suggests that many standard research datasets used in computer vision may contain overfitted or slightly inaccurate camera annotations, potentially impacting the training of depth-estimation models.

Conclusion

This research provides forensic investigators with a robust statistical framework to validate camera calibrations when the physical hardware is unavailable. By moving beyond simple mean-error checks and focusing on the distribution of standardized residuals, the method identifies overfitted models that would otherwise appear accurate.

Future work will focus on converting these local noise estimates into a global "uncertainty score." This would allow investigators to provide a concrete margin of error (e.g., +/- 5cm) for 3D measurements derived from forensic imagery, significantly increasing the evidentiary value of such reconstructions.

Summary updated

BibTeX
@inproceedings{brissman2025camera,
  author = {Emil Brissman and Per-Erik Forssén and Johan Edstedt},
  title = {{Camera Calibration without Camera Access - A Robust Validation Technique for Extended PnP Methods}},
  booktitle = {Scandinavian Conference on Image Analysis},
  year = {2025},
  url = {https://openreview.net/forum?id=YTbD5ozqrJ},
}
Figure