r/AskProgramming • u/GarowWolf • Aug 24 '26
Python Image converter feedback
I would like a feedback on a project I am working on.
It is an images converter, from .png to .txt and with braille as characters.
⠀⠀⠀⠻⠇⠀⠀⠀⠀⠀⠠⠀⠀⠀⠧⠀⠂⠞⠿⠿⠨⠿⠿⠿⠿⠿⠿⠿⠿
⠀⠀⠀⠸⠇⠀⠀⠀⠀⠠⠎⠀⠀⠼⠿⠿⠴⠁⠇⠩⠾⠿⠿⠿⠿⠿⠿⠿⠿
⠀⠀⠀⠸⠇⠠⠦⠀⠀⠿⠇⠀⠼⠿⠿⠿⠿⠀⠀⠸⠿⠿⠿⠿⠿⠿⠿⠿⠿
⠄⠀⠀⠀⠇⠾⠿⠿⠿⠿⠷⠀⠿⠿⠿⠿⠿⠄⠀⠸⠿⠿⠿⠿⠿⠿⠿⠿⠿
⠷⠤⠀⠸⠿⠿⠿⠿⠿⠿⠿⠀⠸⠿⠿⠿⠿⠇⠀⠸⠿⠿⠿⠿⠿⠿⠿⠿⠿
⠿⠿⠷⠄⠿⠿⠿⠿⠿⠿⠇⠰⠾⠿⠿⠿⠿⠃⠀⠀⠿⠿⠿⠿⠿⠿⠿⠿⠿
⠿⠿⠦⠽⠿⠿⠿⠿⠿⠿⠀⠀⠘⠻⠿⠏⠠⠄⠀⠀⠿⠿⠿⠿⠿⠿⠿⠿⠿
⠿⠿⠿⠿⠿⠿⠿⠿⠿⠏⠀⠀⠀⠘⠿⠧⠧⠄⠀⠀⠘⠿⠿⠿⠿⠿⠿⠿⠿
⠿⠿⠿⠿⠿⠿⠿⠿⠿⠇⠀⠀⠀⠿⠿⠿⠿⠧⠀⠀⠀⠻⠿⠿⠿⠿⠿⠿⠿
⠿⠿⠿⠿⠿⠿⠿⠿⠿⠀⠀⠀⠰⠿⠿⠿⠿⠿⠀⠀⠠⠤⠙⠿⠿⠿⠿⠿⠿
⠉⠙⠿⠿⠿⠿⠿⠿⠿⠀⠀⠀⠿⠿⠿⠿⠿⠿⠆⠀⠘⠿⠇⠸⠿⠿⠿⠿⠿
⠴⠶⠿⠿⠿⠿⠿⠿⠇⠀⠀⠸⠿⠿⠿⠏⠿⠿⠇⠀⠀⠈⠠⠾⠿⠿⠿⠿⠿
⠛⠻⠿⠿⠻⠿⠿⠿⠧⠀⠀⠀⠿⠿⠿⠷⠛⠿⠇⠀⠀⠀⠿⠿⠋⠸⠿⠿⠿
⠀⠈⠿⠿⠾⠿⠿⠿⠿⠀⠀⠀⠿⠿⠿⠶⠷⠿⠇⠄⠠⠤⠼⠅⠀⠸⠿⠿⠿
⠀⠠⠿⠿⠿⠿⠿⠿⠩⠄⠀⠀⠸⠿⠿⠿⠿⠿⠷⠷⠾⠿⠿⠿⠇⠸⠿⠿⠿
⠍⠿⠿⠿⠿⠿⠿⠿⠿⠇⠀⠄⠀⠿⠿⠿⠿⠟⠼⠟⠙⠿⠿⠿⠇⠸⠿⠿⠿
⠙⠿⠿⠿⠟⠿⠿⠿⠿⠇⠀⠧⠀⠘⠿⠿⠿⠁⠿⠧⠶⠿⠿⠿⠇⠸⠿⠏⠿
⠂⠻⠿⠿⠿⠿⠿⠿⠿⠇⠀⠘⠀⠀⠬⠹⠀⠰⠿⠿⠿⠿⠇⠏⠃⠸⠿⠿⠇
⠉⠈⠿⠟⠾⠿⠿⠿⠿⠇⠀⠀⠀⠀⠻⠿⠀⠾⠿⠿⠿⠯⠙⠿⠄⠘⠿⠿⠇
⠇⠀⠧⠾⠿⠿⠿⠿⠿⠁⠀⠀⠀⠀⠈⠿⠰⠿⠿⠿⠿⠿⠿⠿⠀⠀⠿⠿⠇
⠇⠀⠻⠿⠿⠿⠿⠿⠇⠀⠀⠀⠀⠀⠀⠾⠿⠿⠿⠿⠿⠿⠿⠿⠀⠀⠿⠿⠷
⠆⠸⠿⠿⠿⠿⠿⠿⠇⠀⠀⠀⠀⠀⠀⠹⠿⠿⠿⠿⠿⠿⠿⠿⠤⠀⠿⠿⠷
⠒⠲⠿⠿⠿⠿⠿⠿⠁⠀⠀⠀⠀⠀⠀⠈⠽⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠃
⠠⠼⠿⠿⠿⠿⠿⠿⠤⠀⠀⠀⠀⠀⠀⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠀
⠿⠿⠿⠿⠿⠿⠿⠿⠃⠀⠀⠀⠀⠀⠸⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠟⠀
⠿⠿⠿⠿⠿⠿⠿⠿⠀⠀⠀⠀⠀⠀⠸⠿⠿⠿⠿⠿⠿⠿⠍⠿⠿⠿⠼⠇⠀
⠿⠿⠿⠿⠿⠿⠿⠇⠀⠀⠀⠀⠀⠀⠾⠿⠿⠿⠿⠿⠿⠟⠱⠿⠯⠏⠹⠁⠀
⠿⠿⠿⠿⠿⠿⠿⠇⠀⠀⠀⠀⠀⠀⠿⠿⠿⠿⠿⠿⠏⠴⠿⠿⠿⠣⠈⠀⠀
⠿⠿⠿⠿⠿⠿⠿⠇⠠⠀⠀⠀⠀⠰⠿⠿⠿⠿⠿⠍⠴⠿⠿⠿⠿⠇⠦⠤⠀
This is from an image 1600 x 1200, what do you think about it? Is it still clear?
Rate from 1 to 10?
Feel free to ask for conversions and match the results
View all comments
Show parent comment
1
u/GarowWolf Aug 24 '26
steps i do:
-color correction to reduce variety
-resize the image with an average method for the colors
-color correction again to have only white and black pixels
-text conversion
for reddit i can't go past 30 characters per line, maybe i can try to use only narrow images.
it is a woman and all the black spots on the edges are the details of the room xD