how do you convert a black and white image or color image to ASCII text?

Does anyone know of some source code in C/C++ to convert a black and white or color image to ASCII text?
yankeebushsoftwareAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SwissKnifeCommented:
Are you looking for an OCR (Optical Character recogntion) algorithm to convert scanned text (image) to text?
0
jkrCommented:
Check out http://alterlife.org/asciiartist/ ("Alternates ASCII Artist - Image to ASCII Art converter"), it comes with full source code:

Alternates ASCII Artist is an ASCII Art Generator - an open-source C++ program that can help you convert an image into a plain text file that resembles the image used to create it.
0
yankeebushsoftwareAuthor Commented:
I don't know if its an OCR or not? How do you know?
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

jkrCommented:
OCR character recognition, IMO that's not what you want (if I understood you right). Just take a look at http://alterlife.org/asciiartist/ and see if that is what you meant.
0
yankeebushsoftwareAuthor Commented:
I need to take an image convert it to ASCII then convert it to text
0
jkrCommented:
So you want to read the text on an image? Then take a look at http://www.codeproject.com/KB/recipes/OCRwithMODI.aspx ("OCR With MODI in Visual C++")
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.