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.
Gökmen Görgen 97ed46cbae poetry integration. 1 month ago
.github configure coverage. 2 years ago
examples update README.md 2 years ago
gork poetry integration. 1 month ago
tests poetry integration. 1 month ago
.gitignore pyoxidizer. 3 years ago
.pre-commit-config.yaml poetry integration. 1 month ago
LICENSE.md poetry integration. 1 month ago
README.md poetry integration. 1 month ago
poetry.lock poetry integration. 1 month ago
pyproject.toml poetry integration. 1 month ago
setup.py add setup.py 2 years ago

README.md

GORK

I derived the name from Zork that is a first text-based adventure game.

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
Original Pixelated

The terminal output:

asciicast

The base calculation code is from pixelator project. Also img_term app helped me to display the image in the terminal.

Contributing

pip install -r requirements-dev.txt
pytest