face2pixel

Generate pixel-style avatars with python.

Run:

  1. Clone the project:
git clone https://github.com/theodorecooper/face2pixel
  1. install requirements:
pip install -m requirements.txt
  1. Put pictures(*.jpg) to imgs/ folder
  2. run the main.py, the output images will be stored in output/(*.png).
python main.py

Requirements:

  • opencv-python
  • numpy
  • tqdm
  • glob

Based on

Screenshots

Before:

BEFORE

After:

AFTER

GitHub

View Github