Manuscript Offprint
arXiv:2610.32500Distortion-Aware Spatiotemporal Learning for Real-Time Wide-Angle Video Rectification
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.
Video Portrait Correction: Extending image correction to video scenarios yields a critical challenge of temporal consistency. Lai et al. (Lai et al. 2021) pioneered this field by extending the dual-projection framework with spatiotemporal smoothing constraints, addressing facial trajectory fluctuations and background jumps. However, such optimization-based schemes are too slow for real-time mobile processing. To eliminate the need for laborious video labels, VideoPC (Nie et al. 2026) introduced an unsupervised spatiotemporal adaptation framework that leverages pre-trained image correction priors as pseudo-labels to guide video rectification via spatiotemporal adaptation. Despite these efforts, current video-based solutions remain computationally intensive and only focus on facial regions.
Method
Given a sequence of wide-angle video frames , our goal is to generate the rectified frames with temporal smoothness.
Overview
To enable causal real-time processing, FastVC avoids high-latency full-video inputs by adopting a sliding-window mechanism. Specifically, given historical frames and the current frame , the model predicts the rectified current frame in an online manner.
As illustrated in Fig. 2, the current wide-angle frame and historical frames are first processed by a shared backbone to produce a sequence of latent feature maps . To achieve spatiotemporal feature aggregation at the model level, these maps enter the neighborhood spatiotemporal (NST) attention module, a lightweight aggregator that captures intra-frame local structures and inter-frame temporal dependencies within a confined neighborhood to yield a context-enriched representation . Then is passed through a regression head to estimate a distortion-aware

Figure 2: The overall pipeline of our FastVC network, which consists of feature extraction, feature aggregation, and rectification field estimation. The NST Attention aggregates sequential feature maps into the current frame from spatial to temporal.
TPS transformation. This transformation can be converted as a pixel-wise warping field , enabling the rectified frame to be rendered via resampling .
By sliding the window across Z consecutive steps, the model generates a sequence of rectified outputs . At the optimization level, we introduce a sparse spatiotemporal supervision strategy (Fig. 4) to effectively relieves the conflict of spatial accuracy and temporal smoothness with sparse anchor frames.
Distortion-Aware TPS Transformation
Given the context-enriched feature from the NST module, we employ a lightweight regression head to predict dynamic control point offsets. Existing TPS-based methods (Nie et al. 2024, 2023b) typically position control points on a uniform layout (Fig. 3a). However, optical distortion in wide-angle lenses follows a non-linear radial profile, which is minimal at the center but becomes severe toward the periphery. Uniform layout inherently wastes capacity on the near-rectilinear center while undersampling heavily distorted boundaries.
To resolve this representation bottleneck, we propose a distortion-aware, non-equidistant control point layout (DA-TPS) that redistributes modeling capacity to align with physical lens priors. Given a uniform coordinate with normalized radial distance relative to the image center, we remap via a non-linear concave function:
where controls the radial density gradient. Since is strictly monotonically increasing and concave ( ), it enforces a sparse sampling near the stable center and dense sampling toward the boundaries.
After converting back to Cartesian coordinates, we perform spatial layout optimization. Specifically, redundant points in the flat center are pruned to eliminate overparameterization, while equidistant anchor points are appended along the perimeter as topological constraints to safeguard rectangular boundary integrity. As illustrated in Fig. 3b, this yields a deterministic, sparse set of active control points . This layout concentrates the transformation capacity precisely where geometric distortion is most severe.

