ASP.NET - How to add Screen OCR functionality in ASP.Net/C# ?

Asked By Anish V on 22-Jun-12 05:06 AM
Earn up to 10 extra points for answering this tough question.
Hi All,

I want to OCR the current screen upon selection. How can we achieve that? Any dll's or ocx available ? Or Any third party dll's for this ?. I have to do it in C#.

Expecting a reply,

regards,
Anish
S K replied to Anish V on 22-Jun-12 11:19 AM
There are lots of third party dll to implement OCR in .net

You can use Tesseract OCR in C# by following the instructions given in http://stackoverflow.com/questions/30328/ocr-with-the-tesseract-interface.

http://maniish.wordpress.com/2007/03/03/tesseract-ocr-library-successfully-compiled-in-window/ might also be of interest. Seems they got the source to compile on Windows.


Also see
http://code.google.com/p/tesseract-ocr/

hope this helps you
[)ia6l0 iii replied to Anish V on 22-Jun-12 01:03 PM
There is a OCR component that is packaged with Microsoft Office v2007 and above. But note that to run this successfully on the web server, you need to install the OCR component with the Micrsoft Office on your webserver. 

Once you have the OCR component with Micrsofot Office installed, open the visual studion asp.net project, and add references to teh Microsoft Office Document Imaging interop library. You should find it as a com library. This is some sample code that I pulled from a code collection website, that is exactly what you should write as well.

//create a modi document
MODI.Document modiDocument = new MODI.Document(); 
modiDocument.Create(filename); 
//set the attributes
modiDocument OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true); 
//load the image from the file
MODI.Image image = (MODI.Image)modiDocument.Images[0];

//use a filestream to create a new text file
FileStream txtFile = new FileStream(fileName + ".txt", FileMode.CreateNew);
//write the text from the image.
using(StreamWriter sw = new StreamWriter(txtFile))
{
sw.Write(image.Layout.Text); 
}

Hope this helps.
Jitendra Faye replied to Anish V on 25-Jun-12 02:28 AM
For this you need to use SDK for integrating OCR functionality.

follow these links-

http://www.codeproject.com/Articles/3907/Creating-Optical-Character-Recognition-OCR-applica
http://www.codeproject.com/Articles/41709/How-To-Use-Office-2007-OCR-Using-C

here you will get example.
help
how can i read OCR in ASP.net. Plz. help me. it's urgent. http: / / code.google.com / p / tesseract-ocr / http: / / www
I wanna include OCR facility to extract text from a scanned image, that means wanna perform OCR functionality to my project. Can any body tell me the links to purchase the best utility for OCR and Barcodes, So that I can purchase that one. Thanx in advance to all. Not gclid = CKPMqanNupUCFRYFewod6zhiQw http: / / www.vicidocs.com / vicidocsforms.asp http: / / www.eggheadcafe.com / software / aspnet / 30643102 / ocr-software-recommendati.aspx http: / / www.atalasoft.com / products / dotimage / ocr / ?gclid = CIDy7-fMupUCFQE_egodiDSLQA refer these links http: / / weblogs.asp.net / jgalloway / archive / 2006 / 10 / 01
I have created one asp.net application . like student registraion form. so the fields are Student name, address etc. i have tag, but they would show the TIFF. For either of these mechanisms, you will need OCR and a way to encode the data you get either into PDF or the custom TIFF tag. For open source OCR, take a look at Tesseract from Google. Disclaimer: I work at Atalasoft. Our imaging SDK http: / / atalasoft.com / products / dotimage , has add-ons for OCR that can make searchable PDF, and can add and edit TIFF tags. Simple way is available.jpg" / > < cc1 : HoverMenuExtender ID = "hm1" runat = "server" TargetControlID = "StudentNameLabel" PopupControlID = "imghover" PopupPosition = "Right" / > keywords: ASP.NET, Tiff image description: How to get Position of Text on Tiff image. I have
Hello Dear, I am doing my MCA Final project Database. and Scanner reads the OMR Sheet. and evaluate it. I want a coding of ASP.NEt to read OMR sheet through scanner and result will be generated. Is there any one who can help me ? Please guide me. you can not use OMR Reader with asp.net if you want to use then you should have some Webservice you can do it OMR else you need third party SDK's like below . http: / / www.leadtools.com / sdk / ocr / omr.htm?SrcOrigin = Google-CPC-%2BOMR%20%2BSDK&MatchType = b&gclid = CL2u1723zqgCFQd76wode37khQ hope this will help you omrhome.com / http: / / www.omrsolutions.com / news_omr / index.php http: / / www.omr.in / keywords: MatchType, ASP.NET, Application, Reader, database, Offline, Online, OMR description: Help in Project Hello Dear, I am
hi everyone, iam trying to convert scanned image pdf me, thanks in advance You can use some 3rd party tools like Image to PDF OCR Compressor, refer this for more details http: / / www.codeproject.com / kb / showcase / SearchablePDFs.aspx hi to searchable pdf using C#. pls if u find any code just help me. keywords: ASP.NET, Image, searchable pdf description: scanned image pdf to searchable pdf hi everyone, iam trying to
Hi how to create a custom web server control get your self going http: / / www.dotnetspider.com / resources / 40017-CAPTCHA-Web-Server-Control-Using-ASP-Net.aspx http: / / www.codeproject.com / KB / custom-controls / CaptchaControl.aspx just let me know. . if x, z, y; Random rand = new Random(), upperlower = new Random(), captcha = new Random(); String backgroundstring = "OCR"; Bitmap code_img = new Bitmap(80, 30); captchagraphic = Graphics.FromImage(code_img); captchagraphic.Clear(Color.FromArgb(209 i have to do Regards, Harsh Shah keywords: PageHi Sandra Jain Thanx, ImageFormat, HatchBrush, FontStyle, ASP.NET description: Captcha- Custom web server control Hi how to create a custom web server control
Dear all, I my application i need complete this task from this situation. Thanks and regards, Balu.A You have to perform OCR (Optical Character Recognition) on the image to extract text. Dear Mr.Peter as u said i am using OCR net component in that demo file is there what ever gif file containing text that But how to select that out result whether or how to integrate that tool in asp.net web application thanks and regards, Balu.A Dear Balu, Im also working on a project How to convert .gif file which contains text only need to convert to .doc in asp.net Dear all, I my application i need to convert the .gif file which con
Dear all, I need to Please send me examples for this scenario thanks & regards, Eswar and you plan on performing OCR (Optical Character Recognition) on it to convert the image text to plain text and store class, Optical Character Recognition, Application description: How to convert .gif file to .doc formate in asp.net using c# Dear all, I need to convert .gif file to .doc formate in my
Sir, How can I get OCR for MODI 2007 to read OCR ? Plz reply I am hang up. Hi Dikshan, The name of the COM object that 0 Type Library . Reference :- http: / / www.devsource.com / c / a / Languages / Using-The-Office-2007-OCR-Component-in-C / create a Windows Application using C#. From Visual Studio Solution Explorer > > right Check for JPG File Format if (fileExtension = = ".jpg" | | fileExtension = = ".JPG" ) / / or / / ImageFormat.Jpeg.ToString() { try { / / OCR Operations . . . MODI.Document md = new MODI.Document(); md.Create(Convert.ToString(files.Current)); md.OCR