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.

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

Six

Library for python 2 and 3 compatibility

  • $ pip install six

PILtesseract

Finally you can now install this library.

  • Installing from pip: - $ pip install piltesseract