Skip to content

Splinter1984/lua-braille

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua-braille

First step

clone repo

git clone [email protected]:Splinter1984/lua-braille.git
cd lua-braille/

clone submodule

git submodule init && git submodule update

Run script

script can be run with some options

lua lua-braille.lua ?
script help to convert *.png image into braille unicode table
usage:
lua lua-braile.lua <img_path> <grayscale_mode_index> <compression>
<img_path> - path to image in .png format
<compression> - parameter from 0.0 to 0.99 of image size compression
<grayscale_mode_index> {'luminance', 'lightness', 'average', 'value'}

you can provide only pic in .png format as argument

lua lua-braille.lua <path_to_pic>.png

Example

*.png braille sym
⠄⣴⠏⣰⣿⣿⣿⣿⠋⣤⣾⣿⣿⣿⡟⢠⣾⡿⣫⠵⠚⣛⣿⠷⠄⠄⠄⠄⠄⠄⠄
⢸⡟⢠⣿⣿⣿⣿⡇⢸⣿⣿⠿⠟⣫⠄⣿⡥⠞⢁⣴⠞⣉⣤⣶⣤⡄⠄⠄⠄⠄⠄
⢰⡅⢸⣯⣭⣭⣭⡅⢸⣷⣶⡾⠟⠋⠄⢿⣤⣶⡟⢡⣾⣿⠟⠛⢛⣷⠄⠄⠄⠄⠄
⠄⠉⠄⢻⣍⠉⠉⠁⠈⢿⣄⣠⣴⠾⠓⡀⠭⣭⣄⢿⡟⣡⡶⠟⠛⠛⠄⠄⠄⠄⠄
⠄⠄⠑⢠⣝⢛⣛⣛⣓⣀⣭⣥⣤⡺⣿⣿⡀⢻⣿⢸⠟⢁⣤⣶⣿⣤⠄⠄⠄⠄⠄
⠄⠄⠄⢸⡇⣿⣿⣿⣿⣿⣿⣿⣿⣷⢹⣿⡇⠈⢿⡎⢰⣿⡿⠋⢉⣹⠄⠄⠄⠄⠄
⠄⠄⠄⢸⣧⢻⣿⣿⣿⣿⣿⣿⣛⡵⠿⢿⣇⡀⠘⢿⣷⡝⣧⠴⣻⣭⣄⠄⠄⠄⠄
⠄⠄⠄⠸⠛⠳⢽⣿⣿⣟⠛⢉⣠⣤⣶⣶⣮⣽⡆⠄⠙⣿⡈⡄⡟⢩⣽⡆⠄⠄⠄
⠄⠄⠄⠄⢶⡏⣥⣌⠻⣿⣿⣿⡟⣭⣭⣍⣙⣿⣿⠄⠄⢹⡇⡇⣼⢆⣿⠁⠄⠄⠄
⠄⠄⠄⠄⠸⣿⣿⣿⡇⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠄⠄⢸⡇⡇⣩⣾⠃⠄⠄⠄⠄
⠄⠄⠄⠄⠄⢻⣿⣿⣷⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠄⠄⣸⢰⠄⣿⠁⠄⠄⠄⠄⠄
⠄⠄⠄⠄⠄⠈⢿⣿⢹⣿⣿⣿⡝⣿⣿⣿⣿⣿⠇⠄⣰⢇⡎⢠⢻⠄⠄⠄⠄⠄⠄
⠄⠄⠄⠄⠄⠄⠘⣿⣶⣭⣉⣱⣶⣿⣿⣿⣿⡟⠄⢠⡟⢜⣵⢏⣾⡄⠄⠄⠄⠄⠄
⠄⠄⠄⠄⠄⠄⠄⠹⣿⣛⣿⣿⣛⣛⣻⣿⡿⠄⢠⣞⣴⠟⢡⣾⣿⣿⣦⣄⡀⠄⠄
⠄⠄⠄⠄⠄⠄⠄⣠⡹⣿⡟⠛⢛⣿⣿⣿⠁⣠⣿⠟⠁⢠⡿⣿⣿⣿⣿⣿⣿⣷⣶

About

convert *.png image to braille unicode table

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages