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".
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
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.