[英]How to turn off the dictionary in tess4j?
我的tess4j OCR應用程序中的字符識別准確性非常低。 我聽說關閉tess4j中的詞典將通過識別單個字符來提高准確性。 但是我不知道該怎么做。 有人知道如何在tess4j中關閉字典嗎?
如下:
TessBaseAPISetVariable(handle, "load_system_dawg", "F");
TessBaseAPISetVariable(handle, "load_freq_dawg", "F");
要么
setTessVariable("load_system_dawg", "F");
setTessVariable("load_freq_dawg", "F");
更新 :
將以下內容放入一個名為bazaar
的文件中,例如放置在configs
文件夾下:
load_system_dawg F
load_freq_dawg F
然后將文件名傳遞給適當的方法:
List<String> configs = Arrays.asList("bazaar");
instance.setConfigs(configs);
參考文獻:
https://github.com/tesseract-ocr/tesseract/blob/master/doc/tesseract.1.asc
http://tess4j.sourceforge.net/docs/docs-1.4/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.