1
0
Fork 0
CLI based 8bit image pixelator, text & object recognition app.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.7 KiB

3 years ago
# GORK
I derived the name from Zork that is a first text-based adventure game.
3 years ago
2 years ago
```shell
pip install -r requirements.txt
python -m gork.cli --help
# colors, texts, recognitions, etc
python -m gork.cli analyze --input=./files/park.png \
--output=./files/park_report.txt \
--ignore-cache
# default width, terminal width scale it by height.
python -m gork.cli print --width=80 \
--input=./files/park.png \
--ignore-cache
# default pixel size is 10.
python -m gork.cli export ./files/park.png \
./files/park_output.png \
--pixel-size=15 \
--ignore-cache
```
2 years ago
| Original | Pixelated |
|--------------------------------------|---------------------------------------------|
| ![](examples/emoji_disappointed.png) | ![](examples/emoji_disappointed_output.png) |
| ![](examples/emoji_heart.png) | ![](examples/emoji_heart_output.png) |
| ![](examples/emoji_watermelon.png) | ![](examples/emoji_watermelon_output.png) |
| ![](examples/building.png) | ![](examples/building_output.png) |
| ![](examples/park.png) | ![](examples/park_output.png) |
3 years ago
The terminal output:
[![asciicast](https://asciinema.org/a/284169.svg)](https://asciinema.org/a/284169)
The base calculation code is from [pixelator][1] project. Also [img_term][2] app
helped me to display the image in the terminal.
# Contributing
2 years ago
```shell
pip install -r requirements-dev.txt
pytest
```
3 years ago
[1]: https://github.com/connor-makowski/pixelator
[2]: https://github.com/JonnoFTW/img_term