Install Tesseract on Mac / Linux / Windows / centos

Python-tesseract for Python is an optical character recognition (OCR). That is, it will recognize and “read” the text embedded in the images.
1. For Python:

pip install pytesseract

2. For Mac Users

$ brew install tesseract

3. For Linux users:

$ sudo apt-get install tesseract-ocr

4. For centos 7

yum-config-manager --add-repo https://download.opensuse.org/repositories/home:/Alexander_Pozdnyakov/CentOS_7/sudo rpm --import https://build.opensuse.org/projects/home:Alexander_Pozdnyakov/public_keyyum updateyum install tesseract yum install tesseract-langpack-deu

5. For Windows:

Installer for Windows for Tesseract 3.05 and Tesseract 4 are available from Tesseract at UB Mannheim. These include the training tools. Both 32-bit and 64-bit installers are available.

An installer for the OLD version 3.02 is available for Windows from our download page. This includes the English training data. If you want to use another language, download the appropriate training data, unpack it using 7-zip, and copy the .traineddata file into the ‘tessdata’ directory, probably C:Program FilesTesseract-OCRtessdata.

To access tesseract-OCR from any location you may have to add the directory where the tesseract-OCR binaries are located to the Path variables, probably C:Program FilesTesseract-OCR.