An open API service indexing awesome lists of open source software.

https://github.com/the0cp/face2pixel

Generate pixel-style avatars with python.
https://github.com/the0cp/face2pixel

face2cartoon image-build image-processing opencv-python pixel-art python

Last synced: 8 months ago
JSON representation

Generate pixel-style avatars with python.

Awesome Lists containing this project

README

          

# face2pixel

Generate pixel-style avatars with python.

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

## Requirements:
- opencv-python
- numpy
- tqdm
- glob

## Based on
- Python 3.9.6
- Tiler: https://github.com/nuno-faria/tiler

## Screenshots
### Before:
![BEFORE](https://github.com/theodorecooper/face2pixel/blob/main/screenshots/Bram_Cohen.jpg)
### After:
![AFTER](https://github.com/theodorecooper/face2pixel/blob/main/screenshots/Bram_Cohen.png)