Setup:
pip3 install -r requirements.txt
Script does the following steps:
- Tune image contrast.
- Reduce number of image colors.
- Map remaining color to closest flosses.
- Render and save results.
Script arguments:
usage: main.py [-h] [--image IMAGE] [--enhance ENHANCE] [--width WIDTH]
[--max_colors MAX_COLORS] [--show SHOW]
optional arguments:
-h, --help show this help message and exit
--image IMAGE Image to convert to scheme.
--enhance ENHANCE Whether to attempt to enhance image colors.
--width WIDTH Number of crosses in row.
--max_colors MAX_COLORS
Max number of flosses to use.
--show SHOW Whether to show result in separate window.