Tess4j doesn't use it's tessdata folder

前端 未结 4 1609
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-16 01:54

I am using tess4j, the java wrapper of Tesseract. I also have the normal Tesseract installed. I am not exactly sure how tess4j is meant to work, but since it comes with a te

4条回答
  •  粉色の甜心
    2020-12-16 02:48

    Let your TESSDATA_PREFIX environment variable point to the tessdata folder of your Tess4j.

    Usually you set up these variable during an installation on the system, but you maybe find a solution here: How do I set environment variables from Java?

    You have to do it on the system which runs your app because the tessdata .dlls depend on this enviroment variable.

提交回复
热议问题