5

Can anyone tell me how to read the text in an image by using vc++

James Wiseman
  • 29,946
  • 17
  • 95
  • 158
Amala
  • 79
  • 1
  • 2
  • Way more description required - also, why is it tagged as "html"? – Alistair Evans Feb 02 '10 at 10:10
  • 1
    If there is a jpg image of a soccer ball and the text "this is a soccer ball" at the bottom... you want to use c++ to return the text? Come on... – Kris Krause Feb 02 '10 at 10:12
  • For cracking Captchas, I'm guessing? – Antony Woods Feb 02 '10 at 10:12
  • 10
    Slow down a bit, people, this is a brand new user. Edit the question instead of downvoting so he gets an idea how to ask questions here. – soulmerge Feb 02 '10 at 10:13
  • @soulmerge: Agreed, let's not pick on the newbies – James Wiseman Feb 02 '10 at 10:17
  • If you are talking about data encryption buried on images, then it's different. It involves a decryption algorithm that should be run on the image to get back the camouflaged text. Alternatively, if you are talking about reading text in image headers of file formats like JPEG, BMP, etc. then it's a different question. Can you be a bit elaborate on what you're trying to achieve? – legends2k Feb 02 '10 at 10:32
  • From Other related posts teseract is a good bet: http://stackoverflow.com/questions/1697852/c-c-objective-c-text-recognition-library – Slaysn May 11 '17 at 17:32

2 Answers2

8

The technology you are looking for is called "OCR", or "Optical Character Recognition".

Check out this codeproject entry:

http://www.codeproject.com/KB/recipes/OCRwithMODI.aspx

It may help.

Alternatively, this google search should take you a fair amount of the way.

Alistair Evans
  • 36,057
  • 7
  • 42
  • 54
1

I've got no solution, but got this from a Google hit.

http://sourceforge.net/projects/paintlib/

Your question might be better answered if you augmented it with more information. I.e. Why do you want to do this? What image types are you wanting to read?

Give us a background of the requirements, or even motivation. You'll be more likely to get an informed answer.

James Wiseman
  • 29,946
  • 17
  • 95
  • 158