Post processing tool.
To install the requirements, and this repository as a package perform the following.
- clone this repository:
git clone https://github.com/dymokomi/dygen.git
- (optional) create a virtual environment:
cd dygen
python3 -m venv .env
source .env/bin/activate
- install the package and dependencies
pip install -e .
Run
python dygen.py
and you'll get images in the /out folder.
The script currently turns this image:
-
Place an image in a ref folder. Make sure it's a .png!
-
Open dygen.py and change
init_file = "ref"
, whereref
is the name of your file without extension. I.e. if your file is namedartwork.png
, change the line toinit_file = "artwork"
-
Run the script with
python dygen.py
-
You'll get three new files in /out folder named
- artwork.blobs.v1.png - raw color blobs
- artwork.painted.v1.png - finished painting
- artwork.sharpened.v1.png - a sharper looking version of the painting
Open dygen.py and start messing up with parameters. They're at the top of the file and I tried to document them as much as possible. Play with different numbers, like cluster
and color_count
and see what you get.
The fun start when you start using your own stencil masks. In /tex folder I placed two files that are currently used in the painting process, if you edit those, you'll get a much different look. Think of them as brushes. Worse comes to worse - hit me up on Twitter @dymokomi