本文介绍了Tesseract安静模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Ubuntu 下,我在 3.02 版中使用 tesseract-ocr.尤其是python的包装器pytesseract,不过这个问题也是关于命令行工具的.

Under Ubuntu I use tesseract-ocr in version 3.02. Especially the wrapper pytesseract for python, but this question is also about the commandline-tool.

在常见问题解答下https://code.google.com/p/tesseract-ocr/wiki/FAQ#How_can_I_make_the_error_messages_go_to_tesseract.log_instead_of

写到有一个选项/配置文件安静"抑制了tesseract的信息行.

is written that there is a option/config-file "quiet" supressing the info line of tesseract.

但是,当我用这个选项调用 tesseract 命令行时,它说

However, when I call tesseract command line with this option, it says

read_params_file:无法打开安静"

"read_params_file: Can't open quiet"

没错,对应的config-folder里没有quiet"-config-file.

And it is right, in the corresponding config-folder there is no "quiet"-config-file.

我可以从哪里获得它或如何创建它?

Where can I get it or how can I create it?

我想压制的信息行是:Tesseract Open Source OCR Engine v3.02 with Leptonica".

The info-line which I want to supress is: "Tesseract Open Source OCR Engine v3.02 with Leptonica".

推荐答案

quiet 是 tesseract-ocr 存储库的一部分:https://github.com/tesseract-ocr/tesseract/blob/master/tessdata/configs/quiet

quiet is part of tesseract-ocr repository: https://github.com/tesseract-ocr/tesseract/blob/master/tessdata/configs/quiet

这篇关于Tesseract安静模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 11:07