October 2018
Intermediate to advanced
246 pages
6h 26m
English
For each triangle found in the image, use the affine transform method to transform all pixels inside the triangle into a face-swapped image. Repeat this process until we get the warped version of the same image:

Similarly, do the same process on the second image to which the face is going to be swapped. This is achieved using an OpenCV method called warpAffine. We will look at this in detail when implementing the method.
After warpAffine is applied, the swapped images look as follows:

Read now
Unlock full access