Skip to content

neitheraaa/facemorph

 
 

Repository files navigation

facemorph

Morph one face to another using facial landmark detection, delaunay triangles and affine transformations. Based on https://www.learnopencv.com/face-morph-using-opencv-cpp-python/

Dependencies: dlib, opencv

How to use: python facemorph.py shape_predictor_68_face_landmarks.dat hillary_clinton.jpg ted_cruz.jpg

Sample output:

Alt text Alt text Alt text Alt text Alt text

Limitations: Images have to be the same size, only one face per image.

To Do: Auto center and crop so images of different sizes are supported Allow multiple faces per image and choosing which face to morph Port to mobile app

About

Morph one face to another

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 66.3%
  • Python 32.0%
  • CMake 1.7%