Skip to content

ThomasLech/digits_operators_recognizer

Repository files navigation

Reference

This repository is a reference to my blog post:
http://blog.mathocr.com/2017/06/25/store-base64-images-with-Django-REST-framework.html

Installation

  1. Install Python 3.5:
    Windows x86-64 web-based installer or Select & download other installer.

    While installing Python please make sure that option 'Add Python 3.5 to PATH' is checked.

  2. Install virtualenv package:
    pip install virtualenv

  3. Create new directory:
    mkdir digits_operators_recognizer

  4. Enter newly created directory:
    cd digits_operators_recognizer

  5. Clone this repository into current directory:
    git clone https://github.com/ThomasLech/digits_operators_recognizer .

  6. Create isolated working copy of Python:
    virtualenv env

  7. Acivate virtual enviroment:
    source env/Scripts/activate (on Windows: env\Scripts\activate)

  8. Download missing packages (those that cannot be installed via pip):
    scipy‑0.19.0‑cp35‑cp35m‑win_amd64.whl: SciPy Download Page,
    scikit_image-0.13.0-cp35-cp35m-win_amd64.whl: Scikit-image Download Page,
    numpy-1.12.1+mkl-cp35-cp35m-win_amd64.whl: NumPy Download Page.

  9. Upgrade pip (Python Package Manager) and install three downloaded packages with the following shell command:

python -m pip install --upgrade pip

pip install "scikit_image-0.13.0-cp35-cp35m-win_amd64.whl"
pip install "scipy-0.19.1-cp35-cp35m-win_amd64.whl"
pip install "numpy-1.13.1+mkl-cp35-cp35m-win_amd64.whl"
  1. Install specified dependencies with pip (Python Package Manager) with the following shell command:
pip install -U -r requirements.txt

Usage

  1. Navigate to folder containing manage.py.
  2. Create a dabase: python manage.py migrate
  3. Run server: python manage.py runserver

You are good to go! :)

Releases

No releases published

Packages

No packages published

Languages