Click here to Skip to main content
15,305,969 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating an application in asp.net,I am using MS office 2007 OCR component
I am inputting an image and on clicking a button it is printing the text on image,its working fine

The problem is arising when i am using a recaptcha image as input ie the image of recaptcha image,
it is throwing exception "OCR running Error"
I m using this code:
MODI.Document md = new MODI.Document();
                   md.Create(Convert.ToString(Image Name Goes here));
                   md.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true);
                   MODI.Image image = (MODI.Image)md.Images[0];
                   Response.Write(image.Layout.Text.Trim());



it is throwing exception at md.OCR method,i also tried miLang_SYSDEFAULT but same proble is arising
Posted
Updated 4-Jul-11 23:25pm
v3

1 solution

Good.

Recaptcha is trying to do two things:
1) Prove that you are a human being, rather than a computer.
2) Convert images that failed to be processed by OCR into text.

So this brings us to a couple of things:
1) Your application would (if working) break the "human being" check, so captchas would be become even harder to work out.
2) What part of "failed to be processed by OCR" did you not understand?
   
Comments
Syed Salman Raza Zaidi 5-Jul-11 6:07am
   
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900