Implemented a pipeline for automatic face replacement in videos (without deep learning). Image morphing, triangulation, TPS, Poisson blending, etc.
-Yiren Lu (luyiren [at] seas [dot] upenn [dot] edu)
-Dongni Wang (wdongni [at] seas [dot] upenn [dot] edu)
Automatic Seamless Face Replacement (without deep learning).
Python third party libs required:
To run face replacement:
$ wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
$ tar xvfj shape_predictor_68_face_landmarks.dat.bz2
Face detection (for both source video and destination video)
$ Python face_detect_wrapper.py shape_predictor_68_face_landmarks.dat [video_name_no_suffix]
e.g.:
$ Python face_detect_wrapper.py shape_predictor_68_face_landmarks.dat clips/clip1
Example outputs in Proj4_Test/
and clips/
Face replacement: see demo.m
Example output videos in output_videos/
The contents of this repository are licensed under the MIT License.