How To Install Tesseract?
Install tesseract
-
Debian
apt-get install tesseractClick to copy -
Ubuntu
apt-get install tesseractClick to copy -
Arch Linux
pacman -S tesseractClick to copy -
Kali Linux
apt-get install tesseractClick to copy -
Fedora
dnf install tesseractClick to copy -
Raspbian
apt-get install tesseractClick to copy -
macOS
brew install tesseractClick to copy
OCR (Optical Character Recognition) engine.
How to use tesseract?
Below are few example commands for tesseract that you can use in the terminal.
Recognize text in an image and save it to `output.txt` (the '.txt' extension is added automatically):tesseract image.png outputClick to copySpecify a custom language (default is English) with an ISO 639-2 code (e.g. deu = Deutsch = German):tesseract -l deu image.png outputClick to copyList the ISO 639-2 codes of available languages:tesseract --list-langsClick to copySpecify a custom page segmentation mode (default is 3):tesseract -psm 0_to_10 image.png outputClick to copyList page segmentation modes and their descriptions:tesseract --help-psmClick to copy
To install the latest version of tesseract in your favorite operating system just copy the tesseract installation command from above and paste it into terminal. It will download and install the latest version of tesseract 2026 package in your OS.




