Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 818 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 818 Bytes

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