I guess one could train a Convolutional Neural Network to convert the ASCII art to an actual image. Something like this, but for ASCII: http://sketchy.eye.gatech.edu/
Wow, that works surprisingly well. I drew a terrible cat face, and it managed to get it dead on.
Source: http://xkcd.com/221/
I wondered how it figured out to use the elephant JPEG from the ASCII art. Well:
(https://github.com/sigvef/sigvehtml/blob/e2cfa586f43aacbb374...)Very xkcd 221.