Updated Command Line Usage (markdown)

Shreeshrii 2017-05-18 09:59:07 +05:30
parent 477611cf03
commit fb6439a772

@ -4,42 +4,54 @@ This page has not been (fully) updated for Tesseract 4.0.
## Tesseract --help ## Tesseract --help
Usage: ```
tesseract --help | --help-psm | --version Usage:
tesseract --list-langs [--tessdata-dir PATH] tesseract --help | --help-psm | --help-oem | --version
tesseract --print-parameters [options...] [configfile...] tesseract --list-langs [--tessdata-dir PATH]
tesseract imagename|stdin outputbase|stdout [options...] [configfile...] tesseract --print-parameters [options...] [configfile...]
tesseract imagename|stdin outputbase|stdout [options...] [configfile...]
OCR options: OCR options:
--tessdata-dir PATH Specify the location of tessdata path. --tessdata-dir PATH Specify the location of tessdata path.
--user-words PATH Specify the location of user words file. --user-words PATH Specify the location of user words file.
--user-patterns PATH Specify the location of user patterns file. --user-patterns PATH Specify the location of user patterns file.
-l LANG[+LANG] Specify language(s) used for OCR. -l LANG[+LANG] Specify language(s) used for OCR.
-c VAR=VALUE Set value for config variables. -c VAR=VALUE Set value for config variables.
Multiple -c arguments are allowed. Multiple -c arguments are allowed.
-psm NUM Specify page segmentation mode. --psm NUM Specify page segmentation mode.
NOTE: These options must occur before any configfile. --oem NUM Specify OCR Engine mode.
NOTE: These options must occur before any configfile.
Page segmentation modes: Page segmentation modes:
0 Orientation and script detection (OSD) only. 0 Orientation and script detection (OSD) only.
1 Automatic page segmentation with OSD. 1 Automatic page segmentation with OSD.
2 Automatic page segmentation, but no OSD, or OCR. 2 Automatic page segmentation, but no OSD, or OCR.
3 Fully automatic page segmentation, but no OSD. (Default) 3 Fully automatic page segmentation, but no OSD. (Default)
4 Assume a single column of text of variable sizes. 4 Assume a single column of text of variable sizes.
5 Assume a single uniform block of vertically aligned text. 5 Assume a single uniform block of vertically aligned text.
6 Assume a single uniform block of text. 6 Assume a single uniform block of text.
7 Treat the image as a single text line. 7 Treat the image as a single text line.
8 Treat the image as a single word. 8 Treat the image as a single word.
9 Treat the image as a single word in a circle. 9 Treat the image as a single word in a circle.
10 Treat the image as a single character. 10 Treat the image as a single character.
11 Sparse text. Find as much text as possible in no particular order.
Single options: 12 Sparse text with OSD.
-h, --help Show this help message. 13 Raw line. Treat the image as a single text line,
--help-psm Show page segmentation modes. bypassing hacks that are Tesseract-specific.
-v, --version Show version information. OCR Engine modes:
--list-langs List available languages for tesseract engine. 0 Original Tesseract only.
--print-parameters Print tesseract parameters to stdout. 1 Neural nets LSTM only.
2 Tesseract + LSTM.
3 Default, based on what is available.
Single options:
-h, --help Show this help message.
--help-psm Show page segmentation modes.
--help-oem Show OCR Engine modes.
-v, --version Show version information.
--list-langs List available languages for tesseract engine.
--print-parameters Print tesseract parameters.
```
-------------------------------------------- --------------------------------------------
## Using LSTM Engine with Tesseract 4.0alpha ## Using LSTM Engine with Tesseract 4.0alpha