Installation¶
Installing PILtesseract is very simple, but before installing it, you should make sure you install the requirements.
Tesseract-OCR¶
PILtesseract call the Tesseract-OCR command line tool, the tool must be installed and on your PATH variable before using PILtesseract.
Make sure you install version 3.03 or higher.
Install either:
- Windows users may have to download from third-party installers like UB Mannheim
Ensure that the tesseract binary folder is on your PATH.
Pillow¶
The fork of the Python Image Library (“PIL”)
$ pip install Pillow
Note The Pillow library installs as PIL, so you import it like:
import PIL
PILtesseract¶
Finally you can now install this library.
- Installing from pip: -
$ pip install piltesseract