Original Usenet thread from alt.ascii-art, started 24 Jun 2008.
_ _ _ _ _ _ | | | |___ ___ _ __ ___| |_ / \ _ __ ___| |__ (_)_ _____ | | | / __|/ _ \ '_ \ / _ \ __| / _ \ | '__/ __| '_ \| \ \ / / _ \ | |_| \__ \ __/ | | | __/ |_ / ___ \| | | (__| | | | |\ V / __/ \___/|___/\___|_| |_|\___|\__| /_/ \_\_| \___|_| |_|_| \_/ \___|
image to ascii converter that takes the shape of character into account
alt.ascii-art
· 2 messages · 24 Jun 2008 - 25 Jun 2008
Hi. A couple of years ago, there was a challenge for the best ascii art generator (image to ascii art) I don't know the results though. I searched the net, but all stuff I found works by 'character brightness' and treats characters as pixels. The result is either very huge images - loss of all details, nothing that would ever fit into an neat email signature or similar. Hand creating is always an option of course, but I would like to know if anyone knows a good program for line-art to ASCII conversion. Years ago I wrote my own software for this, its a part of motiontrack (http://motiontrack.sourceforge.net) and attempts to find the best possible ASCII character for every part of the image by weighted pattern matching. I am thinking about getting that project out of the fridge and improving it a bit. Is there anything out there that's better, so I can compare results? regards Corvus PS: obascii : this is the (crappy) source image http://cybertrench.com/test2.png this is the result of a conversion: > menhance test2.png -q 75 -s 210 x.png >/dev/null 2>&1; > masciiart x.png 2>/dev/null |sed -e 's/^/> /' > > _/ > _/' ,/' > /' ," ,*' > _we^^m _/ ,/ ,/ > _m^~ j' ,/ ,/ > _*' _/ _/ _/' > _/' ,' /' /' > j' _,am*mm--ww_ p' ,~ ," > p' w^~ ~\_ _f /' /' > p ," " ,' _/ _/ > j' / _mmmemw_ l j' j' j' > ' f _/' \ I j' / / > ] j p' l_a*mq` L f ' _/ / > ' ' j' #L F j' q' _, ,' j' > j j I ~ / f f j@ ,' /' > I t j~ _f / jQ' r' / > | b_ "^^^" _a' / j#F ' f > ] "w,_ __jm~ _/ q#f _ ,' > , ~"""~~ _/' _## Q ~ > ~w _/' /dV^ _@ / > \w_ __m^' { #, # & > ~"^^mm^"~ ` q@I #' f > / #Q[ d' _A , , > _^ Jfq j( _g' q ' _' > ' f j@1 #' ._______ -l & f > ` j _#"B' &' ~~"g _jM^w j 1 qQ f > / ' /A' # jY a' r~ ' j d^^ fI / > / 7 j0Y f # _/ p f H_ j I q' > ' jM ' j' #H /' j' j j ] ' I [ > 7 /Y # #'j, ,' ! j' I \_ I [j > '/7 f ,/f [[ _/ [__,/ ' \_ j' Lf > ]/ ' ' ,jMY N j' __,, ~~~ ` I " > 7'< j',#'j' N ^^^^^"""~~~ > '/ F d' [ |7 > j j'j' d ]E > ' ##' RI > ` j#' II , , j' > 4' N' _ ' /7 > f j] l\w ] / I > # II I [ I J ' > /' j I ' L g__j_ > j ] Lj/ j _' ~T~""' > ' ' 4~"! I f ] > / j f [ f _ > ' f j j _,mem^ j ` > ' mM |"~ ` > j > I > ' (i hope google news doesnt mess this up)
Hi,
with JavE6.0rc1 using "Edge Detection" conversion algorithm I get this
result:
_,,---
_.-'
,'
,' _,.----"`----._
,' ,' \
,' ,' ,,-----.. | ,-
.' / ,'. __.. | | ,-' ,-' ,.
| | / '`' ,' / / ,' ,-' ,-'
| | | ,' _' / ,' ,-' ,'
| `. `----' ,' ,' ,' ,' `-'
\ `--.....--' ,' ,' ,' ,'
\ ,-' ,' ,-' ,'
`-.._____,,.--' / / ,'
- ,' ,'
,' ,'
,' ,' ,'
/ ,'
/ / <
.<' / ,
|-> / .^
/ ,' ,'
,[ /
/ ,'| /
/ || _/
.' / |,
,' . ,'|
' | ,' ||
<`,' .\
, . / ,' |
',' ||
/ |
/ /
/ /
, |
/
|
.'
|
| /
'-------.._ ,.. ,'. /| /
/' ,-' | ``- / | /
,-' / / /\ ,'.' /
,' | ,' / `. / | /
/' `..,' ' ` / '/
. ..-------''
, ,\
,._ .' '.'
| \ | ,' |
| ,' | :`..L...
+^\ | / |
| / | __ / \
/,' '-''' <
(I have split up and rearanged the conversion result w/o altering its
ascii content, because I am pretty sure the lines would break otherwise)
Regards,
Markus
for...@anonymous.cybertrench.com wrote:
> Hi.
>
> A couple of years ago, there was a challenge for the best ascii art
> generator
> (image to ascii art) I don't know the results though.
>
> I searched the net, but all stuff I found works by 'character
> brightness' and treats characters as pixels. The result is either very
> huge images - loss of all details, nothing that would ever fit into an
> neat email signature or similar.
> Hand creating is always an option of course, but I would like to know
> if anyone knows a good program for line-art to ASCII conversion.
>
> Years ago I wrote my own software for this, its a part of motiontrack
> (http://motiontrack.sourceforge.net) and attempts to find the best
> possible ASCII character for every part of the image by weighted
> pattern matching.
>
> I am thinking about getting that project out of the fridge and
> improving it a bit. Is there anything out there that's better, so I
> can compare results?
>
>
> regards
>
> Corvus
>
> PS: obascii :
>
> this is the (crappy) source image
> http://cybertrench.com/test2.png
>
> this is the result of a conversion:
>
>> menhance test2.png -q 75 -s 210 x.png >/dev/null 2>&1;
>> masciiart x.png 2>/dev/null |sed -e 's/^/> /'
>>
>> _/
>> _/' ,/'
>> /' ," ,*'
>> _we^^m _/ ,/ ,/
>> _m^~ j' ,/ ,/
>> _*' _/ _/ _/'
>> _/' ,' /' /'
>> j' _,am*mm--ww_ p' ,~ ,"
>> p' w^~ ~\_ _f /' /'
>> p ," " ,' _/ _/
>> j' / _mmmemw_ l j' j' j'
>> ' f _/' \ I j' / /
>> ] j p' l_a*mq` L f ' _/ /
>> ' ' j' #L F j' q' _, ,' j'
>> j j I ~ / f f j@ ,' /'
>> I t j~ _f / jQ' r' /
>> | b_ "^^^" _a' / j#F ' f
>> ] "w,_ __jm~ _/ q#f _ ,'
>> , ~"""~~ _/' _## Q ~
>> ~w _/' /dV^ _@ /
>> \w_ __m^' { #, # &
>> ~"^^mm^"~ ` q@I #' f
>> / #Q[ d' _A , ,
>> _^ Jfq j( _g' q ' _'
>> ' f j@1 #' ._______ -l & f
>> ` j _#"B' &' ~~"g _jM^w j 1 qQ f
>> / ' /A' # jY a' r~ ' j d^^ fI /
>> / 7 j0Y f # _/ p f H_ j I q'
>> ' jM ' j' #H /' j' j j ] ' I [
>> 7 /Y # #'j, ,' ! j' I \_ I [j
>> '/7 f ,/f [[ _/ [__,/ ' \_ j' Lf
>> ]/ ' ' ,jMY N j' __,, ~~~ ` I "
>> 7'< j',#'j' N ^^^^^"""~~~
>> '/ F d' [ |7
>> j j'j' d ]E
>> ' ##' RI
>> ` j#' II , , j'
>> 4' N' _ ' /7
>> f j] l\w ] / I
>> # II I [ I J '
>> /' j I ' L g__j_
>> j ] Lj/ j _' ~T~""'
>> ' ' 4~"! I f ]
>> / j f [ f _
>> ' f j j _,mem^ j `
>> ' mM |"~ `
>> j
>> I
>> '
>
> (i hope google news doesnt mess this up)
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this thread.
These messages were posted publicly to the newsgroup
alt.ascii-art
in 2008 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.