Figure 3: (a) Uniform layout. (b) Distortion-aware layout.
Given the refined point set and predicted displacement vectors, we formulate the TPS interpolation . The pixel-wise warping field for any target coordinate is derived as:
where C, A, and are standard TPS coefficients solved via closed-form linear systems (Kent and Mardia 1994), and denotes the radial basis function.
By reallocating control points rather than adding points, DA-TPS substantially enhances geometric representation. Spatially, concentrating capacity at distorted peripheries introduces a physical inductive bias for high-fidelity restoration. Temporally, dense boundary points form a smooth spatial manifold that damps grid fluctuations, inherently favoring inter-frame consistency. See supplementary material for full algorithmic steps, derivations, and ablation on N.
Dual-Level Spatiotemporal Learning Scheme
To enable causal and stable video rectification, we propose a dual-level learning scheme. At the model level, it performs local spatiotemporal feature aggregation; at the optimization level, it applies sparse supervision to decouple spatial and temporal constraints.
Neighborhood Spatiotemporal Attention: At the model level, the Neighborhood Spatiotemporal Attention (NST) es-sentially serves as a feature fusion mechanism that, conditioned on the current frame , selectively incorporates relevant information from historical frames to produce a spatiotemporally enhanced representation . To achieve high-fidelity video rectification with minimal overhead, this is realized via a spatial-first, temporal-next hierarchical aggregation, which strictly restricts attention operations to a local spatiotemporal neighborhood. As depicted in Fig. 2, it operates through two sequential steps:
Neighborhood Intra-Frame Attention: Denoting X as an arbitrary feature map from , it is first partitioned into patches and augmented with positional embeddings to obtain , where M and C denote the sequence length and embedding dimension. We then project into query , key , and value embeddings. To implement the localized attention mechanism, we define a neighborhood window for each patch i based on its spatial coordinates:
where covers a local region centered at patch , and represents the scaling factor. This localized restriction ensures that each query only interacts with its spatially adjacent patches, which reduces the computational complexity from to .
Neighborhood Inter-Frame Fusion: After carrying out neighborhood intra-frame attention for every input frame, we enrich each patch by concatenating its features with those of its spatial neighbors within . This concatenated representation is projected back to dimension , explicitly assembling local context into each patch to facilitate robust cross-frame matching. These feature maps are then projected into embeddings (). To aggregate temporal context under the guidance of the current frame, we treat the current frame's query as the reference and attend to corresponding keys/values from historical frames at the same spatial location. Formally, the temporal fusion result for patch at frame is formulated as:
Considering the varying importance of frames at different temporal distances, we incorporate a Gaussian weight prior in Eq. 4. To adapt this prior to real video samples, its variance is set as a learnable parameter determining how quickly temporal influence diminishes:
This spatial-to-temporal factorization effectively improves correction accuracy through aggregating spatiotemporal features at the feature level while maintaining a lightweight computational overhead for real-time video applications.
Sparse Spatiotemporal Supervision: At the optimization level, we address the intrinsic trade-off between per-frame

Figure 4: The sparse spatiotemporal supervision strategy.
geometric accuracy and inter-frame motion stability. An intuitive paradigm for video rectification is dense supervision, applying spatial losses and temporal constraints simultaneously to all Z frames in a sliding window:
However, we argue that such dense constraint is inherently sub-optimal. Because pseudo-ground-truth labels are synthesized independently per frame (Shih, Lai, and Liang 2019), they inevitably contain subtle spatial misalignment noise. Overfitting these independent spatial targets on every frame (i.e., Eq. 6) forces the network to memorize per-frame artifacts, transferring spatial noise into temporal flickering while incurring heavy training overhead.
Sparse Supervision Paradigm: To break this dilemma, we propose a sparse supervision mechanism that decouples spatial fidelity from temporal smoothness. As illustrated in Fig. 4, explicit spatial supervision is restricted exclusively to sparse boundary keyframes, while intermediate frames are optimized solely via temporal motion regularization:
where and denote the anchor frame indices. By liberating intermediate frames from fitting noisy pseudo-labels, guides the network to dynamically infer a minimal-energy, trajectory-smooth transition bridging the anchor keyframes.
Temporal Smoothness Term: Specifically, the temporal motion smoothness term regulates inter-frame coherence by penalizing trajectory abruptness in predicted correction fields. Let denote the inter-frame optical flow; the spatial position increment of the predicted flow between adjacent frames is derived as:
where is the backward warping operator. Rather than calculating long-range paths, we encourage consecutive frame-wise displacement increments across the sequence to

