https://github.com/brucemacd/swap-cat-and-human-faces
:smiley_cat: <=> :woman: Swapping cat and human faces for fun and profit.
https://github.com/brucemacd/swap-cat-and-human-faces
Last synced: over 1 year ago
JSON representation
:smiley_cat: <=> :woman: Swapping cat and human faces for fun and profit.
- Host: GitHub
- URL: https://github.com/brucemacd/swap-cat-and-human-faces
- Owner: BruceMacD
- Created: 2019-03-07T06:10:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-07T06:38:20.000Z (over 7 years ago)
- Last Synced: 2025-04-01T21:57:18.238Z (over 1 year ago)
- Language: Python
- Size: 70.6 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Swap-Cat-and-Human-Faces

This is a basic face-swap implementation between a cat and a human using OpenCV. This works as a basic proof-of-concept for face-swapping a human with any mask. The application works by simply matching points from cat facial landmarks to corresponding points in the human face mask.
Originally I developed this with the intention of creating an app to swap cat and human faces, but I found that it isn't accurate enough for a great app experience. Feel free to implement or extend this code in your own application.
## Usage
./face_swap.py -i -i
```
./face_swap.py -i data/headshot.jpg -i data/mimi.jpg
```
## Requirements
* OpenCV v3.0+
* numpy
* dlib (for the landmark detection)
* Python 3
## Sources
Headshot
https://www.pexels.com/photo/adult-attractive-beautiful-beauty-415829/