About The Project • Getting Started • Prerequisites • Usage • Roadmap • Contributing • Contact • Acknowledgments
- Text to dots
- Convert input text to vertically-aligned dot-based text.
- Image to dots
- Convert input image to dot-based text.
- Clone the repo
git clone https://github.com/tsai8890/All2Dots.git
- Install python packages
cd All2Dots pip3 install -r requirements.txt
- Convert the specified image to dot-based text
cd All2Dots python3 src/main.py <target> [options] # Ex: python3 src/main.py -t "早安" # Ex: python3 src/main.py -t "早安" -s line # Ex: python3 src/main.py -f ./images/shiba.jpg # Ex: python3 src/main.py -f ./images/shiba.jpg -w 100 -b light -t 110 # Target: # -f <filepath> Convert any image to dot-based text # -t <text> Convert any text to vertically-aligned dot-based text # # Options: # -s <style> Output style, other format-related params will be ignored if this option is specified. # ['terminal', 'line'] # # -w <width> Maximal width for each line # (default: 100) # # -b <background> Light or dark background mode # ['dark', 'light'] # (default: 'dark') # # -T <threshold> Threshold for converting grayscale image to binary image # (default: 132)
-
The result will be directly shown on your terminal
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⢸⣟⠛⠛⠛⠛⠛⠛⠛⠛⢻⡇⠀⠀⠀ ⠀⠀⠀⢸⣿⣤⣤⣤⣤⣤⣤⣤⣤⣼⡇⠀⠀⠀ ⠀⠀⠀⢸⣟⠀⠀⠀⠀⠀⠀⠀⠀⢸⡇⠀⠀⠀ ⠀⠀⠀⠘⠛⠛⠛⠻⢿⡟⠛⠛⠛⠛⠃⠀⠀⠀ ⠀⢠⣤⣤⣤⣤⣤⣤⣼⣧⣤⣤⣤⣤⣤⣄⡀⠀ ⠀⠈⠉⠉⠉⠉⠉⠉⢹⡏⠉⠉⠉⠉⠉⠉⠁⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠠⢶⡄⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠠⣾⡿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⣟⠀⠀ ⠀⠠⣿⠇⠀⠀⠀⣰⡗⠀⠀⠀⠀⠀⠠⣟⠀⠀ ⠀⢠⣤⣤⣤⣤⣼⣿⣤⣤⣤⣤⣤⣤⣤⣤⡄⠀ ⠀⠀⠀⠀⢠⣼⠟⠀⠀⠀⠀⣸⡟⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠺⠿⢶⣤⣄⣠⣴⠟⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⢀⣨⣽⠿⠿⣶⣄⣀⠀⠀⠀⠀ ⠀⠠⢶⠶⠶⠟⠛⠋⠁⠀⠀⠀⠉⠻⠿⡖⠀⠀
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠛⠉ ⠉⠻⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁ ⠈⠹⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠃ ⠹⢿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠶⠶⣶⣄⡀ ⠨⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⢉⣀⣀⡀ ⠹⢿⠆ ⠠⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠋ ⠉⠋⢛⣲⢦⡄ ⠠⣴⣶⣤⣄ ⠠⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟ ⢀⣀⡀⠉⠙⠻⢆⡀ ⢠⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟ ⢀ ⠈⠙⠳⢄⣀ ⠠⠇ ⣸⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠁ ⣀⣠⣼⣷⣤⣄⣀ ⠉⠱⠄ ⢠⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⠁ ⢠⣶⣿⣟⡛⠻⠿⣿⣿⡿⠗ ⢠⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇ ⢸⠿⢟⠋⠉ ⣈⠙⠛⣀ ⠠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇ ⢰⣿⣿⣶⣤⣄⡀⠡⢆⣰⣖⣀ ⠠⡜⠛⣉⣩⣍⢻⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣾⡖ ⠈ ⠹⠿⣿⣿⣷⣤⣿⣷⡟ ⠐⠡⣞⠉ ⠻⣼⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟⠁ ⠉⠉⠁ ⠠⡌ ⠉ ⣰⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⡟⠛⠁ ⣘⡀ ⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⠟⠁ ⠠⣄⣠⣄ ⣰⣿⣷⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣟⠁ ⠠⢶⣾⣿⣿⣿⡮⣔⣠⣄⣀⣀⣠⣴⠿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣶⣆⡀ ⠹⠿⠟⣀⣻⣿⣿⣿⣿⣿⠏⢠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣆ ⢰⡖⠃⣈⣹⣿⣿⣿⣿⣿⣷⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⡄ ⠠⣶⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣗ ⠠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄ ⠠⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⡟ ⠠⣾⠟⠛⠉⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⡟⠁ ⢠⣤⣄⡀ ⠉⠙⠻⠿⠿⢿⣟⣻⣽⣿⣿⣿⣿⣿⣿⠟⠉ ⡟ ⠠⣾⣿⠟⠋⢸⣆ ⢠⣌⠙⠉⠻⣿⣿⣿⣿⣿⣟ ⠠⡏ ⠈⠹⣷⣄ ⣠⣟⠃ ⠻⣿⣿⣿⡟ ⠁ ⢠⣄⡀⠠⣿⣿⣷⣤⠤⠴⡤⠄⠠⠦⣶⣦⠤⣤⣤⡤⢤⣴⣿⣿⣟⣠⣶⣟ ⠈⠙⠛⠁ ⡞ ⡀ ⠨⣿⣿⣆⠻⣿⣿⣿⣇⣠⣶⣶⡾⠿⣿⡟⠻⣿⣿⣷⣄⢻⣿⣟⢻⣿⣿⡏ ⠠⠄ ⢛ ⠻⣿⣟⡀⢸⡟⠣⢿⣿⣯⣭⣦⣦⣿⣿⣷⡤⠆⠹⠟⠃⠻⢟⣰⣿⡟⠁⣀ ⢠⣼⡗ ⠛⠫⠗ ⠠⡿⠏⠛⢻⣯⣾⣿⣿⣿⣇ ⢀ ⠉⠛⠁ ⠠⣔ ⠰⣄⡀ ⢸⣟⠡⡄⠚⠁ ⢹⣿⣿⣿⣿⠏ ⠛ ⠸⢿⡄ ⠠⣄⡀ ⠈⠃ ⢹⣿⣟⠃ ⠘⠂ ⠸⣿⡄ ⠠⣿⣿⣶⡄ ⣠⣄⣀ ⠺⢿⡏ ⠠⣤⣶⣦⣄ ⠹⣗ ⠠⣿⣿⣿⠇ ⠻⣿⣷⣿⣷⣄⡀⢠⣼⣇ ⠠⢴⣿⣿⣿⡟⠋ ⢹ ⢠⣿⣿⡏ ⠈⠉⠉⠉⠛⠡⣼⣿⢏⣰⡄ ⠠ ⠠⣴⣿⣿⣟ ⠠⠿⠟⠚⠛⠃ ⠠⣾⣿⣿⣿⡏ ⢀⣀⣀⣀ ⣀⣠⣴ ⠠⣼⣿⣿⣿⣿⡇ ⠠⣴⣿⣿⣿⣿⣷⡄ ⢠⣾⣿⣿⣿⣿ ⠠⣟⡉⠛⠸⣿⡇ ⠠⢿⣿⣿⣿⣿⣿⠇ ⣰⠿⠿⠿⣿⣿⣿ ⢸⣟⠁ ⠠⣟⡂ ⠁⡀ ⠨⣿⣿⣿⣿⣟ ⠠⢽⣄ ⠉ ⠠⣿⣏ ⠠⠟⠁ ⠠⢿⣄⣀⣠⣼⣿⣿⣿⣿⣿⢤⣤⡞ ⠠⣿⡏⠉⠓ ⣠⣼⣿⣟⡀ ⠠⡗ ⠈⢻⣿⣇⠈⠛⠛⠛⠛⠫⣿⡟ ⠠⣿⡇ ⣿⣿⠿⠿⠇ ⢀⡉ ⢻⡿⢷⣦⣤⣤⣤⡞⠛⠃ ⢸⡇ ⣿⣟ ⠠⣌⡀ ⠉ ⠉⠙⠛⠉ ⠈⠁ ⠠⠄⠐ ⣿⡇ ⠰⡟ ⠠⣤⣤⣄ ⢘⡀ ⣿⣟ ⠠⠟⡀ ⠠⣬⣟ ⣿⣿⡆ ⠺⠇ ⢀⠸⣿⣿⣤⣴⣄⣀⣀ ⣿⣿⣇ ⡀ ⡀ ⡀ ⡠⢿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⡄ ⠺⣿⣿⣿⣿⣷⠟⠁ ⠐⠺⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⡄ ⠠⣾⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣗ ⢹⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⡆ ⢸⣿⣿⣿⣿⣿⣿
- Convert input image to dot-based text
- Convert input text to dot-based text
- Customized parameters for converting images
- A good GUI
If you have a suggestion that would make the project better, please fork the repo and create a pull request.
You can also simply open an issue with the tag enhancement.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Besides, if you find this project useful, don't forget to give it a star !
Aaron Tsai - aarontsaai@gmail.com
Project Link: https://github.com/tsai8890/LeetTimer