Figure 5: Overview of the proposed wide-angle full-body video dataset. Left: Representative samples across diverse scenes, subjects, and brands, with insets showing the corresponding ground-truth rectified frames. Right: Hierarchical distribution of the dataset, categorized by scene, number of subjects and smartphone brand.
evolve smoothly:
Spatial Rectification Term: For the sparse anchor keyframes , the spatial loss ensures precise structural alignment. To focus optimization on human body regions, a binary body mask is integrated into a multi-scale spatial loss formulation:
where balance the individual components. The pixel-level flow loss minimizes coordinate mapping errors:
The gradient-level flow loss preserves geometric edge structures along both horizontal and vertical axes via Sobel operators and :
(12)
Finally, the feature-level appearance loss maintains semantic structural consistency through a pre-trained VGG feature extractor :
Dataset and Metrics
Dataset Construction
Due to the lack of dedicated benchmarks for wide-angle full-body video portrait rectification, we construct a comprehensive dataset containing 32 1080P clips at 30fps, totaling 17,029 frames with durations of 9–35s. Captured with five mainstream smartphone brands (e.g., iPhone and Samsung) across diverse real-world scenarios, the dataset is split into 22 training sequences (11,814 frames) and 10 test sequences (5,215 frames). To generate full-body correction labels, we adopt the image-level rectification (Shih, Lai, and Liang 2019) by expanding the RoI from faces to full bodies, which uses YOLO11m-seg instance masks as spatial weight guidance and metric references. Each annotation is a quadruple: wide-angle image, rectified GT, flow GT, and full-body mask.
| Dataset | Type | Target | GT | Training/Total Frames |
|---|---|---|---|---|
| Tan et al. | Image | Face | Image Label | 5.2k/5.3k |
| VideoPC | Video | Face | No Label | 7.1k/44k |
| Ours | Video | Full-Body | Image Label | 12k/17k |
Table 1: Comparison of wide-angle portrait datasets.
As summarized in Table 1, existing datasets are restricted to facial rectification. Besides, Tan et al. (Tan et al. 2021) provide only 5.3k static images, whereas VideoPC (Nie et al. 2026) uses merely 7.1k of its 44k unlabeled frames for temporal fine-tuning. In contrast, our wide-angle full-body video rectification dataset contains 17k frames with image-level full-body labels. Together, its geometric diversity, temporal coverage, and frame-level annotations support robust model training with sparse spatiotemporal supervision while reducing reliance on temporally inconsistent dense labels.
Evaluation Metric
Existing rectification studies predominantly focus on images and are commonly evaluated using image-level metrics such as LineAcc and ShapeAcc (Tan et al. 2021). However, these metrics are ill-suited to our wide-angle full-body video setting. First, they assess frames independently and therefore cannot measure temporal consistency. Second, they require spatially aligned static references and are sensitive to small positional deviations introduced by temporal smoothing, even when the outputs remain perceptually stable. Moreover, ShapeAcc considers only facial landmarks and cannot adequately evaluate full-body deformation.
Given the lack of dedicated metrics for wide-angle video rectification, we introduce the average difference of relative aspect ratio (Avg. Diff.) for both face and body regions:
where is the number of frames, is the person count
| Method | Reference | Face AR (%)↓ | Body AR (%)↓ | Stability Score ↑ | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Avg. Diff. | Avg. Diff. | Avg. | Trans. | Rot. | ||||||
| DualPriors | ECCV2024 | 13.73 | 84.59 | 67.39 | 6.18 | 47.74 | 18.99 | 0.8137 | 0.7878 | 0.8396 |
| CoupledTPS | TPAMI2024 | 9.07 | 75.30 | 41.29 | 5.59 | 40.57 | 16.97 | 0.8352 | 0.8058 | 0.8646 |
| CoupledTPS* | TPAMI2024 | 3.23 | 21.06 | 4.41 | 2.42 | 13.87 | 2.76 | 0.8351 | 0.7860 | 0.8842 |
| MOWA | TPAMI2025 | 9.08 | 74.92 | 37.59 | 5.87 | 42.93 | 18.66 | 0.8225 | 0.7908 | 0.8542 |
| VideoPC | AAAI2026 | 9.66 | 75.15 | 48.84 | 5.56 | 50.60 | 11.06 | 0.7996 | 0.7423 | 0.8569 |
| VideoPC* | AAAI2026 | 4.38 | 38.93 | 3.78 | 3.16 | 18.91 | 4.67 | 0.8447 | 0.8080 | 0.8814 |
| FastVC (Ours) | - | 3.04 | 17.36 | 2.63 | 2.35 | 13.09 | 2.67 | 0.8542 | 0.8265 | 0.8818 |
Table 2: Quantitative comparison with state-of-the-art methods on spatial rectification quality and temporal stability. * indicates that this model was retrained in the proposed dataset.
in frame , and and denote the aspect ratios (width/height) of the -th person in the predicted and ground-truth frames, respectively. By measuring the aspect ratio variations of these RoIs instead of absolute coordinates, this metric remains invariant to minor spatial shifts. We also report the percentage of frames where the error exceeds and (, ) to evaluate overall robustness.
Furthermore, to evaluate the stability of the rectified video, we employ the commonly used video stability metrics Stability Score (Choi and Kweon 2020) in the field of video stabilization (Liu et al. 2013), which calculates the inter-frame smoothness of the rectified sequence. These metrics collectively ensure that the model not only restores natural human proportions but also maintains the fluid visual experience required for high-quality video processing applications.
Experiment
Implementation Details
We implement FastVC in PyTorch and conduct training on a single NVIDIA RTX 5090 GPU for 120 epochs with a batch size of 7. Video frames are resized to . We set the TPS control points to () and adopt the Adam optimizer with an initial learning rate of . Loss weights are set as , , , and . Optical flow for temporal regularization is estimated via a pre-trained RAFT. Full hyper-parameter configurations are provided in the supplementary material.
Comparison Result
Rectification Performance: As quantitatively summarized in Table 2, FastVC consistently outperforms both state-of-the-art image-based and video-based models. Specifically, FastVC achieves the lowest distortion errors on both face (3.04% Avg. Diff.) and body (2.35% Avg. Diff.) regions. The notable reduction in extreme error (from 4.41% to 2.63% on faces) demonstrates its superior capability in mitigating severe wide-angle perspective distortions. Qualitative results across diverse smartphone brands in Fig. 6 further highlight our simultaneous face-body restoration fidelity.
In terms of video consistency, FastVC achieves a leading translation stability score (0.8265), effectively preventing the high-frequency temporal flickering commonly suffered by image-based baselines (e.g., MOWA (Liao et al. 2025), CoupledTPS (Nie et al. 2024)).
| Method | Correction ↑ | Stability ↑ | Background Fidelity ↑ |
|---|---|---|---|
| CoupledTPS* | 10.59% | 1.76% | 2.35% |
| VideoPC* | 2.94% | 43.53% | 35.88% |
| FastVC (Ours) | 86.47% | 54.71% | 61.77% |
Table 3: Quantitative comparison of the user study.
User Study: To assess human visual preference, we conduct a pairwise blind user study with 20 participants across 10 testing videos (5 brands), each segmented into one-second clips(170 clips in total). As shown in Table 3, FastVC achieves overwhelming dominance in Correction Quality (86.47%), Stability (54.71%), and Background Fidelity (61.77%), reinforcing our quantitative findings.
| Type | Method | Params (M) | GFLOPs | FPS |
|---|---|---|---|---|
| Image Model | DualPriors | 400.0 | 654.96 | 2.2 |
| MOWA | 55.6 | 59.99 | 16.4 | |
| CoupledTPS | 30.6 | 21.13 | 107.9 | |
| Video Model | VideoPC | 80.0 | 4515.16 | 2.88 |
| FastVC (Ours) | 8.7 | 3.64 | 57.0 |
Table 4: Efficiency comparison on a single RTX 5090 GPU.
Efficiency Comparison: Table 4 evaluates computational efficiency on a single RTX 5090 GPU. Owing to our lightweight design, FastVC requires only 8.7M parameters and 3.64 GFLOPs, substantially reducing computational complexity compared to heavy counterparts like VideoPC (4515.16 GFLOPs). Although CoupledTPS achieves higher FPS via vanilla hardware-optimized convolutions, FastVC comfortably operates at 57.0 FPS, well above the real-time requirement (> 30 FPS) while offering superior rectification accuracy and temporal stability.
Cross-Device Generalization: To evaluate generalizability, we test FastVC with three unseen brands (OPPO, vivo, and Xiaomi) absent from our dataset. As shown in Fig. 7, without fine-tuning, FastVC consistently restores natural facial and body proportions, as well as maintains background straight lines. This substantiates that the network captures intrinsic distortion priors, not sensor-specific overfitting, and we refer readers to the supplementary material for full videos.
Ablation Study
Training Strategy: Table 5 evaluates different supervision modes and sequence lengths (Z). First, training with the
Input
CoupledTPS
Ours

