Answer the question
In order to leave comments, you need to log in
Tessnet2 crashes without error, how to make it work?
Hello.
There was a problem while working with tesseract
On a button in a WindowsForm C# application, I write
pictureBox1.Image = (Image)img.Clone();
var ocr = new Tesseract();
ocr.SetVariable("tessedit_char_whitelist", "0123456789");
ocr.Init(@"D:\SUBJECTS\AOD\Terminal Program\WindowsFormsApplication1\tessdate", "eng",false);
List result = ocr.DoOCR((Bitmap)img,Rectangle.Empty);
foreach (tessnet2.Word word in result)
standard code, there are many similar examples on the Internet, but the program crashes without any errors on the line:
ocr.Init(@"D:\SUBJECTS\AOD\Terms Program\WindowsFormsApplication1\tessdate", "
There are similar questions on the Internet, but unfortunately it was not possible to find a single clear answer.
Answer the question
In order to leave comments, you need to log in
Alexander Volkov @AlexanderAm The
problem was solved. As it turned out, a newer version of tessnet was already installed on the computer, though it remained a mystery where it came from.
The version I was working with saw new language packs and tried to connect to them, but she was not able to "chew" them.
As a result, I had to remove all versions of the program that were on the computer and clean the registry. After such a procedure, the program works correctly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question