LifangHe / mask-generator

Generates masks you can print out, cut and wear from images of faces.

Home Page:https://thenewinquiry.com/you-can-encrypt-your-face/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Generates masks you can print out, cut and wear from images of faces.

https://thenewinquiry.com/you-can-encrypt-your-face/


Languages

Language:Python 100.0%