Tessnet2 Init-Method crashes with certain tessdata path

后端 未结 2 789
刺人心
刺人心 2021-01-25 06:37

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:

tessne         


        
相关标签:
2条回答
  • 2021-01-25 07:20
    Try the path:
         @"D:\Test\Tessdata"
    
    0 讨论(0)
  • 2021-01-25 07:42

    The problem is that if you have Tesseract installed there is an environment variable set ( TESSDATA_PREFIX )which contains the path of the tessdata. To use your own path it is necessary to uninstall Tesseract and delete the environment variable.

    0 讨论(0)
提交回复
热议问题