Figure 6: Qualitative comparison across various mobile device brands, demonstrating our superior full-body rectification quality.
| Supervision Mode | Output Frames During Training (Z) | Face AR (%)↓ | Body AR (%)↓ | Stability Score ↑ | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Avg. Diff. | Avg. Diff. | Avg. | Trans. | Rot. | ||||||
| Spatial Term (Eq. 10) | 3 | 2.98 | 19.14 | 1.29 | 2.36 | 13.69 | 2.53 | 0.8483 | 0.8189 | 0.8777 |
| Temporal Term (Eq. 9) | 3 | Training Collapse | ||||||||
| Dense Spatiotemporal (Eq. 6) | 3 | 3.84 | 22.26 | 7.52 | 2.58 | 16.25 | 3.05 | 0.8555 | 0.8226 | 0.8883 |
| Sparse Spatiotemporal (Eq. 7) | 3 | 3.04 | 17.36 | 2.63 | 2.35 | 13.09 | 2.67 | 0.8542 | 0.8265 | 0.8818 |
| Sparse Spatiotemporal (Eq. 7) | 5 | 3.54 | 22.41 | 3.20 | 2.44 | 13.42 | 2.51 | 0.8542 | 0.8224 | 0.8859 |
| Sparse Spatiotemporal (Eq. 7) | 7 | 3.39 | 21.39 | 2.47 | 2.38 | 13.50 | 2.59 | 0.8375 | 0.7912 | 0.8838 |
Table 5: Ablation study of training strategies, including supervision mode and output frames during training.

