Roll2Depth: Zero-Shot Metric Depth Estimation Exploiting Camera's Rolling Shutter Effect

Rui Xiao, Jinming Xu, Jinsong HanNeurIPS 2026

TL;DR

Have you ever taken a photo under fluorescent lights and noticed weird dark stripes across the image? Instead of treating that rolling shutter artifact as a nuisance, Roll2Depth turns it into a physical yardstick. By pairing a standard smartphone camera with a cheap flickering LED, this system embeds real-world distance cues directly into a single photo—allowing AI models to measure exact metric depth in brand-new environments without needing to know anything about the camera’s lens.

What Problem Does This Paper Address?

Look at a single 2D photo with one eye closed: is that a real parked car 20 meters away, or a matchbox toy 20 centimeters from the lens? This scale ambiguity is the central headache of monocular metric depth estimation—predicting exact, real-world distances (in meters) for every pixel in a single RGB image.

Modern neural networks have gotten astonishingly good at predicting relative (or affine-invariant) depth: knowing that the coffee mug is in front of the laptop, which is in front of the wall. However, turning that relative layout into metric measurements in unseen, "zero-shot" environments usually requires knowing the camera's intrinsic parameters (like focal length). In the wild—think crowd-sourced videos, consumer drones, or uncalibrated robot vacuums—camera metadata is often noisy, incomplete, or completely missing. Without it, passive depth models lose their sense of scale.

Methods

Instead of relying on metadata or expensive hardware like LiDAR, the authors turn to basic physics. Almost every commercial CMOS camera uses a rolling shutter, exposing the sensor sequentially row by row rather than all at once. When you illuminate a room with a high-frequency flickering light (imperceptible to human eyes), some sensor rows catch the light "on" while others catch it "off," painting alternating bright and dark horizontal stripes across the image.

Figure 2: Generation of metric depth priors from the rolling shutter effect. (a) CMOS rolling shutter exposes the image row by row, acting as a sliding-window sampler. (b) The interaction between rolling shutter and high-frequency flickering illumination produces spatially periodic stripe-like patterns Iroll, which are superimposed onto the base image I0 to form the observed image I = I0 + Iroll. (c) Detailed lighting model: the RS pattern is depth-attenuated by d and undergoes a Lambertian reflection process, producing flicker-induced shading Sroll. This is modulated by scene albedo A and combined with ambient shading S0, resulting in the final image: I = A(S0 + Sroll).

Because light intensity drops off with the square of distance (the inverse-square law), the brightness contrast of these stripes directly encodes how far away objects are! Roll2Depth extracts and uses this physical ruler in a three-stage pipeline:

  1. Physical Cue Extraction (New): A progressive residual network disentangles the striped input image into a clean ambient image and the isolated stripe pattern. Notably, it uses a 1D Fourier transform loss along the vertical axis to lock onto the row-wise periodicity of the stripes. Using off-the-shelf estimators for surface normals and albedo (surface color) alongside a calibrated light-power ratio, it normalizes the stripes into a pure, inverse-square depth prior.
  2. Relative Depth Estimation (Standard): The clean image is fed into Marigold, a frozen, state-of-the-art model that predicts an accurate relative depth map (up to an unknown global scale and shift).
  3. Affine-to-Metric Transformation (New): A Vision Transformer (initialized from DINOv2) looks at both the relative depth map and the normalized rolling shutter cue. Two specialized "BinHeads" then use probability-weighted bins to stably regress the exact global scale and shift scalars needed to snap the relative map into true metric meters.
Figure 3: Figure depicts overview of Roll2Depth’s network architecture. Roll2Depth begins with a physical cue extraction module that decouples the input image into the rolling shutter-induced component Iroll and the clean image I0. The shading cue Sroll is then normalized using the relative light intensity P

Datasets

  • Training: Models are trained on NYU Depth v2 (indoor RGB-D scenes), using an analytical lighting model to synthetically inject realistic rolling shutter stripes.
  • Synthetic Zero-Shot Evaluation: Tested on four unseen indoor benchmarks—SUN RGB-D, iBims-1, DIODE Indoor, and HyperSim—also augmented with synthetic stripes.
  • New Real-World Dataset: Because smartphone apps restrict high-frequency flashlight control, the authors built a custom rig pairing a smartphone camera (1/2000s shutter), an Intel RealSense D455 stereo depth camera (for ground truth), and an Arduino-driven 5W LED flickering at 1 kHz. They collected 647 real-world indoor triplets (striped RGB, clean RGB, and ground-truth depth).
