Tess4j doesn't use it's tessdata folder

前端 未结 4 1616
佛祖请我去吃肉
佛祖请我去吃肉 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:22

    Maybe you haven't the tessdata folder in your main project folder. This folder has all tesseract supported language (it contains files with .traineddata, .bigrams, .fold, .lm, .nn, .params, .size and .word-freq extensions) If you don't have it, follow these steps:

    1. Download tessdata-master folder from github.com/tesseract-ocr/tessdata (from download ZIP button)
    2. Unzip the content of tessdata-master.zip file in your main project folder
    3. Rename tessdata-master to tessdata
    4. Run your java project and test if it work. At least this works for me.

提交回复
热议问题