April 2020
Intermediate to advanced
438 pages
12h 2m
English
Start with the following screenshot (obtained from https://www.needpix.com/photo/801551/mona-lisa-painting-leonardo-da-vinci-portrait-young-face-substitution) with the Mona Lisa face present twice in two different orientations and use the dlib library's face detector and shape predictor to detect the faces along with the facial landmarks:

Now, use the facial landmarks extracted to estimate an affine transformation (using scikit-image) and then warp the left face on the right face. You should get a figure like the following screenshot if you plot the detected faces and the warped face, along with the facial landmarks extracted: ...
Read now
Unlock full access