Click here to Skip to main content
15,895,538 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
I need a tesseract wrapper in c#. I am looking for a wrapper which can be used easily from c# implementation.
Posted

First of all, this is Tessnet2, see http://www.pixel-technology.com/freeware/tessnet2/[^].

Wikipedia points out some more .NET projects related to Tesseract, see http://en.wikipedia.org/wiki/Tesseract_%28software%29#Libraries_using_Tesseract_engine[^].

I tried native Tesseract and Tessnet2, was not satisfied with the quality at all.

I tries some much more promising works, but all of them are incomplete. Please see my past answer: OCR Software[^].

—SA
 
Share this answer
 
Comments
Member 8458193 13-Dec-11 16:36pm    
Bitmap image = new Bitmap("eurotext.tif");
tessnet2.Tesseract ocr = new tessnet2.Tesseract();
ocr.SetVariable("tessedit_char_whitelist", "0123456789"); // If digit only

ocr.Init(@"C:\Users\MyUserName\Desktop\tessdata", "eng", true); // To use correct tessdata
Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1");
List<tessnet2.word> result = ocr.DoOCR(image, Rectangle.Empty);
foreach (tessnet2.Word word in result)
Console.WriteLine("{0} : {1}", word.Confidence, word.Text);


I got error at the line where ocr.init() is and I don't know what to do.it says ocr.init takes as first argument tessdata, second argument as string language and as third argument boolean. I couldn't find the answer this problem for days.I tried every tessdata in tesseract site.can you help to use this tessnet2.dll
Vitaliy.NET 25-Mar-12 8:07am    
Try install tessdata (you can find it in Program Files folder) for Tessnet2 version not Tessnet3.
Sergey Alexandrovich Kryukov 25-Mar-12 13:27pm    
Thank you for the note.
I tries Tessnet (I think Tessnet2), it works, but I was frustrated with the quality...
--SA
 
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