Generates masks you can print out, cut and wear from images of faces.
Switch branches/tags
Nothing to show
Clone or download
Latest commit ff8db2e Jun 23, 2017
Permalink
Failed to load latest commit information.
bin initial commit Jun 23, 2017
.gitignore update readme and add background Jun 23, 2017
README.md update readme Jun 23, 2017
aligner.py initial commit Jun 23, 2017
bg.png update readme and add background Jun 23, 2017
cvver.py initial commit Jun 23, 2017
locator.py initial commit Jun 23, 2017
make_mask.py update readme and add background Jun 23, 2017

README.md

Mask generator

A python script that generates printable, cutout masks from face images. This script makes use of code from Alyssa Quek's Face Morpher library.

Created for the New Inquiry's "You Can Encrypt Your Face".

Installation

Clone this repo:

git clone https://github.com/antiboredom/mask-generator

Install the python requirements:

pip install -r requirements.txt

Install imagemagick:

# for mac, it's easiest with homebrew:
brew install imagemagick

Use

python make_mask.py [FILENAME]

The script will attempt to locate a face in the image you provide, cut out the face, remove the eyes, and put it on a background.

Masks will be saved in a masks folder, and eyeballs in an eyes folder.