/Face-Swapping

Face swapping program made for final project of Digital Image Processing

Primary LanguagePython

Face-Swapping

Face swapping program made for final project of Digital Image Processing

Basic program for face swapping. Following steps are performed:

  1. Take two images
  2. Find landmark points of both images
  3. Triangulation source image (Delaunay triangulation)
  4. Triangulation destination image
  5. Extract and warp triangles
  6. Link the warped triangles together
  7. Replace the face on the destination image
  8. Seamless Cloning

The facial landmark file is availalbe at https://github.com/davisking/dlib-models/blob/master/shape_predictor_68_face_landmarks.dat.bz2