c# - Tessnet2 Init-Method crashes with certain tessdata path -
i'm using tessnet2 assembly (which uses tesseract) ocr. unfortunately programm crashes without exception after call init method:
tessnet2.tesseract ocr = new tessnet2.tesseract(); ocr.init(@"d:\test\tessdata\german", "deu", false); the german folder contains 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 use null path works fine because installed tesseract on machine. need solution path because programm deplyoed not ensured tesseract installed.
the problem if have tesseract installed there environment variable set ( tessdata_prefix )which contains path of tessdata. use own path necessary uninstall tesseract , delete environment variable.
Comments
Post a Comment