Based on this solution.
5. Reconstruction new face
The most of the algorithms are written using openCV
- Face detection: Haar Cascade
- Keypoint detection: The cascade of regressors using dlib based on this paper
- Face triangulation: simple Triangulation
- Reconstruction: Affine projection each triangles
- Color alignment: Seamless Cloning (details)