在我的tess4j OCR应用程序中,字符识别的准确率很低。我听说,关闭tess4j中的字典将提高准确性,让个人字符被识别。但我不知道该怎么做。有人知道如何关掉tess4j中的字典吗?
发布于 2014-10-20 23:39:53
详情如下:
TessBaseAPISetVariable(handle, "load_system_dawg", "F");
TessBaseAPISetVariable(handle, "load_freq_dawg", "F");或
setTessVariable("load_system_dawg", "F");
setTessVariable("load_freq_dawg", "F");更新
将以下内容放入一个名为bazaar的文件中,例如,放置在configs文件夹下的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/
https://stackoverflow.com/questions/26465087
复制相似问题