Setup on laptop

Python

Install python3, a 64 bits version (3.6.4 is available on time of writing)

Tip: install python in C:python36 instead the default directory. Installing Python can also be done using Anaconda.

Open cmd to work via the commandline. Enter the following commands to modify the path settings:

> pip install pillow         # This command will install pillow and set it in your python path
> pip install imutils        # This command will install imutils and set it in your python path
> pip install numpy          # This command will install numpy and set it in your python path
> pip install pytesseract    # This command will install pytesseract and set it in your python path, you will need this for the step of this manual

PyTesseract

Now you will need to go to your python folder that will be in: C:\Users\%username%\AppData\Local\Programs\Python\Python%version%\Lib\site-packages\pytesseract

or go to

C:\Python36\Lib\site-packages\pytesseract

In this folder you will find pytesseract.py, you have to open this with your editor and there you will have to change line 26.

It will have to look like this:

# CHANGE THIS IF TESSERACT IS NOT IN YOUR PATH, OR IS NAMED DIFFERENTLY
tesseract_cmd = r'C:\\Program Files (x86)\\Tesseract-OCR\\tesseract.exe'

Now you will need to install tesseract, you can download tesseract from his link: https://github.com/UB-Mannheim/tesseract/wiki If you download tesseract-ocr-setup-3.05.01.exe just follow the steps from the installation.

To add the data of the calculator’s font, you have to go to this link: https://github.com/arturaugusto/display_ocr/blob/master/letsgodigital/letsgodigital.traineddata and click on dowload. Now you have to copy what you just downloaded and paste it in the Tesseract-OCR\tessdata folder (for example C:\Program Files (x86)\Tesseract-OCR\tessdata).

OpenCV

To install opencv open the cmd and type:

> pip install opencv-python

And you will need to download it from the link: http://www.lfd.uci.edu/~gohlke/pythonlibs/ and download opencv_python‑3.4.0‑cp36‑cp36m‑win_amd64.whl (or win32 depending on the python installation) then open the CMD terminal to the download directory and type in the following:

> pip install opencv_python‑3.4.0‑cp36‑cp36m‑win_amd64.whl   # This command will install opencv and set it in your python path

if this does not work, it says somethink about incorrect version; try running

> pip install --upgrade pip setuptools

Roundup

To round up the setup: Check if python is added to your path: Advanced system settings –> Environment Variables –> Path. Also check if TESSDATA_PREFIX is added as a Variable.