|o||hocr - Output in hOCR format instead of as a text file.|
Nota Bene: The options -l lang and -psm N must occur before any configfile.
There are currently language packs available for the following languages:
ara (Arabic), aze (Azerbauijani), bul (Bulgarian), cat (Catalan), ces (Czech), chi_sim (Simplified Chinese), chi_tra (Traditional Chinese), chr (Cherokee), dan (Danish), dan-frak (Danish (Fraktur)), deu (German), ell (Greek), eng (English), enm (Old English), epo (Esperanto), est (Estonian), fin (Finnish), fra (French), frm (Old French), glg (Galician), heb (Hebrew), hin (Hindi), hrv (Croation), hun (Hungarian), ind (Indonesian), ita (Italian), jpn (Japanese), kor (Korean), lav (Latvian), lit (Lithuanian), nld (Dutch), nor (Norwegian), pol (Polish), por (Portuguese), ron (Romanian), rus (Russian), slk (Slovakian), slv (Slovenian), sqi (Albanian), spa (Spanish), srp (Serbian), swe (Swedish), tam (Tamil), tel (Telugu), tgl (Tagalog), tha (Thai), tur (Turkish), ukr (Ukrainian), vie (Vietnamese)
To use a non-standard language pack named foo.traineddata, set the TESSDATA_PREFIX environment variable so the file can be found at TESSDATA_PREFIX/tessdata/foo.traineddata and give Tesseract the argument -l foo.
Tesseract config files consist of lines with variable-value pairs (space separated). The variables are documented as flags in the source code like the following one in tesseractclass.h:
STRING_VAR_H(tessedit_char_blacklist, "", "Blacklist of chars not to recognize");
These variables may enable or disable various features of the engine, and may cause it to load (or not load) various data. For instance, lets suppose you want to OCR in English, but suppress the normal dictionary and load an alternative word list and an alternative list of patterns these two files are the most commonly used extra data files.
If your language pack is in /path/to/eng.traineddata and the hocr config is in /path/to/configs/hocr then create three new files:
the quick brown fox jumped
load_system_dawg F load_freq_dawg F user_words_suffix user-words user_patterns_suffix user-patterns
Now, if you pass the word bazaar as a trailing command line parameter to Tesseract, Tesseract will not bother loading the system dictionary nor the dictionary of frequent words and will load and use the eng.user-words and eng.user-patterns files you provided. The former is a simple word list, one per line. The format of the latter is documented in dict/trie.h on read_pattern_list().
The engine was developed at Hewlett Packard Laboratories Bristol and at Hewlett Packard Co, Greeley Colorado between 1985 and 1994, with some more changes made in 1996 to port to Windows, and some C++izing in 1998. A lot of the code was written in C, and then some more was written in C++. The C\++ code makes heavy use of a list system using macros. This predates stl, was portable before stl, and is more efficient than stl lists, but has the big negative that if you do get a segmentation violation, it is hard to debug.
Version 2.00 brought Unicode (UTF-8) support, six languages, and the ability to train Tesseract.
Tesseract was included in UNLVs Fourth Annual Test of OCR Accuracy. See [blue]http://www.isri.unlv.edu/downloads/AT-1995.pdf. With Tesseract 2.00, scripts are now included to allow anyone to reproduce some of these tests. See [blue]http://code.google.com/p/tesseract-ocr/wiki/TestingTesseract for more details.
Tesseract 3.00 adds a number of new languages, including Chinese, Japanese, and Korean. It also introduces a new, single-file based system of managing language data.
Tesseract 3.02 adds BiDirectional text support, the ability to recognize multiple languages in a single image, and improved layout analysis.
For further details, see the file ReleaseNotes included with the distribution.
Tesseract development was led at Hewlett-Packard and Google by Ray Smith. The development team has included:
Ahmad Abdulkader, Chris Newton, Dan Johnson, Dar-Shyang Lee, David Eger, Eric Wiseblatt, Faisal Shafait, Hiroshi Takenaka, Joe Liu, Joern Wanke, Mark Seaman, Mickey Namiki, Nicholas Beato, Oded Fuhrmann, Phil Cheatle, Pingping Xiu, Pong Eksombatchai (Chantat), Ranjith Unnikrishnan, Raquel Romano, Ray Smith, Rika Antonova, Robert Moss, Samuel Charron, Sheelagh Lloyd, Shobhit Saxena, and Thomas Kielbus.
Licensed under the Apache License, Version 2.0