mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 14:00:43 +00:00
Update cheatsheets
This commit is contained in:
29
tesseract
Normal file
29
tesseract
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# tesseract
|
||||
|
||||
> OCR (Optical Character Recognition) engine.
|
||||
> More information: <https://github.com/tesseract-ocr/tesseract>.
|
||||
|
||||
- Recognize text in an image and save it to `output.txt` (the `.txt` extension is added automatically):
|
||||
|
||||
`tesseract {{image.png}} {{output}}`
|
||||
|
||||
- Specify a custom language (default is English) with an ISO 639-2 code (e.g. deu = Deutsch = German):
|
||||
|
||||
`tesseract -l deu {{image.png}} {{output}}`
|
||||
|
||||
- List the ISO 639-2 codes of available languages:
|
||||
|
||||
`tesseract --list-langs`
|
||||
|
||||
- Specify a custom page segmentation mode (default is 3):
|
||||
|
||||
`tesseract -psm {{0_to_10}} {{image.png}} {{output}}`
|
||||
|
||||
- List page segmentation modes and their descriptions:
|
||||
|
||||
`tesseract --help-psm`
|
||||
Reference in New Issue
Block a user