Face swap and 3D alignment from a single image based on PRNet
This project contains:
The origin python code with training is in PRNet.
1. iPhone SE, arm64
2. OpenCV 3.4.0
3. NCNN
There's 4 config files in this project.
1. face_ind.txt
This file is the index of [0,65535], which is the region of the WHITE area of the image[256x256] below.
2. uv_kpt_ind.txt
This file is the index of coordinate(x,y) for 68 keypoints refer to face_ind.txt
3. triangles.txt
86906 triangles' vertices index refer to face_ind.txt
4. canonical_vertices.txt
canonical model for pose estimate, there's coordinate (uv,z) of 43867 vertices
http://www.gregslabaugh.net/publications/euler.pdf
http://nghiaho.com/?page_id=671