Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Starred immediatly. I was needing something like this for a loooong time, thank you :) i will raise issues if i find some bugs, beware.
-
hexc11037yTo improve it you could either use the brightness of each pixel to determine a ASCII mapping, for darker pixel, use a character that filled in more, or you could computer gradiants for small sets of pixels like 3x3 and use a character that follows the gradiants as best as possible. Would make for more interesting results.
Edit: looks like you might be using the brightness approach? -
@hexc will look into the things you mentioned. Currently my approach is pretty basic, I use opencv to get a matrix of different pixel colors. After that i map the most frequent colors to a symbol. There is additional logic to combine colors that are similar like red and maroon, so they are assigned the same symbol.
-
py2js27247y@JSSaini07 nope. All distorted and not even in correct shape, also I want to coloured one. -
@py2js color is pretty easy to include (will do this), Also distortion is due to force fitting it into terminal space.
Related Rants




Stackoverflow.
It changed my life, really. 😁
!rant
Just wrote an image to ascii art converter
https://github.com/JSSaini07/...
random
code
programming
hack
python
opencv
image processing