Tessnet2 Init-Method crashes with certain tessdata path

后端 未结 2 788
刺人心
刺人心 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: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.

提交回复
热议问题