mercredi 10 octobre 2012

ASCII Art Generator - Convert your photo to text !


Hi everyone. Well, basically this will analyse all pixels of your photo and change them to a character depending on his contrast.
I made a lot of research to find which character would be as the more contrasted, and which one would be as the less, and I came up with this :  { "#", "#", "@", "%", "=", "+", "*", ":", "-", ".", " " }; As you guessed, the "#" is the character representing the most contrasted pixels, and the " " representing the less. I classed them in an array. The result is really impressing I guess, I never thought it would do that. Pretty nice all the way :).

Here's an example on notepad, reducing the character size to 2.



Aucun commentaire:

Enregistrer un commentaire