sudo apt-get update
sudo apt-get install build-essential git python-dev python3-dev python-pip 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 autoconf automake libtool libpng12-dev libjpeg62-dev libtiff4-dev zlib1g-dev install libicu-dev libpango1.0-dev libcairo2-dev
git clone https://github.com/vikramriyer/ttsdaisy_v4.git
git clone https://github.com/vikramriyer/ocr_tts_engines.git
wget http://www.leptonica.com/source/leptonica-1.74.4.tar.gz
tar xvf leptonica-1.74.tar.gz
cd leptonica-1.74
./configure
make
sudo make install
bash <downloaded_filename>.sh
conda create -n <whatever_env_name>
pip install -r requirements.txt (make sure to be in the ttsdaisy_v4 directory before running the command)
cd ocr_tts_engines
export FLASK_APP=standaloneserver_v2.py
flask run
cd ttsdaisy_v4
python manage.py migrate
python manage.py makemigrations
python manage.py runserver
Boom! The server is up now, view it at the below URL
http://127.0.0.1:8000/
Note: The above address is configurable in case of production settings. Use the settings.py file to your advantage! ;)
https://medium.com/@lucas63/installing-tesseract-3-04-in-ubuntu-14-04-1dae8b748a32
https://gist.github.com/rajmani1995/cae8a16056e44bd901a6d17d8f1a7fbf
https://stackoverflow.com/questions/11094718/error-command-gcc-failed-with-exit-status-1-while-installing-eventlet
https://www.anaconda.com/download/#linux