Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Datasets
PythonSDK
.gitignore
README.md
calcSimilarity.py
demo.py
getLandmarks.py
getMask.py
interp.py
landmark83.txt
loader.py
seamlessCloningPoisson.py
shape_predictor_68_face_landmarks.dat
simpleCloning.py
smoothTraj.py
test.py
trackFeatures.py

README.md

Final Project: Face Swapping

Getting Started

Dependency

  • opencv (3.4.2)
  • numpy (1.15.2)
  • scipy (1.1.0)
  • dlib (18.18)

Usage

To evaluate, run demo.py. You can change SOURCE_VIDEO_PATH and TARGET_VIDEO_PATH to test on different videos.

Note

The Face++ API requires API_KEY and API_SECRET to function, which are not included in this submission; The dlib face detector requires shape_predictor_68_face_landmarks.dat which are not included in this submission, either. Instead we saved the pre-calculated landmark detection results to *.landmarks and *.facepp files to speed up running. Use functions implemented in loader.py to save and load the pre-calculated data.

You can’t perform that action at this time.