Click here to Skip to main content
15,890,374 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
I am trying to implement the OCR Software using the C#; I'm new in this field;
Can any body tell me how to make use of Tesseract OCR Engine in C#?
Posted
Comments
[no name] 26-Sep-13 9:49am    
Reading the documentation would be a good start don't you think?
Rick van Woudenberg 26-Sep-13 9:56am    
Hi everyone, can you please tell me where I can get ferrari's for free. Not the toy ferrari's but the real one. No dents please. And can you pick it up for me and deliver it on my doorstep. Make sure it's red, no other color. Oh , and I want it in two hours.
Prasad Khandekar 26-Sep-13 9:56am    
Have a look at http://www.pixel-technology.com/freeware/tessnet2/ a c# wrapper around the library.

 
Share this answer
 
This post introduces an easy way to write OCR program in C#.
http://www.codepool.biz/ocr-barcode-twain/twain-sdk/have-fun-with-the-wpf-demo-of-net-twain-5-0.html[^]

C#
dynamicDotNetTwainThum.IfShowCancelDialogWhenBarcodeOrOCR = true;
dynamicDotNetTwainThum.OCRResultFormat = Dynamsoft.DotNet.TWAIN.OCR.ResultFormat.Text;
dynamicDotNetTwainThum.OCRLanguage = "eng";
byte[] bytes = dynamicDotNetTwainThum.OCR(dynamicDotNetTwainThum.CurrentSelectedImageIndicesInBuffer); // recognize the buffered image
if (bytes != null)
{
   SaveFileDialog dlg = new SaveFileDialog();
   dlg.Filter = "Text File(*.txt)|*.txt";
   if (dlg.ShowDialog().Value)
   {
      System.IO.File.WriteAllBytes(dlg.FileName, bytes); // write recognized text to text file
   }
}
 
Share this answer
 

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