How to install tesseract
OCR for any langauge on Linux
Simply replace <lang>
with a valid language code!
apt (Ubuntu / Debian / Mint)
sudo apt update -y
sudo apt upgrade -y
sudo apt install tesseract-ocr-<lang> -y
(Installs both English and the choosen language)
See the list of all available langauges either by running sudo apt search tesseract
or here
dnf (Fedora / CentOS / Red Hat Enterprise Linux)
sudo dnf check-update
sudo dnf upgrade -y
sudo dnf install tesseract-langpack-<lang> -y
(Installs both English and the choosen language)
See the list of all available langauges by running dnf search tesseract
(you don't need to include .noarch
)
pacman (Arch)
yes | sudo pacman -Syu tesseract-data-<lang>
(Installs only the choosen language)
See the list of all available langauges either by running pacman -Ss tesseract
or here