Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/burningion/automatic-memes
Automatic Memes in Python with Face Detection
https://github.com/burningion/automatic-memes
Last synced: 2 months ago
JSON representation
Automatic Memes in Python with Face Detection
- Host: GitHub
- URL: https://github.com/burningion/automatic-memes
- Owner: burningion
- License: apache-2.0
- Created: 2017-11-15T19:35:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-07T20:29:31.000Z (over 5 years ago)
- Last Synced: 2024-08-04T04:04:13.963Z (6 months ago)
- Language: Python
- Homepage: https://www.makeartwithpython.com/blog/deal-with-it-generator-face-recognition/
- Size: 3.86 MB
- Stars: 158
- Watchers: 6
- Forks: 42
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - automatic-memes - Automatic Memes in Python with Face Detection (Python)
README
# DEAL WITH IT in Python with Face Detection
This is the companion repository for the original post at [makeartwithpython.com](https://www.makeartwithpython.com/blog/deal-with-it-generator-face-recognition/).
It generates the DEAL WITH IT MEME by detecting faces in images.
![DEAL WITH IT](https://github.com/burningion/automatic-memes/blob/master/images/deal.gif?raw=true)
## Architecture
![MEME ARCHITECTURE](https://github.com/burningion/automatic-memes/blob/master/images/meme_generator_architecture.png?raw=true)
## Requirements
Pillow, MoviePy, and NumPy for the Gif from still image generator, and OpenCV and Pillow for the real time DEAL generator.
You'll need a webcam to get real time video in OpenCV to work.
## Usage
You'll need to download the [shape_predictor_68](https://github.com/davisking/dlib-models/blob/master/shape_predictor_68_face_landmarks.dat.bz2) from dlib-models and unzip it in this directory first.
After, you should be able to just pass in the location of that predictor to the Python3 program as a command line argument like so:
```bash
$ python3 generate_gif.py -image SOURCEIMAGE.jpg
```Make sure your image has front facing faces, otherwise the program will exit immediately.
Finally, there's a YouTube video to go along with this repo, walking through the whole thing here:
[![DEAL WITH IT PYTHON](https://github.com/burningion/automatic-memes/blob/master/images/deal_youtube.png?raw=true)](https://www.youtube.com/watch?v=eVhE8ioH1kw)