← 开源

Python script to put facial features from one face onto another

ApplicationsContent creationPython
增长势头
+024 小时新增 Star0.0%
1.42k
Star
490
Fork
+0
本周
2
贡献者
创建于 2015-07-29 · 更新于 2026-11-25 · 今日第 12717 名
主要开发者
matthewearlsvezina
README

This is the code behind the Switching Eds blog post.

See the link for an explanation of the code.

To run the script you'll need to install dlib (http://dlib.net) including its Python bindings, and OpenCV. You'll also need to obtain the trained model from sourceforge.

Unzip with bunzip2 and change PREDICTOR_PATH to refer to this file. The script is run like so:

./faceswap.py <head image> <face image>

If successful, a file output.jpg will be produced with the facial features from <head image> replaced with the facial features from <face image>.

排名相邻
同类项目

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载