Giter Site home page Giter Site logo

vlasakjiri / mnistwebapp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 20.8 MB

Web application for clasifying handwritten digits.

Home Page: http://handwrittennumberclassifier.azurewebsites.net/

C# 3.81% ASP 0.02% JavaScript 96.03% CSS 0.13%
neural-network mnist mnist-classification neural-networks stochastic-gradient-descent cross-entropy-loss html5-canvas drawing handwritten-digit-recognition

mnistwebapp's Introduction

MnistWebApp

Web application for clasifying handwritten digits.

How does it work?

1. Obtaining the image

First I needed a way for user to somehow draw the image for that I used a html5 canvas and modified the code from here.

Then the canvas DataUrl string is sent to the server using Ajax.

2. Preprocessing the image

Then the image needs to be preprocessed so it matches preprocessing done to the Mnist database of handwritten digits. That is done server-side using .Net Bitmap library.

3. Feeding the image to the neural network

Then the image is converted to 28x28 float matrix with each element corresponding to grayscale value of one pixel and fed to the NN.

How the neural network works

The network has an input layer containg 784 neurons, each corresponding to grayscale value of one pixel, 2 hidden layers with 100 neurons each and 10 output neurons, each corresponding to one digit.

The code for the NN is taken from the book Michael A. Nielsen, "Neural Networks and Deep Learning", Determination Press, 2015 and has an accuracy of over 98% on the Mnist dataset.

mnistwebapp's People

Contributors

tlustosvit avatar vlasakjiri avatar

Watchers

 avatar

mnistwebapp's Issues

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.