Skip to content

Instantly share code, notes, and snippets.

@otiai10
Last active December 23, 2015 03:59
Show Gist options
  • Select an option

  • Save otiai10/6577558 to your computer and use it in GitHub Desktop.

Select an option

Save otiai10/6577558 to your computer and use it in GitHub Desktop.
$ cat /etc/debian_version
$ apt-cache search tesseract-ocr
$ sudo apt-get update
$ sudo apt-get install -y esseract-ocr
$ sudo apt-get install -y gcc
$ sudo apt-get install -y python-dev
$ sudo apt-get install -y python-imaging
$ python --version
$ wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python
$ sudo /usr/local/bin/easy_install pip
$ which pip
$ pip search Flask
$ sudo pip install Flask
$ sudo pip install pyocr

prj

$ sudo apt-get install git
$ git clone [email protected]:otiai10/ocrServer.git
$ cd ocrServer
$ echo "host = sample.com" >> conf.py
$ echo "port = 9999" >> conf.py
$ sh cli/app.sh start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment