New version: img2ascii
To full-fill my personal desires (put waifus in my shell) I created this img to UTF-8 converter.
It's a python script that get an image and transform into ascii-art.
./asciiArt image.jpg -s=500 -t=90
Build:
make build
Run:
./run-docker.sh image.jpg -s=500 -t=90
- numpy
- PIL
- docker
Threshold: 100
⢉⣽⣿⣿⡿⠛⠡⣿⣿⣿⠟⢫⣶⣿⣿⡿⢋⡔⢺⣿⢧⣿⣿⣿⣿⣿⣿⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣏⡆⠐⣰⣿⣿⣮⠳⠁ ⣿⠿⢛⣽⣤⡆⣿⣿⣿⡏⣠⢸⣿⣿⢫⡶⢋⢡⣿⣏⣾⣿⣿⣟⣭⣽⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡢⣠⣿⣿⣿⣿⣷⢠ ⠀⢠⣾⣿⣿⣷⣿⣿⣿⠐⡸⣾⣿⣿⠼⣺⣗⣿⣿⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣅⣿⣟⡿⣿⣿⣿⣾ ⣠⣾⣿⣹⣿⣿⣿⣿⡟⠰⠿⠌⢿⢛⢹⡟⣽⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢿⣿⣿⣿⣿⣿⣿⣿⢗⣿⣿⣿⣿⢏ ⣿⠟⣿⠋⣿⣿⣼⣿⡀⢠⣤⡄⠀⠀⠈⠜⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⠋⠉⢉⣁⣠⣤⣾⣿⣿⣿⣿⣿⣿⣿⣻⣿⣿⢟⣵⣿ ⣿⣷⣿⢠⢸⣿⣿⣿⡇⣌⣿⣇⠀⣄⠀⠀⡀⣹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣴⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⣱⣿⣿⣿ ⣿⣿⡇⢸⡎⣿⣿⣿⡇⠈⢟⡻⣷⣿⠛⠘⣁⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢫⡅⢸⢻⣼⣿⣿⣿ ⣿⡟⣼⣄⠧⢻⢿⣷⡄⠀⠘⣿⣾⣴⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢃⣦⠐⠇⢨⣿⣿⣿⣿ ⢋⣜⣫⣷⡆⣜⠀⠛⠿⣄⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⣼⣿⡄⢶⣾⣿⣿⣿⣿ ⡶⠂⠀⠀⢀⣤⣞⠀⠀⠀⣠⡔⠉⠀⠀⢀⡴⢫⡅⠀⡘⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠰⢱⣫⠎⠀⠀⠑⣌⣾ ⠀⣀⡤⠂⠛⢹⠀⠀⠀⢰⠟⡇⠀⠀⡔⢉⡤⡞⠀⠰⠁⠀⠀⠠⠒⠂⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢝⠟⠀⠀⠀⠀⠈⡟ ⣿⡟⠁⠀⠀⠈⠀⠀⠀⣯⠇⠁⠀⠀⣃⠅⠨⠀⠀⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠺⠀⠠⢀⠀⠀⠀⠁ ⠟⠀⠀⠆⠀⠀⠀⠀⢠⣏⣀⣳⡀⡤⡆⢠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⡨⠀⠀⠀⠀⡰ ⠀⣠⠀⣴⠀⠀⠃⠀⢿⡟⠛⢻⣿⣿⣷⣣⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣴⣶⡶⠾⠟⠛⠁⠀⠀⠀⠀⠀⠀⠀⠄⠀⠀⡠⠊⠀ ⠀⠈⠀⡟⡇⠀⠀⠀⢸⠳⠀⠸⣿⠻⣿⣿⢿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠎⠀⠀⠀ ⠀⠀⢰⡇⢱⠀⠀⠀⢸⣷⡠⢄⠈⠀⢤⣧⠾⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡔⢺⡇⡄⠃⠀⠀⠀ ⠀⢠⠃⠻⡘⡀⡀⠈⢻⣿⣧⠀⠁⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡼⠙⣯⣸⡗⠀⠀⠀⠀ ⡴⠣⠔⠈⢸⠣⣿⣤⣀⠻⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠃⠀⢻⡉⠁⠀⠀⠀⠀Threshold: 80
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢀⣿⣿⣿⠃⣼⣷⢹⣿⣿⣿⣧⢸⣿⣿⣼⣽⣿⢸⣿⣿⣿⣿⣿⣿⣿⣿⣶⣍⡛⠿⣿⠋⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠠⠉⠻⢡⣾⣿⣿⡆⢿⣿⣿⣿⠈⣿⡇⣿⣧⢻⡿⣿⣿⣿⣿⣿⣻⣿⣿⣿⣿⣿⣷⣦⣄⣀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠤⠛⠀⠀⠂⣴⣝⢿⣿⣿⣿⡌⣿⣿⣿⡇⢹⢳⣿⣿⣷⡁⢿⣿⣿⣿⣿⣿⣿⣭⡛⠻⠿⢿⣿⣿⣿⣿⣷⣶⣶⣤ ⠀⠀⠀⠀⠀⠀⠸⣿⠻⠀⢀⣤⣤⡌⠙⢷⣝⣿⣿⣿⡌⠍⠉⠳⠈⠘⣟⣿⣿⣿⣜⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠈⠉⣿⣭⣍⡀ ⠀⠀⠀⠀⠀⠀⠀⠉⣤⢾⣿⣿⣷⡀⢰⣤⢹⣾⣿⣿⣿⣆⠀⠀⠀⠸⡿⠟⠛⠛⠋⠉⠉⠀⠀⠀⡙⢿⡇⠀⠀⠀⠀⠀⠀⠀⢻⣿⠏⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠘⠿⣿⣿⣿⣟⣶⣬⣼⣿⣿⣿⣿⣿⣷⣄⠀⠀⢿⣅⣤⣶⡛⢂⣤⣤⢀⣼⣧⣾⣿⡀⠀⠀⠀⠀⠀⠀⠘⠃⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠘⣿⣿⣿⣿⣦⣭⣵⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣜⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⣄⡟⠀⠀⠀⣼⠃⠈⡆⠀⠀⠀⠈⡇⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠉⠲⢤⣀⠀⣀⣴⣾⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢾⣟⣶⣄⡜⠁⠀⠀⢱⡀⠀⠀⠀⣷⠀⢸⠀⠘⡄⢀⠀⠀⠀⠀⠀⠄⠀⠀⠀⠀⠀⠈⠙⠺⠿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣛⣤⣾⣿⣽⠋⠢⡀⠀⠀⠀⢣⠀⠀⠀⢸⡄⡄⠀⠀⠈⢜⡀⠀⠀⠀⠀⠀⠀⠒⢤⣄⣀⡀⠀⠀⠀⠀⠈⠉⠉⠛ ⣿⣿⣿⣿⣿⣿⣇⠀⣄⣿⡿⠛⠛⢳⣦⡈⠢⠀⠀⠀⢳⣠⡠⣈⣷⣧⠠⠀⠀⠀⠣⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣷⣶⠀⠒⠲⢾ ⣿⣿⣿⣿⣿⣿⣿⣶⠛⡁⠀⠀⠈⢿⡏⠛⡆⠁⠀⠀⠀⠹⣿⣿⣿⣇⢀⣠⣤⣤⣴⣶⣶⣿⣿⣿⢦⡀⢸⣿⣿⣿⣿⣿⣿⣿⡄⠀⣰⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣧⣀⠀⠀⠀⠠⠉⠓⠃⠀⠀⠀⠀⠀⠈⠻⣿⣿⡀⠺⠛⠉⢤⡽⠛⠛⡿⠃⠘⠁⠀⢿⣿⣿⣿⣿⣿⣿⣧⣼⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⣧⠀⠀⠀⠀⠙⠒⠊⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠣⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