How To Install Tesseract?

How To Install Tesseract?

tesseract

OCR (Optical Character Recognition) engine.

Install tesseract

  • Debian apt-get install tesseract Click to copy
  • Ubuntu apt-get install tesseract Click to copy
  • Arch Linux pacman -S tesseract Click to copy
  • Kali Linux apt-get install tesseract Click to copy
  • Fedora dnf install tesseract Click to copy
  • Raspbian apt-get install tesseract Click to copy
  • macOS brew install tesseract Click 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 copy
Specify a custom language (default is English) with an ISO 639-2 code (e.g. deu = Deutsch = German):
tesseract -l deu image.png outputClick to copy
List the ISO 639-2 codes of available languages:
tesseract --list-langsClick to copy
Specify a custom page segmentation mode (default is 3):
tesseract -psm 0_to_10 image.png outputClick to copy
List 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.