python install pytesseract code example

Example 1: pytesseract

pip install pytesseract

Example 2: how to install pytesseract in rpi

sudo apt-get install python-distutils-extra tesseract-ocr tesseract-ocr-eng libopencv-dev libtesseract-dev libleptonica-dev python-all-dev swig libcv-dev python-opencv python-numpy python-setuptools build-essential subversion

sudo apt-get install tesseract-ocr-eng tesseract-ocr-dev libleptonica-dev python-all-dev swig libcv-dev

sudo svn checkout http://python-tesseract.googlecode.com/svn/python-tesseract-0.7.4/

sudo python setup.py build
sudo python setup.py install