Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

A python script that get an image and transform into ascii-art.

Notifications You must be signed in to change notification settings

HTsuyoshi/ascii-art-braille-chars-depreceated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ascii-art-braille-chars (depreceated)

New version: img2ascii

Welcome

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.

Usage

Example (Local)

./asciiArt image.jpg -s=500 -t=90

Example (Docker)

Build:

make build

Run:

./run-docker.sh image.jpg -s=500 -t=90

Requirements (python library)

Local

  • numpy
  • PIL

Docker

  • docker

Preview

Threshold: 100

⢉⣽⣿⣿⡿⠛⠡⣿⣿⣿⠟⢫⣶⣿⣿⡿⢋⡔⢺⣿⢧⣿⣿⣿⣿⣿⣿⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣏⡆⠐⣰⣿⣿⣮⠳⠁ ⣿⠿⢛⣽⣤⡆⣿⣿⣿⡏⣠⢸⣿⣿⢫⡶⢋⢡⣿⣏⣾⣿⣿⣟⣭⣽⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡢⣠⣿⣿⣿⣿⣷⢠ ⠀⢠⣾⣿⣿⣷⣿⣿⣿⠐⡸⣾⣿⣿⠼⣺⣗⣿⣿⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣅⣿⣟⡿⣿⣿⣿⣾ ⣠⣾⣿⣹⣿⣿⣿⣿⡟⠰⠿⠌⢿⢛⢹⡟⣽⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢿⣿⣿⣿⣿⣿⣿⣿⢗⣿⣿⣿⣿⢏ ⣿⠟⣿⠋⣿⣿⣼⣿⡀⢠⣤⡄⠀⠀⠈⠜⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⠋⠉⢉⣁⣠⣤⣾⣿⣿⣿⣿⣿⣿⣿⣻⣿⣿⢟⣵⣿ ⣿⣷⣿⢠⢸⣿⣿⣿⡇⣌⣿⣇⠀⣄⠀⠀⡀⣹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣴⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⣱⣿⣿⣿ ⣿⣿⡇⢸⡎⣿⣿⣿⡇⠈⢟⡻⣷⣿⠛⠘⣁⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢫⡅⢸⢻⣼⣿⣿⣿ ⣿⡟⣼⣄⠧⢻⢿⣷⡄⠀⠘⣿⣾⣴⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢃⣦⠐⠇⢨⣿⣿⣿⣿ ⢋⣜⣫⣷⡆⣜⠀⠛⠿⣄⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⣼⣿⡄⢶⣾⣿⣿⣿⣿ ⡶⠂⠀⠀⢀⣤⣞⠀⠀⠀⣠⡔⠉⠀⠀⢀⡴⢫⡅⠀⡘⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠰⢱⣫⠎⠀⠀⠑⣌⣾ ⠀⣀⡤⠂⠛⢹⠀⠀⠀⢰⠟⡇⠀⠀⡔⢉⡤⡞⠀⠰⠁⠀⠀⠠⠒⠂⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢝⠟⠀⠀⠀⠀⠈⡟ ⣿⡟⠁⠀⠀⠈⠀⠀⠀⣯⠇⠁⠀⠀⣃⠅⠨⠀⠀⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠺⠀⠠⢀⠀⠀⠀⠁ ⠟⠀⠀⠆⠀⠀⠀⠀⢠⣏⣀⣳⡀⡤⡆⢠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⡨⠀⠀⠀⠀⡰ ⠀⣠⠀⣴⠀⠀⠃⠀⢿⡟⠛⢻⣿⣿⣷⣣⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣴⣶⡶⠾⠟⠛⠁⠀⠀⠀⠀⠀⠀⠀⠄⠀⠀⡠⠊⠀ ⠀⠈⠀⡟⡇⠀⠀⠀⢸⠳⠀⠸⣿⠻⣿⣿⢿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠎⠀⠀⠀ ⠀⠀⢰⡇⢱⠀⠀⠀⢸⣷⡠⢄⠈⠀⢤⣧⠾⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡔⢺⡇⡄⠃⠀⠀⠀ ⠀⢠⠃⠻⡘⡀⡀⠈⢻⣿⣧⠀⠁⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡼⠙⣯⣸⡗⠀⠀⠀⠀ ⡴⠣⠔⠈⢸⠣⣿⣤⣀⠻⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠃⠀⢻⡉⠁⠀⠀⠀⠀

