Why I am not able to recognize text in image using Tesseract? On debuggin the code after Init case the application isn't working. Required dll is also added. The exe and testdata folder compatible is set in the bin/debug folder. I am using C#3.5 too. Did so following below link:
http://www.dotnetissues.com/2011/09/ocr-in-c-using-googles-tessnet2-fetch.html[
^]
My Code is as follows:
string imagename = System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Images\out.tif";
Bitmap image = new Bitmap(imagename);
tessnet2.Tesseract ocr = new tessnet2.Tesseract();
//ocr.SetVariable("tessedit_char_whitelist", "0123456789"); // If digit only
ocr.Init(@"D:\OCR R & D\OCR\TesseractWindowsTest\TesseractWindowsTest\bin\Debug\", "eng", false); // To
List<tessnet2.word> result = ocr.DoOCR(image, Rectangle.Empty);
foreach (tessnet2.Word word in result)
Console.WriteLine("{0} : {1}", word.Confidence, word.Text);