Last active
December 23, 2015 10:09
-
-
Save otiai10/6619523 to your computer and use it in GitHub Desktop.
setup ocrServer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# usage: | |
# sh setup_server.sh | |
# | |
## START | |
# cat /etc/debian_version | |
#=> 6.0.7 | |
# apt-cache search tesseract-ocr | |
#=> tesseract-ocr - Command line OCR tool | |
sudo apt-get update | |
sudo apt-get install -y tesseract-ocr | |
sudo apt-get install -y gcc | |
sudo apt-get install -y python-dev | |
sudo apt-get install -y python-imaging | |
sudo apt-get install -y git | |
# python --version | |
#=> Python 2.6.6 | |
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python | |
sudo /usr/local/bin/easy_install pip | |
# pip search Flask | |
#=> Flask - A microframework based on Werkzeug, Jinja2 and good intentions 0.10.0 | |
sudo pip install Flask | |
sudo pip install pyocr | |
rm -f .ssh/config | |
echo "Host *" >> .ssh/config | |
echo " StrictHostKeyChecking no" >> .ssh/config | |
rm -rf ocrServer | |
git clone [email protected]:otiai10/ocrServer.git | |
cd ocrServer | |
echo "host = 'kcwidgetocrserver001'" >> conf.py | |
echo "port = 5000" >> conf.py | |
# sh cli/app.sh start debug | |
sh cli/app.sh start | |
## END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment