Learning Adaptive Warping for RealWorld Rolling Shutter Correction

Mingdeng Cao, Zhihang Zhong, Jiahao Wang, Yinqiang Zheng, Yujiu Yang

Abstract

Modern consumer cameras typically utilize CMOS sensors with a rolling shutter (RS) mechanism, which records frames line-by-line. This sequential capture leads to significant geometric distortions, such as skew and "jello" effects, when either the camera or the subject is in motion. This paper addresses the limitations of existing rolling shutter correction (RSC) methods, which often rely on synthetic training data and rigid single-flow warping. We introduce BS-RSC, the first high-quality real-world dataset for RSC, and propose a novel Adaptive Warping Module (AWM). By aggregating features from multiple predicted displacement fields via self-attention, our model achieves state-of-the-art performance on real-world data.

Introduction: The Rolling Shutter Challenge

Rolling shutter distortion is a pervasive issue in mobile photography and drone videography. Because the sensor does not capture the entire scene simultaneously, fast motion results in non-rigid distortions that are difficult to correct.

Input rolling shutter frame exhibiting significant skew and 'jello' artifacts on vertical structures.

Existing deep learning solutions face two primary hurdles:

  1. The Data Gap: Most models are trained on synthetic datasets (e.g., Carla-RS) that simulate distortions mathematically. These models often fail to generalize to the complex noise and motion patterns of real-world sensors.
  2. The Warping Problem: Standard methods estimate a single optical flow field to "unwarp" the image. Minor errors in flow estimation lead to significant blurring or ghosting artifacts in the final output.

The BS-RSC Dataset

To bridge the gap between simulation and reality, the researchers developed the BS-RSC dataset. Using a custom hardware rig equipped with a beam-splitter, they captured perfectly aligned pairs of RS and global shutter (GS) frames. By synchronizing the GS exposure to the middle scanline of the RS frame, they obtained ground-truth undistorted images for real-world scenes. The dataset includes 80 HD video pairs featuring diverse motions, from handheld capture to vehicle-mounted sequences.

Adaptive Warping Module (AWM)

The proposed architecture moves away from the traditional "single-flow" paradigm. Instead of relying on one predicted motion field, the model predicts a "bundle" of multiple displacement fields ($M=9$ in experiments).

Ada-MSA: Adaptive Multi-head Self-Attention

The core innovation is the Adaptive Multi-head Self-Attention (Ada-MSA) mechanism. For every pixel, the model samples features from the multiple predicted locations across three consecutive frames. By using an attention mechanism to aggregate these features, the model can "soften" the impact of inaccurate motion estimation. This flexibility allows the network to look at a neighborhood of potential matches, making it significantly more robust to flow estimation errors than previous methods.

Key Results

The proposed method significantly outperforms existing state-of-the-art (SOTA) models, particularly on real-world benchmarks.

Correction result using the proposed Adaptive Warping Module, showing restored vertical alignment and sharp details.

Quantitative Performance

On the BS-RSC dataset, the model achieved a PSNR of 28.23 dB, a substantial improvement over previous leaders like JCD (24.86 dB) and DeepUnrollNet (23.60 dB).

Qualitative Superiority

Visual evaluations demonstrate that the method produces much sharper edges on vertical structures, such as poles and buildings, while avoiding the "ghosting" artifacts common in previous warping-based approaches. Furthermore, the model exhibits strong generalization capabilities, successfully correcting footage from third-party cameras not seen during training.

Conclusion and Future Work

By combining a high-fidelity real-world dataset with a flexible adaptive warping architecture, this work sets a new benchmark for rolling shutter correction. While the current model is computationally intensive and does not yet address simultaneous motion blur, it provides a robust foundation for future research into real-time, high-quality video restoration on mobile devices.

Summary updated

BibTeX
@inproceedings{cao2022learning,
  author = {Mingdeng Cao and Zhihang Zhong and Jiahao Wang and Yinqiang Zheng and Yujiu Yang},
  title = {{Learning Adaptive Warping for RealWorld Rolling Shutter Correction}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.01726},
}
Figure