FrontFace
To align a face in profile to front view. This system is an implementation of paper “Effective Face Frontalization in Unconstrained Images, Tal Hassner, Shai Harel, Eran Paz, Roee Enbar”
The source code can be downloaded at: https://github.com/shaoguangcheng/faceFrontalization
Usage
frontalization [queryImage] [facialPointsFile] [3DModelFile]
Demo usage:
./frontalization image.png ../data/facialFeaturePoint.yml ../3DModel/model3D.yml
Before running the code, you should modify the “refU.txt” path in 3DModel/model3D.yml according to your settings. Otherwise, you will see “line: 73, file: ../frontalUtil.cpp, message: open 3DModel/refU.txt error”
Parameters
- frontalization : program name
- query image : input image
- facialPointsFile : facial feature points detected by SDM
- 3DModelFile : predefined 3D model (already provided)
Reference
“Effective Face Frontalization in Unconstrained Images” by Tal Hassner, Shai Harel, Eran Paz, Roee Enbar