Giter VIP home page Giter VIP logo

chipdigit's Introduction

ChipDigits

ChipDigits is a simple python script which performs handwriting recognition. There are two modes :

  • Recognition Mode
  • Training Mode

Modes

Recognition Mode

In recognition mode you can simply draw a digit between 0 and 9 and the label at the top of the drawing zone will change to print which number have been recognized. This is visible on the illustration picture.

Here is a picture of the recognition mode :

alt text

Training Mode

Since everybody writes in a different manner, you might want to train ChipDigit to your own writing style. To do so, you can access the Training Mode. In training mode, a small text box on the left of the screen is asking you to write a precise digit. Write it, and it's automatically stored. To prevent you from being bored and wrtiting the number exactly the same way, the number you have to write are chosen randomly.

Here is a picture of the training mode :

alt text

Instructions

How to install ChipDigit on PocketChip

To install ChipDigit you simply need to install a few dependencies :

sudo apt-get install python-tk git python-numpy
pip install --user scikit-learn

Please be aware that installing scikit-learn on your PocketChip might take a long time.

Then you need to download the necessary files (by typing the following, files will be downloaded in your home directory).

cd ~
git clone https://github.com/N0ciple/chipdigit.git

To lauch ChipDigit simply type :

python ~/chipdigit/main.py

How to train ChipDigit with your writing

By default, ChipDigit already comes with a few images in order to be able to recognize writing. However you might want to train ChipDigit on your own writing. To do so, in the bash console type :

cd chipdigit
cd train
rm img*
rm counter

Then lauch ChipDigits which will automatically startup to training mode. Enters a few sample of your writing (typically arround 30 to 50 images are fine). Then click on the Recon to let ChipDigit build the new classification model and access recognition mode. (Depending on the number of sample pictures you have, building the model could take up to a few tens of seconds).

Acknowledgement

The part of the code dealing with the canevas zone where you can write you digits have been taken from PaintT, available on GitHub here

chipdigit's People

Contributors

n0ciple avatar

Watchers

 avatar

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.