Click here to Skip to main content
15,900,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Tesseract 2 with c# .net 4.5
Whenever code reaches to OCR.InIt() method, it comes out of code and program stops execution.
Even Catch block does not hold the code.
Please let me know how to check the problem.

C#
Bitmap image = new Bitmap(ofd_OpenPhoto.FileName);
                                tessnet2.Tesseract ocr = new tessnet2.Tesseract();
                                ocr.Init("C:\\tessnet2\\tesseract-ocr\\tessdata", "eng", false);


Please let me know, how to use Init() method, Should I remove null?

Thanks.
Posted
Updated 15-Aug-18 23:18pm
Comments
kawadeprasad 17-Dec-13 0:42am    
Tesseract latest version has files under folder 32bit and 64 bit, I copied those files under main folder names Tesseract2 and application's bin/Debug folder and my task is completed. I overcame that error.

1 solution

ocr.Init("C:\\tessnet2\\tesseract-ocr\\tessdata\\", "eng";
 
Share this answer
 
Comments
CHill60 16-Aug-18 6:56am    
This won't compile.

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