r/computervision • u/kocurvik • 5h ago
Research Publication LiteCalib: Camera Calibration from Single Image
Hi we just released LiteCalib, a fast single-image camera calibration method. You give it one photo and it returns the focal length and lens distortion. Similarly to AnyCalib, it works with pinhole, radial, division, UCM/EUCM, Kannala-Brandt and other radially symmetric models. The network outputs an intermediate representation and you can choose which camera model you fit to it.
This is useful if you have distorted images (e.g. from action camera) and want to run a pipeline that was trained on pinhole images such as 3D reconstruction methods such as VGGT, Pi3, DepthAnythingV3, MapAnything, monocular depth estimators such as MoGe, UniDepth, SurGe or even classical pipelines like COLMAP. It can also estimate focal lengths for individual images if you need to use crowdsourced or user-provided images.
This is not new as previous methods such as AnyCalib or GeoCalib have similar capabilities. However, our network was trained using much broader distribution making it much more accurate than previous SOTA. We have also made the full camera calibartion faster by predicting only a sparse representation instead of dense one and making parts of the network much lighter. Our whole network with the camera model fit runs in 9.7 ms on A100 compared to 50+ ms for AnyCalib. We have also trained ViT-S and ViT-B variants when you are even more compute constrained.
Try it:
pip install litecalib
import litecalib
model = litecalib.load("litecalib_vitl")
calib = model.calibrate("photo.jpg", cam_id="division:1")
calib.K #pinhole intrinsics
undistorted = calib.undistort("photo.jpg") #undistorted image
- More info on our project page: https://kocurvik.github.io/litecalib


