Git Product home page Git Product logo

hand-written-digit-recognition's Introduction

Hand Written Digit Recognition

Hand Written Digit Recognition using javascript library tensorflowjs

Live Demo

https://bensonruan.com/handwritten-digit-recognition-with-tensorflow-js/

handwritten-recognition

Installing

Clone this repository to your local computer

git https://github.com/bensonruan/Hand-Written-Digit-Recognition.git

Point your localhost to the cloned root directory

Browse to http://localhost/index.html

Start Predicting Hand Written Digit

  • Draw on the canvas with your mouse on desktop or your finger on your mobile
  • Click "Predict" to get result of the hand written digit prediction
  • Click "Clean" to start drawing again

Pre-trained model

Use MNIST dataset from Keras with CNN (Convolutional Neural Network)

model = keras.Sequential([
    keras.layers.Conv2D(32, (5, 5), padding="same", input_shape=[28, 28, 1]),
    keras.layers.MaxPool2D((2,2)),
    keras.layers.Conv2D(64, (5, 5), padding="same"),    
    keras.layers.MaxPool2D((2,2)),    
    keras.layers.Flatten(),   
    keras.layers.Dense(1024, activation='relu'),    
    keras.layers.Dropout(0.2),   
    keras.layers.Dense(10, activation='softmax')
])

model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy'])

Library

  • jquery - JQuery
  • tensorflowjs - JavaScript library for training and deploying machine learning models
  • Chart.js - JavaScript library for display charts

Support me

ko-fi

hand-written-digit-recognition's People

Contributors

bensonruan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hand-written-digit-recognition's Issues

Issue with the readme file

The current git clone to local computer command is:
git https://github.com/bensonruan/Hand-Written-Digit-Recognition.git
It should be:
git clone https://github.com/bensonruan/Hand-Written-Digit-Recognition.git

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.