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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -