diff --git a/Command-Line-Usage.md b/Command-Line-Usage.md index cb1a8e4..e4c2583 100644 --- a/Command-Line-Usage.md +++ b/Command-Line-Usage.md @@ -42,8 +42,18 @@ tesseract imagename outputbase +This uses English as the default language and 3 as the Page Segmentation Mode. The default output format is text. osd.traineddata, for Orientation and Segmentation and eng.traineddata and other language data files for English should be in the tessdata directory. TESSDATA_PREFIX environment variable should be set to the parent directory of your "tessdata" directory. + +The following command would give the same result as above, if eng.traineddata and osd.traineddata files are in /usr/share/tessdata directory. + + tesseract --tessdata-dir /usr/share imagename outputbase -l eng psm 3 + ## Using One Language + tesseract --tessdata-dir /usr/share ./testing/phototest.tif ./testing/phototest -l eng -psm 3 + +![phototest.tif](https://github.com/tesseract-ocr/tesseract/blob/master/testing/phototest.tif?raw=true) + ## Using Multiple Languages ## Using different Page Segmentation Modes