OPPO
VIVO
Xiaomi
Ours
Ours
Ours
Figure 7: Qualitative results on unseen camera devices.
temporal term alone leads to severe training collapse due to the absence of geometric spatial anchor constraints. Second, while dense spatiotemporal supervision achieves high raw stability, it exhibits severely degraded spatial fidelity (3.84% Face AR and 7.52% ) because forcing every frame to overfit independent noisy pseudo-labels introduces spatial-temporal interference. In contrast, our sparse supervision restricts spatial constraints to anchor keyframes, relieving intermediate frames from label noise while maintaining comparable stability (0.8542 vs. 0.8555). Lastly, setting Z = 3 yields the best trade-off, whereas larger window sizes (Z = 5, 7) introduce error accumulation over long temporal spans.
Model Architecture: We evaluate our key architectural components in Table 6. Under the single-frame setup (Rows 1–2), integrating DA-TPS consistently boosts all metrics, notably reducing Face AR from 3.61% to 2.74%. This confirms that aligning control point density with physical lens priors enhances geometric expressiveness without extra parameters.
Expanding to 3 frames, a fundamental tension arises between spatial accuracy and temporal consistency. Naive tem-
| Input Frames | NST | DA-TPS | Face AR (%)↓ Avg. Diff. | Body AR (%)↓ Avg. Diff. | Stability Score ↑ Avg. |
|---|---|---|---|---|---|
| 1 | 3.61 | 2.45 | 0.8272 | ||
| 1 | ✓ | 2.74 | 2.41 | 0.8426 | |
| 3 | 3.20 | 2.67 | 0.8345 | ||
| 3 | ✓ | 3.30 | 2.63 | 0.8529 | |
| 3 | ✓ | 3.17 | 2.33 | 0.8378 | |
| 3 | ✓ | ✓ | 3.04 | 2.35 | 0.8542 |
Table 6: Ablation study on model architecture. Default grid uses 180 uniform control points when DA-TPS is disabled. Full metrics are provided in the supplementary material.
poral concatenation introduces feature misalignment that degrades geometric accuracy, worsening Body AR from 2.45% to 2.67%. Equipping the network with NST (Row 5) mitigates this bottleneck. NST leverages its spatiotemporal aggregation capability to boost spatial performance, improving Body AR to 2.33% and Face AR to 3.17% over Row 3 while maintaining a 0.8378 temporal stability. Fully integrating NST and DA-TPS (Row 6) yields the optimal overall balance, achieving the lowest Face AR (3.04%) and highest Stability Score (0.8542). This demonstrates that NST and DA-TPS operate orthogonally and synergistically, effectively reconciling frame-wise accuracy with inter-frame stability.
Conclusion
In this paper, we proposed FastVC for causal and real-time wide-angle video portrait rectification. Specifically, FastVC introduces a distortion-aware TPS (DA-TPS) module for efficient geometric modeling by aligning non-uniform control points with physical lens priors. Furthermore, we developed a dual-level spatiotemporal learning scheme that integrates neighborhood spatiotemporal (NST) attention at the model level with sparse supervision at the optimization level. Together with a specialized full-body video dataset, these synergistic components empower FastVC to effectively resolve complex lens distortions while maintaining high temporal stability. Extensive experiments demonstrate that FastVC achieves state-of-the-art performance while maintaining high computational efficiency for mobile deployment.
References
Arnab, A.; Dehghani, M.; Heigold, G.; Sun, C.; Lučić, M.; and Schmid, C. 2021. Vivit: A video vision transformer. In Proceedings of the IEEE/CVF international conference on computer vision, 6836–6846.
Carroll, R.; Agrawala, M.; and Agarwala, A. 2009. Optimizing content-preserving projections for wide-angle images. ACM Trans. Graph., 28(3): 43.
Choi, J.; and Kweon, I. S. 2020. Deep Iterative Frame Interpolation for Full-Frame Video Stabilization. ACM Transactions on Graphics (TOG), 39(1): 1–13.
Darmon, F.; Bascle, B.; Devaux, J.-C.; Monasse, P.; and Aubry, M. 2022. Improving neural implicit surfaces geometry with patch warping. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 6260–6269.
Fan, J.; Zhang, J.; Maybank, S. J.; and Tao, D. 2022. Wide-angle image rectification: A survey. International Journal of Computer Vision, 130(3): 747–776.
Guo, M.; Hou, J.; Jin, J.; Liu, H.; Zeng, H.; and Lu, J. 2023. Content-aware warping for view synthesis. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(8): 9486–9503.
Hassani, A.; Walton, S.; Li, J.; Li, S.; and Shi, H. 2023. Neighborhood attention transformer. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 6185–6194.
Kent, J.; and Mardia, K. 1994. The link between kriging and thin-plate splines. Probability, statistics and optimization, 326–339.
Lai, W.-S.; Shih, Y.; Liang, C.-K.; and Yang, M.-H. 2021. Correcting face distortion in wide-angle videos. IEEE Transactions on Image Processing, 31: 366–378.
Liao, K.; Yue, Z.; Wu, Z.; and Loy, C. C. 2025. Mowa: Multiple-in-one image warping model. IEEE Transactions on Pattern Analysis and Machine Intelligence.
Liu, S.; Ye, N.; Wang, C.; Zhang, J.; Jia, L.; Luo, K.; Wang, J.; and Sun, J. 2022. Content-aware unsupervised deep homography estimation and its extensions. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(3): 2849–2863.
Liu, S.; Yuan, L.; Tan, P.; and Sun, J. 2013. Bundled camera paths for video stabilization. ACM transactions on graphics (TOG), 32(4): 1–10.
Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; and Guo, B. 2021. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of
the IEEE/CVF international conference on computer vision, 10012–10022.
Luan, W.; Lu, S.; Zheng, Y.; Xu, W.; Nie, L.; Zhou, Z.; and Liao, K. 2025. Lifting the Structural Morphing for Wide-Angle Images Rectification: Unified Content and Boundary Modeling. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 25529–25538.
Ma, T.; Nie, Y.; Zhang, Q.; Zhang, Z.; Sun, H.; and Li, G. 2019. Effective video stabilization via joint trajectory smoothing and frame warping. IEEE Transactions on Visualization and Computer Graphics, 26(11): 3163–3176.
Nie, L.; Lin, C.; Liao, K.; Liu, S.; and Zhao, Y. 2022. Deep rectangling for image stitching: A learning baseline. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 5740–5748.
Nie, L.; Lin, C.; Liao, K.; Liu, S.; and Zhao, Y. 2023a. Deep rotation correction without angle prior. IEEE Transactions on Image Processing, 32: 2879–2888.
Nie, L.; Lin, C.; Liao, K.; Liu, S.; and Zhao, Y. 2023b. Parallax-tolerant unsupervised deep image stitching. In Proceedings of the IEEE/CVF international conference on computer vision, 7399–7408.
Nie, L.; Lin, C.; Liao, K.; Liu, S.; and Zhao, Y. 2024. Semi-supervised coupled thin-plate spline model for rotation correction and beyond. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(12): 9192–9204.
Nie, W.; Nie, L.; Lin, C.; Chen, J.; Xing, K.; Wang, J.; and Liao, K. 2026. Beyond Wide-Angle Images: Structure-to-Detail Video Portrait Correction via Unsupervised Spatiotemporal Adaptation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40. AAAI 2026.
Peng, Z.; Ye, X.; Zhao, W.; Liu, T.; Sun, H.; Li, B.; and Cao, Z. 2024. 3D multi-frame fusion for video stabilization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 7507–7516.
Qiu, L.; Li, G.; Zhang, X.; Sun, Q.; and Xie, F. 2026. Rectification Reimagined: A Unified Mamba Model for Image Correction and Rectangling with Prompts. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40. AAAI Press. AAAI 2026.
Shi, Z.; Shi, F.; Lai, W.-S.; Liang, C.-K.; and Liang, Y. 2022. Deep online fused video stabilization. In Proceedings of the IEEE/CVF winter conference on applications of computer vision, 1250–1258.
Shih, Y.; Lai, W.-S.; and Liang, C.-K. 2019. Distortion-free wide-angle portraits on camera phones. ACM Transactions on Graphics (TOG), 38(4): 1–12.
Tan, J.; Zhao, S.; Xiong, P.; Liu, J.; Fan, H.; and Liu, S. 2021. Practical wide-angle portraits correction with deep structured models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 3498–3506.
Wang, Y.; Shi, M.; Li, J.; Huang, Z.; Cao, Z.; Zhang, J.; Xian, K.; and Lin, G. 2023. Neural video depth stabilizer. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 9466–9476.
Wang, Z.; Gao, Z.; Xu, X.; Luo, Y.; Yang, Y.; and Shen, H. T. 2022. Point to rectangle matching for image text retrieval. In Proceedings of the 30th ACM International Conference on Multimedia, 4977–4986.
Xu, K.; Xu, L.; He, G.; Yu, W.; and Li, Y. 2024. Beyond alignment: Blind video face restoration via parsing-guided temporal-coherent transformer. arXiv preprint arXiv:2404.13640.
Zhang, K.; Huang, J.-B.; Echevarria, J.; DiVerdi, S.; and Hertzmann, A. 2025. MaDCoW: Marginal Distortion Correction for Wide-Angle Photography with Arbitrary Objects. In Proceedings of the Computer Vision and Pattern Recognition Conference, 10923–10932.
Zhang, Q.; Li, H.; and Wang, Q. 2023. Wide-angle rectification via content-aware conformal mapping. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 17357–17365.
Zhao, M.; and Ling, Q. 2020. Pwstablenet: Learning pixel-wise warping maps for video stabilization. IEEE Transactions on Image Processing, 29: 3582–3595.
Zhou, T.; Li, H.; Wang, Z.; Luo, A.; Zhang, C.-L.; Li, J.; Zeng, B.; and Liu, S. 2024. Recdiffusion: Rectangling for image stitching with diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2692–2701.
Zhu, F.; Zhao, S.; Wang, P.; Wang, H.; Yan, H.; and Liu, S. 2022. Semi-supervised wide-angle portraits correction by multi-scale transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 19689–19698.