Figure 4: Figure depicts the collection setup for depth dataset with real rolling shutter effects. Left: monocular RGB images are captured using a smartphone, and ground-truth depth is provided by an Intel RealSense D455 stereo camera. We calibrate the relative pose between the two cameras and remap the depth map to the smartphone’s viewpoint. Right: due to the smartphone’s limited flashlight control, we design a custom active lighting system using a 5W LED driven by an Arduino Uno. The LED is positioned near the phone’s flash to simulate a flash-aligned flickering light source for generating rolling shutter stripe patterns.

Key Insights and Ideas

  • Single-shot temporal demultiplexing: Measuring how a scene looks with and without active lighting normally requires taking two consecutive photos—a nightmare if anything moves. A rolling shutter captures both lighting states simultaneously across adjacent pixel rows in a single exposure.
  • Zero synchronization required: Unlike Time-of-Flight (ToF) sensors that require nanosecond-level clock synchronization between the light emitter and the camera, Roll2Depth needs no sync wire between the LED and the sensor.
  • Don't solve physics from scratch—anchor the AI: Purely analytical inverse-square math breaks down in messy real-world rooms. Conversely, pure AI guesses global scale poorly. Using the physical cue strictly to find the two numbers (scale and shift) needed to anchor a strong relative depth model gives you the best of both worlds.

Key Results

Across all four synthetic zero-shot benchmarks, Roll2Depth ranks first against state-of-the-art passive baselines (including ZoeDepth, Metric3D, UniDepth, MoGe-2, and DepthPro), even when baselines are given clean, unstriped images:

  • On iBims-1, Roll2Depth reaches 92.1% $\delta_1$ accuracy (pixels within 25% of true depth) and 0.406m RMSE, comfortably ahead of DepthPro (83.7% $\delta_1$, 0.510m RMSE).
  • On DIODE Indoor, it lowers RMSE to 0.593m compared to DepthPro's 0.738m and UniDepth-V's 0.760m.
  • On the real-world smartphone dataset, Roll2Depth generalizes cleanly from synthetic training to physical hardware. In Scene 2, it hits 76.9% $\delta_1$ accuracy (vs. second-best UniDepth-C at 61.8%) and the lowest absolute relative error (0.407). Ablation studies confirm that removing either the cue-extraction network or the bin-based regression causes sharp accuracy drops across all datasets.

Limitations and Future Work

  • Indoor and range limits: Because light attenuates rapidly with distance ($1/d^2$) and gets washed out by bright sunlight, Roll2Depth is currently validated only indoors. Taking it outdoors (e.g., modulating car headlights) will require modeling directional beams and testing effective sensing ranges.
  • Shiny surfaces and external dependencies: The physics model assumes Lambertian (matte) surfaces and relies on external estimators for surface normals and albedo, plus known light-power ratios. Specular highlights (mirrors, glossy floors) or weak signals can corrupt the extracted cue.
  • Next steps: The authors suggest adding a per-pixel uncertainty head to automatically down-weight shiny, noisy, or poorly lit regions when the ViT calculates global scale and shift.

Summary updated

Abstract

Accurate monocular metric depth estimation, i.e., predicting absolute depth values, is critical for applications such as robotics and augmented reality. However, existing methods often suffer from poor transferability to in-the-wild scenarios due to the lack of knowledge of camera intrinsics. In this paper, we propose a novel framework, Roll2Depth, to recover metric scale in unseen environments with unknown camera parameters. Our key idea is to leverage scene-independent physical cues induced by the rolling shutter effect of standard CMOS sensors, together with an active light source, as metric priors. When a scene is illuminated by a flickering light, the rolling shutter produces distinctive stripe-like spatial patterns, revealing the scene's shading with and without the flickering light source. This contrast encodes absolute depth cues that can be exploited for metric estimation. Roll2Depth isolates these patterns as metric priors to guide affine-invariant models on metric depth estimation in a zero-shot setting. Our evaluations on standard benchmark datasets, as well as a real-world dataset collected using commercial smartphones and our prototype system, demonstrate that Roll2Depth, as a low-cost active solution, outperforms state-of-the-art passive baselines in zero-shot settings. These results highlight its potential impact in applications such as indoor robotics and embodied perception, where affordable and effective active sensing would be valuable.
BibTeX
@inproceedings{xiao2026roll,
  author = {Rui Xiao and Jinming Xu and Jinsong Han},
  title = {{Roll2Depth: Zero-Shot Metric Depth Estimation Exploiting Camera's Rolling Shutter Effect}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=OsxTtWnTJW},
}
Figure