如何查找 Tesseract OCR 配置文件中支持的参数 [英] How to find parameters supported in Tesseract OCR config file
问题描述
我想知道 Tesseract OCR 使用的配置文件接受哪些参数,如何编写配置文件等
I want to know what parameters the config file used by Tesseract OCR accepts, how to write a config file, etc.
我在他们的网站上找不到任何相关文档.如何确定支持哪些参数及其含义?
I can't find any documentation about this on their site. How can I determine what parameters are supported, and what they mean?
推荐答案
我在下面的链接中找到了这些说明.他们是关于编写配置文件以及放置它的位置:
I found these instructions in the link below. They are about writing the config file and where to place it:
配置文件是没有 BOM 和 Unix 行尾标记的简单文本文件(在 Windows 上,您可以使用一些高级文本编辑器,例如 Notepad++ 来实现此目的).
config file is simple text file without BOM and with Unix end-of-line mark (on Windows you can use some advanced text editor e.g. Notepad++ to achieve this).
如果您使用 tesseract 可执行文件,这只是如何更改 tesseract 参数的方法.
If you use tesseract executable this is only way how to change tesseract parameters.
配置文件应该位于您的 tessdata/configs 目录中.看看那里的一些例子.
config file should be located in your tessdata/configs directory. Have a look there for some examples.
http://www.sk-spell.sk.cx/tesseract-ocr-parameters-in-302-version.注意是 Tesseract 3.02,其他版本可能会有所不同.
There is a list of all the variables plus descriptions of each one in http://www.sk-spell.sk.cx/tesseract-ocr-parameters-in-302-version. Note it's for Tesseract 3.02, things may be different in other versions.
还要添加一个 pastebin 链接,以防上述链接失效.
Also adding a pastebin link in case the above link becomes dead.
这篇关于如何查找 Tesseract OCR 配置文件中支持的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!