Abstract
Wide-angle portraits often enjoy expanded views. However, they contain perspective distortions, especially noticeable when capturing group portrait photos, where the background is skewed and faces are stretched. This paper introduces the first deep learning based approach to remove such artifacts from freely-shot photos. Specifically, given a wide-angle portrait as input, we build a cascaded network consisting of a LineNet, a ShapeNet, and a transition module (TM), which corrects perspective distortions on the background, adapts to the stereographic projection on facial regions, and achieves smooth transitions between these two projections, accordingly. To train our network, we build the first perspective portrait dataset with a large diversity in identities, scenes and camera modules. For the quantitative evaluation, we introduce two novel metrics, line consistency and face congruence. Compared to the previous state-of-the-art approach, our method does not require camera distortion parameters. We demonstrate that our approach significantly outperforms the previous state-of-the-art approach both qualitatively and quantitatively.
Introduction
Wide-angle lenses are essential for capturing expansive scenes or large groups in a single frame. However, they introduce a significant geometric challenge: perspective distortion. Standard perspective projection preserves straight lines in the background but stretches faces near the edges, making them appear unnaturally wide. Conversely, stereographic projection maintains facial proportions but causes background lines to curve.
Existing solutions typically require precise camera calibration parameters, such as focal length and distortion coefficients. Without this metadata, correction is difficult. Furthermore, blending these two projections often results in visible artifacts or "seams" where the face meets the background. This paper introduces the first "calibration-free" deep learning approach to address these issues, producing natural-looking wide-angle portraits without needing technical metadata.
Proposed Methodology
The authors propose a cascaded deep structured network designed to generate a content-aware warping flow field. The architecture treats backgrounds and faces differently to satisfy their distinct geometric requirements:
- LineNet: This sub-network focuses on background correction. It utilizes a Line Attention Module (LAM) to identify dominant straight lines and applies a flow that enforces perspective undistortion, keeping architectural elements straight.
- ShapeNet: Focused on facial regions, this sub-network uses a Face Attention Module (FAM) to localize faces. It applies a flow based on stereographic projection to ensure facial features remain proportional and undistorted.
- Transition Module (TM): Acting as the bridge between the two sub-networks, the TM ensures a smooth, seamless transition between the perspective-corrected background and the stereographically-corrected faces, eliminating the artifacts common in previous blending methods.
This system is entirely calibration-free, inferring necessary corrections directly from the visual content of the image.
Experimental Results
To train and evaluate the model, the authors created the first large-scale perspective portrait dataset, consisting of 5,854 pairs of distorted and manually corrected images. These photos were captured using various smartphones and ultra-wide lenses across diverse scenes.
Quantitative Evaluation
The researchers introduced two novel metrics: Line Straightness Metric (LineAcc) and Shape Congruence Metric (ShapeAcc). In quantitative tests, the proposed method significantly outperformed the previous state-of-the-art (Shih et al., 2019). On a general test set, the model achieved a LineAcc of 66.78 and a ShapeAcc of 97.49, compared to 66.14 and 97.25 for the previous best method.
Qualitative Comparison
Visual results demonstrate that the proposed approach produces much smoother transitions and more natural facial proportions. While previous methods often left "bent" lines near faces or created "pancake" faces, this model maintains both background integrity and facial aesthetics.
Discussion and Conclusion
The core innovation of this work lies in the dual-projection strategy. By decoupling the geometric needs of faces and backgrounds and using deep learning to handle the blend, the authors solve a classic problem in computational photography. The use of LAM and FAM attention modules allows the network to focus on perceptually critical features—straight lines and proportional faces.
While the model performs exceptionally well on 1-6 people, extremely crowded scenes with overlapping faces at different depths remain a challenge. Additionally, because the ground truth was created via manual warping, the model may reflect human aesthetic preferences rather than absolute geometric truth. Future work will focus on optimizing the cascaded network for real-time performance on high-resolution mobile devices and improving robustness in complex, crowded environments.
Summary updated