https://github.com/brucemacd/face-swap-opencv
A basic face-swap implementation using OpenCV and dlib.
https://github.com/brucemacd/face-swap-opencv
Last synced: 10 months ago
JSON representation
A basic face-swap implementation using OpenCV and dlib.
- Host: GitHub
- URL: https://github.com/brucemacd/face-swap-opencv
- Owner: BruceMacD
- Created: 2019-01-13T06:22:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-15T07:16:40.000Z (over 7 years ago)
- Last Synced: 2025-01-20T02:43:21.674Z (over 1 year ago)
- Language: Python
- Size: 68.8 MB
- Stars: 15
- Watchers: 4
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Face-Swap-OpenCV

This is a basic face-swap implementation using OpenCV. Check out the code for a step-by-step explanation.
## Usage
./face_swap.py -i -i
```
./face_swap.py -i data/headshot1.jpg -i data/headshot2.jpg
```
## Requirements
* OpenCV v3.0+
* numpy
* dlib (for the landmark detection)
* Python 3
## Sources
Based on the work of Satya Mallick
https://www.learnopencv.com/face-swap-using-opencv-c-python/
Facial landmarks
https://www.pyimagesearch.com/2017/04/03/facial-landmarks-dlib-opencv-python/
Head shot 1
https://www.pexels.com/photo/adult-attractive-beautiful-beauty-415829/
Head shot 2
https://www.pexels.com/photo/man-wearing-black-zip-up-jacket-near-beach-smiling-at-the-photo-736716/
