Near-range portrait photographs often contain perspective distortion artifacts that bias human perception and challenge both facial recognition and reconstruction techniques. In this project we predict a distortion correction flow map that encodes a per-pixel displacement that removes distortion artifacts when applied to the input face image. Our method also automatically infers missing facial features, i.e. occluded ears caused by strong perspective distortion, with coherent details. Our technique benefits a number of fundamental tasks, significantly improving the accuracy of both face recognition and 3D reconstruction and enables a novel camera calibration technique from a single portrait. Moreover, we also build the first perspective portrait database with a large diversity in identities, expression and poses.
Our training dataset contains 278 different individuals rendered with randomly sampled focal length, camera views and lighting environment. More details about the training data can be found in our paper.

To demonstrate that our system scales well to real-world portraits, we also devised a twocamera beam splitter capture system that would enable simultaneous photography of a subject at two different distances. With carefully geometry and color calibration, the two hardware-synced cameras were able to capture nearly ground truth portraits pairs of real subjects both with and without perspective distortions.
*Fried, Ohad, et al. "Perspective-aware manipulation of portrait photos." ACM Transactions on Graphics (TOG) 35.4 (2016): 128.
Our technique can be applied to HMC facial motion capture.
Our approach provides the power to accurately estimate camera parameters from a single unconstrained face image (focal length and camera-to-subject distance).
The quality of image-based 3D head reconstruction are heavily relying on the input image. Our approach will remove perspective distortion of the input image, so that the distortion and inaccuracy in the corresponding 3D head will be eliminated.
Our approach greatly enhance the performance of face verification and landmark detection of the near-range portraits. More details can be found in the paper.
Paper [Data] [Code](coming soon)
If you find our project useful in your research, please consider citing:
@article{Zhao2019learning,
title={Learning Perspective Undistortion of Portraits},
author={Zhao, Yajie and Huang, Zeng and Li, Tianye and Chen, Weikai and LeGendre, Chloe and Ren, Xinglei and Xing, Jun and
Shapiro, Ari and Li, Hao},
journal={arXiv preprint arXiv:1905.07515},
year={2019}
}





