Show HN: I wrote a rust program to translate images into textual line art
github.com
github.com
Example in Windows Terminal: https://user-images.githubusercontent.com/49044530/102044900...
Details on how it works in https://github.com/microsoft/Terminal/issues/448#issuecommen... , https://github.com/microsoft/Terminal/issues/448#issuecommen... and https://github.com/microsoft/Terminal/issues/448#issuecommen...
Is the main difference the size of the masks? Yours appear to be 8x4, and png2linetext uses 3x3. It would make sense that the output is higher resolution. Maybe we can do better with larger mask sizes? :D
Of course derasterizer also gets more resolution through color, whereas png2linetext uses just black and white.
Edit: Ah, I guess the magic here is `adjudicate`, which selects the closest match. Mine is very dumb in this regard, or I guess is "pre-matched" by me.
Edit2: I'm going to see what happens with a larger mask!
Edit3: Definitely getting some nicer lines but I lose all the details. I think a marching cubes-like algorithm could work really well here.
Edit4: Based on your project I inferred that adding more matches seems to add more resolution and yeah, outputs are looking even nicer now. I updated the repo! I also used shapes which are less sharp rather than "perfect match".
Was trying to put project logo into a cli Easter egg.
BTW, ImageMagick can export Unicode Braille files. Something like convert foo.png foo.ubrl will give you a dotified textual representation.