Strength of Dictionary in Tesseract 3

前端 未结 2 2377
独厮守ぢ
独厮守ぢ 2021-02-20 14:19

How do I increase/decrease the strength of the dictionary in tesseract 3 ?

In the FAQ it says I need to change the value of \"NON_WERD\" and \"GARBAGE_STRING\" but they

2条回答
  •  礼貌的吻别
    2021-02-20 14:57

    To turn tesseract's language-knowing abilities entirely, run each of these:

    tess.setTessVariable("load_system_dawg", "false");
    tess.setTessVariable("load_freq_dawg", "false");
    tess.setTessVariable("load_punc_dawg", "false");
    tess.setTessVariable("load_number_dawg", "false");
    tess.setTessVariable("load_unambig_dawg", "false");
    tess.setTessVariable("load_bigram_dawg", "false");
    tess.setTessVariable("load_fixed_length_dawgs", "false");
    

    Or, for finer control, just some of them. (I don't know of a place explaining well what they all do, but the names are pretty explanatory) This is code from my current project, using Tess4J, but you can easily translate them to c++ or a config file or whatever else you need.

提交回复
热议问题