Strength of Dictionary in Tesseract 3

前端 未结 2 2325
独厮守ぢ
独厮守ぢ 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:42

    According to http://code.google.com/p/tesseract-ocr/wiki/FAQ, you change these variables:

    enable_new_segsearch    1
    language_model_penalty_non_freq_dict_word 0.2
    language_model_penalty_non_dict_word 0.3
    

    Increase their values to make Tesseract more biased to dictionary words.

    Note: You must set enable_new_segsearch, otherwise they'll have no effect.

提交回复
热议问题