arXiv:2610.32500cs.CVOct 2026

Manuscript Offprint

arXiv:2610.32500

Distortion-Aware Spatiotemporal Learning for Real-Time Wide-Angle Video Rectification

Lang Nie, Yihan Yang, Wenbo Nie, Hongguang Zhu, Yang Wei, Chunyu Lin, Bin Xiao

Abstract

While wide-angle lenses provide an expanded field of view (FoV), they exhibit severe nonlinear distortion near image boundaries, unnaturally stretching people in these regions. Existing methods mostly focus on facial regions, require high computational costs, and lack temporal modeling, resulting in incomplete full-body rectification, impractical real-time deployment, and noticeable inter-frame shakes. To tackle these issues, we propose FastVC, an efficient full-body video rectification framework driven by distortion-aware spatiotemporal learning. Grounded in lens physics, FastVC introduces a distortion-aware thin-plate spline (DA-TPS) module that nonlinearly remaps control points into a peripheral-dense layout, enabling more accurate geometric fitting without additional computational cost. We further develop a dual-level spatiotemporal learning scheme for causal and stable video rectification. At the model level, neighborhood spatiotemporal attention (NST) aggregates local context and selectively fuses historical features with low overhead. At the optimization level, sparse spatiotemporal supervision applies spatial alignment only to anchor frames, decoupling frame-wise accuracy from temporal stability. Besides, we contribute the first benchmark dataset for wide-angle full-body video correction. Extensive experiments show that FastVC achieves state-of-the-art rectification fidelity and visual stability at 57.0 FPS.

Introduction

Wide-angle lenses are now standard in mobile photography for their expanded FoV. However, this comes at the cost of severe perspective distortion, which unnaturally stretches subjects near frame edges and degrades the quality of both photos and videos. Driven by this, there is a growing demand for preserving natural likeness in wide-angle photography.

Early research formulated portrait correction as a mesh-based energy minimization problem. By designing energy functions like facial correction and line preservation, these methods iteratively solve for an optimal mesh deformation. However, they are computationally expensive and lack robustness, as errors in upstream priors (e.g., face detection, line segment extraction) can easily propagate to the rectified result. Recently, learning-based solutions have emerged as the dominant paradigm for portrait correction, transforming it into a task of end-to-end warping field estimation. By learning complex non-linear mappings from distorted inputs to rectified outputs, these data-driven approaches significantly enhance both inference efficiency and correction precision. However, the computational cost of existing state-of-the-art (SoTA) methods still falls short of the real-time requirements for mobile deployment. Beyond this efficiency gap, most models—originally designed for static imagery and facial regions—fail to maintain temporal smoothness across video frames and yield an imbalance between the rectified face and unaltered body regions.

To overcome these limitations, we propose FastVC, an efficient full-body rectification model for wide-angle videos. A key physical characteristic of wide-angle optics is that perspective distortion is spatially non-uniform, escalating drastically from the optical center toward the periphery. Conventional uniform meshes overlook this distortion pattern, either

† Corresponding author wasting model capacity on mild center regions or underfitting severe marginal deformations. To this end, FastVC incorporates a distortion-aware thin-plate spline (DA-TPS) module. By modeling the radial distortion profile, DA-TPS dynamically shifts control points outward to create a peripheral-dense layout. This targeted spatial remapping concentrates the model's capacity precisely where geometric deformation is most severe, achieving high-fidelity full-body rectification without extra computational overhead.

Besides, to enable causal and stable video rectification, we develop a dual-level spatiotemporal learning scheme spanning model design and optimization. At the model level, we introduce neighborhood spatiotemporal attention (NST), which first encodes neighborhood structures within each frame and then aggregates local features from historical frames using a learnable temporal prior. This avoids costly global interactions while retaining useful spatiotemporal context. At the optimization level, reliable ground truth for real-world wide-angle videos is unavailable, and training must instead rely on temporally inconsistent frame-wise pseudo-labels. We revisit existing dense spatiotemporal constraints that inevitably create a conflict between accurately fitting pseudo-labels and enforcing temporal smoothness. Then we reformulate it as sparse spatiotemporal supervision with sparse anchor frames, and propagate rectification cues to the other frames throughout the sequential smoothness. It decouples the optimization of frame-wise accuracy from temporal stability, reducing inter-frame jitter and training costs.

As there is no proper dataset readily available for training, we build the first wide-angle video dataset for full-body correction with diverse smartphones and scenes. We annotate it with per-frame pseudo-labels and use it to validate the effectiveness of our sparse spatiotemporal supervision. Experiments show that FastVC can correct wide-angle videos with high-fidelity visual appearance and temporal stability in real-time. In sum, the contributions center around:

• We present FastVC, a pioneering real-time framework that efficiently corrects full-body distortions in wide-angle videos, departing from conventional face-only correction.

• FastVC contains a distortion-aware TPS and a dual-level spatiotemporal learning scheme with low overhead. The former fits wide-angle distortion via TPS control points, while the latter leverages neighborhood attention and sparse supervision to enforce spatiotemporal coherence.

• We contribute a new video dataset for wide angle full body rectification, serving as a dedicated benchmark to facilitate training and standardized evaluation.

References (31)