Giter Site home page Giter Site logo

hackstock / deep-ocr Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 2.0 6 KB

A complete project that explains how to train a digits classifier model in Keras and use it to recognize digits drawn with the mouse using OpenCV

License: MIT License

Python 100.00%

deep-ocr's Introduction

About Deep OCR

Deep OCR is an example project that aims to show you how to to the following :

  1. Train a digits classifier model using Keras(with Tensorflow backend) on the MNIST dataset
  2. How to draw digits with your mouse (using OpenCV GUI) and let the model predict the digit

I was motivated to do this because most tutorials end after training a model without showing you how make predictions on images outside the MINST dataset. Though this project makes predictions on images drawn with the mouse, you can equally adapt the code to make it predict on images read from the camera using OpenCV.

Setup

There are two ways to setup this project on your local machine. You can either use Anaconda or the default Python <= 3.6 version installed on your workstation. It is important to use Python 3.6 or less because Tensorflow (which is only used as a backend for Keras in this project) doesn't have a good support for Python 3.7 yet.

Setting Up With Anaconda

  1. Run "conda env create" from the root of this folder
  2. Run "conda activate deepocr"
  3. Run "python3 app.py", and have fun!

Setting Up With Virtualenv (Python <= 3.6)

  1. Run "python3 -m venv env" from the root of this folder
  2. Run "source env/bin/activate"
  3. Run "pip install -r requirements.txt"
  4. Run "python3 app.py", and have fun!

About Me

My name is Edward Pie, and I have almost an insatiable desire to learn everything about Deep Learning & Computer Vision. My specific areas of interest are applications of Deep Learning in agriculture, health, and industrial automation.

Contact

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.