tessnet2

Tessnet2 Init-Method crashes with certain tessdata path

蓝咒 提交于 2019-12-02 04:23:38
I'm using the Tessnet2 assembly (which uses Tesseract) to do OCR. Unfortunately the programm crashes without any exception after I call the init method: tessnet2.Tesseract ocr = new tessnet2.Tesseract(); ocr.Init(@"D:\Test\Tessdata\german", "deu", false); The german folder contains the following tesseract 2 word data: deu.DangAmgigs deu.freq-dawg deu.inttemp deu.normproto deu.pffmtable deu.unicharset deu.user-words deu.word-dawg If I use null for the path it works fine because I installed tesseract on my machine. However I need a solution with the path because where the programm will be

tessnet2 fails to load

心已入冬 提交于 2019-11-30 05:07:58
i'm using the tessnet2 wrapper to the Tesseract 2.04 Source on windows XP, configured it to work with x86. TessarctTest project main function contains: Bitmap bmp = new Bitmap(@"C:\temp\New Folder\dotnet\eurotext.tif"); tessnet2.Tesseract ocr = new tessnet2.Tesseract(); // ocr.SetVariable("tessedit_char_whitelist", "0123456789"); ocr.Init(@"C:\temp\tessdata", "eng", false); // List<tessnet2.Word> r1 = ocr.DoOCR(bmp, new Rectangle(792, 247, 130, 54)); List<tessnet2.Word> r1 = ocr.DoOCR(bmp, Rectangle.Empty); int lc = tessnet2.Tesseract.LineCount(r1); when i try to run the program it crashes on