Skip to content

fuho/img2braille

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

img2braille converts image file to text using unoicode Braille characters.

Sample usage:
fuho@T400FU:~/github/img2braille$ ./img2braille.py fuho.gif
⠁⠀⠀⣽⣿⣿⣷⣄⠁⠀⠀⠀⠁⠁⠙⠟⠟⠙⠉⠁⠁⠙⢿⣿⣷
⠀⠀⢴⣿⣿⣿⣿⣿⣷⣤⣄⣤⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿
⠀⠀⢽⣿⣿⣿⣿⣿⠟⠙⠙⠙⠙⠁⠀⠀⠀⠀⠀⠀⠁⠀⠀⢼⣿
⠀⠀⢿⣿⣿⣿⣟⠟⢷⣤⣄⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢘⣿
⠀⠀⢽⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣿⣧⣅⠀⠀⠀⠀⠀⣽⣿⣿
⢴⣿⣿⣿⢿⣿⣟⠉⠉⢽⣿⣿⠟⠙⢿⣿⣿⣿⢿⣷⣤⣄⣽⣿⢿
⣿⣿⣿⣿⣿⣿⣿⣤⣴⣿⣿⣿⠁⠀⢽⣿⡟⠁⠁⢽⣿⣿⣿⢽⣷
⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢿⠅⠀⠀⢙⣿⢿⣷⣿⣿⠿⠟⢻⣽⣿
⢽⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣵⣤⢙⣿⢿⢟⠉⠁⠁⢀⣽⣿⠇
⠀⠉⢿⣿⣿⣿⣿⣿⣟⣽⣿⣿⣿⣿⡟⠿⣿⣿⣿⣷⣷⣿⣿⠅⠀
⠀⠀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⢽⣿⣿⣿⣿⣿⠟⠐⠁
⠀⠀⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⠁⠀⠀
⠓⠀⠀⠙⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠁⠀⠀⠙
fuho@T400FU:~/github/img2braille$ 

or

fuho@T400FU:~/github/img2braille$ ./img2braille.py fuho.gif text.txt
fuho@T400FU:~/github/img2braille$ cat text.txt
⠁⠀⠀⣽⣿⣿⣷⣄⠁⠀⠀⠀⠁⠁⠙⠟⠟⠙⠉⠁⠁⠙⢿⣿⣷
⠀⠀⢴⣿⣿⣿⣿⣿⣷⣤⣄⣤⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿
⠀⠀⢽⣿⣿⣿⣿⣿⠟⠙⠙⠙⠙⠁⠀⠀⠀⠀⠀⠀⠁⠀⠀⢼⣿
⠀⠀⢿⣿⣿⣿⣟⠟⢷⣤⣄⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢘⣿
⠀⠀⢽⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣿⣧⣅⠀⠀⠀⠀⠀⣽⣿⣿
⢴⣿⣿⣿⢿⣿⣟⠉⠉⢽⣿⣿⠟⠙⢿⣿⣿⣿⢿⣷⣤⣄⣽⣿⢿
⣿⣿⣿⣿⣿⣿⣿⣤⣴⣿⣿⣿⠁⠀⢽⣿⡟⠁⠁⢽⣿⣿⣿⢽⣷
⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢿⠅⠀⠀⢙⣿⢿⣷⣿⣿⠿⠟⢻⣽⣿
⢽⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣵⣤⢙⣿⢿⢟⠉⠁⠁⢀⣽⣿⠇
⠀⠉⢿⣿⣿⣿⣿⣿⣟⣽⣿⣿⣿⣿⡟⠿⣿⣿⣿⣷⣷⣿⣿⠅⠀
⠀⠀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⢽⣿⣿⣿⣿⣿⠟⠐⠁
⠀⠀⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⠁⠀⠀
⠓⠀⠀⠙⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠁⠀⠀⠙
fuho@T400FU:~/github/img2braille$ 

About

Converting images to text in braille

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published