All Projects → yrlu → seamless_face_replacement

yrlu / seamless_face_replacement

Licence: other
Implemented a pipeline for automatic face replacement in videos (without deep learning). Image morphing, triangulation, TPS, Poisson blending, etc.

Programming Languages

matlab
3953 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to seamless face replacement

AsyncKeepAlive
AsyncKeepAlive is a plugin that keep the players' connections alive
Stars: ✭ 13 (-56.67%)
Mutual labels:  tps
Python-Image-Morpher
Python Image Morpher (PIM) is a program that blends images to your content!
Stars: ✭ 97 (+223.33%)
Mutual labels:  image-morphing
Probe
Probe is a web GUI application with for Hyperledger Fabric maintainer, user, research to find the best block config logic for specific chain-code.
Stars: ✭ 29 (-3.33%)
Mutual labels:  tps
TPS-SLG-GAME
Unity制作的多人在线的第三人称策略类射击游戏 ,服务端实现怪物寻路,服务端由python 实现。 (服务端没有用任何python第三方库)
Stars: ✭ 150 (+400%)
Mutual labels:  tps
Flex-AntiCheat
Flex AntiCheat - Optimized Configs For Multiple AntiCheats
Stars: ✭ 37 (+23.33%)
Mutual labels:  tps
TabTPS
Minecraft server mod/plugin to monitor TPS, MSPT, and other information in the tab menu, boss bar, and action bar.
Stars: ✭ 151 (+403.33%)
Mutual labels:  tps
Epicsurvivalgameseries
Third-person Survival Game for Unreal Engine 4 (Sample Project)
Stars: ✭ 2,389 (+7863.33%)
Mutual labels:  tps
Openjk
Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
Stars: ✭ 1,641 (+5370%)
Mutual labels:  tps
PTN-Ninja
An editor and viewer for Portable Tak Notation
Stars: ✭ 26 (-13.33%)
Mutual labels:  tps

Automatic Seamless Face Replacement in Videos

-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).

Project Description

PDF

Run Code

Python third party libs required:

  • dlib
  • cv2
  • skimage
  • scipy.io

To run face replacement:

  • Download face landmark estimation model and uncompress
$ 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
    • load face detection results output by 1.
    • run replace_all_faces([src video path], [replacement video path], [src video detection results], [source video detection results], [destination video detection results], [source face index], [resize x])
    • save video to .avi file

Example output videos in output_videos/

Video Demo

Face replacement

License

The contents of this repository are licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].