How to find parameters supported in Tesseract OCR config file

sashoalm picture sashoalm · Oct 22, 2012 · Viewed 58.4k times · Source

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?

Answer

sashoalm picture sashoalm · Mar 28, 2013

I found these instructions in the link below. They are about writing the config file and where to place it:

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).

If you use tesseract executable this is only way how to change tesseract parameters.

config file should be located in your tessdata/configs directory. Have a look there for some examples.

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.

Edit: Also adding a pastebin link in case the above link becomes dead.