Threshold: 80

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢀⣿⣿⣿⠃⣼⣷⢹⣿⣿⣿⣧⢸⣿⣿⣼⣽⣿⢸⣿⣿⣿⣿⣿⣿⣿⣿⣶⣍⡛⠿⣿⠋⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠠⠉⠻⢡⣾⣿⣿⡆⢿⣿⣿⣿⠈⣿⡇⣿⣧⢻⡿⣿⣿⣿⣿⣿⣻⣿⣿⣿⣿⣿⣷⣦⣄⣀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠤⠛⠀⠀⠂⣴⣝⢿⣿⣿⣿⡌⣿⣿⣿⡇⢹⢳⣿⣿⣷⡁⢿⣿⣿⣿⣿⣿⣿⣭⡛⠻⠿⢿⣿⣿⣿⣿⣷⣶⣶⣤ ⠀⠀⠀⠀⠀⠀⠸⣿⠻⠀⢀⣤⣤⡌⠙⢷⣝⣿⣿⣿⡌⠍⠉⠳⠈⠘⣟⣿⣿⣿⣜⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠈⠉⣿⣭⣍⡀ ⠀⠀⠀⠀⠀⠀⠀⠉⣤⢾⣿⣿⣷⡀⢰⣤⢹⣾⣿⣿⣿⣆⠀⠀⠀⠸⡿⠟⠛⠛⠋⠉⠉⠀⠀⠀⡙⢿⡇⠀⠀⠀⠀⠀⠀⠀⢻⣿⠏⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠘⠿⣿⣿⣿⣟⣶⣬⣼⣿⣿⣿⣿⣿⣷⣄⠀⠀⢿⣅⣤⣶⡛⢂⣤⣤⢀⣼⣧⣾⣿⡀⠀⠀⠀⠀⠀⠀⠘⠃⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠘⣿⣿⣿⣿⣦⣭⣵⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣜⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⣄⡟⠀⠀⠀⣼⠃⠈⡆⠀⠀⠀⠈⡇⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠉⠲⢤⣀⠀⣀⣴⣾⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢾⣟⣶⣄⡜⠁⠀⠀⢱⡀⠀⠀⠀⣷⠀⢸⠀⠘⡄⢀⠀⠀⠀⠀⠀⠄⠀⠀⠀⠀⠀⠈⠙⠺⠿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣛⣤⣾⣿⣽⠋⠢⡀⠀⠀⠀⢣⠀⠀⠀⢸⡄⡄⠀⠀⠈⢜⡀⠀⠀⠀⠀⠀⠀⠒⢤⣄⣀⡀⠀⠀⠀⠀⠈⠉⠉⠛ ⣿⣿⣿⣿⣿⣿⣇⠀⣄⣿⡿⠛⠛⢳⣦⡈⠢⠀⠀⠀⢳⣠⡠⣈⣷⣧⠠⠀⠀⠀⠣⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣷⣶⠀⠒⠲⢾ ⣿⣿⣿⣿⣿⣿⣿⣶⠛⡁⠀⠀⠈⢿⡏⠛⡆⠁⠀⠀⠀⠹⣿⣿⣿⣇⢀⣠⣤⣤⣴⣶⣶⣿⣿⣿⢦⡀⢸⣿⣿⣿⣿⣿⣿⣿⡄⠀⣰⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣧⣀⠀⠀⠀⠠⠉⠓⠃⠀⠀⠀⠀⠀⠈⠻⣿⣿⡀⠺⠛⠉⢤⡽⠛⠛⡿⠃⠘⠁⠀⢿⣿⣿⣿⣿⣿⣿⣧⣼⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⣧⠀⠀⠀⠀⠙⠒⠊⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠣⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿

About

A python script that get an image and transform into ascii-art.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published