Giter Club home page Giter Club logo

neuralnet_onimagej's Introduction

NeuralNet_onImageJ

On-the-spot handwriting number recognition based on a two-layers dense neural net on ImageJ.

DEMO

Contents

  • mnist2layersKeras.py
  • mnist2layersWeight.txt
  • mnist_2layers.ijm

mnist2layersKeras.py

This program imports MNIST dataset, and executes two-layers dense neural net trained using Keras. The parameters of the neural net (weights and biases) will be saved as a text file in '/Applications/ImageJ/plugins/mymacro/'. Please install imageJ and create 'mymacro' folder in the 'plugins' folder before running this program.

mnist2layersWeight.txt

An example output of mnist2layersKeras.py.

mnist_2layers.ijm

This program is written in ImageJ macro. Handwriting number will be estimated based on the two-layers neural net with the parameters in mnist2layersWeight.txt.

How to use

handwriting recognition

  1. Install imageJ, create 'mymacro' folder in 'plugins' folder.
  2. Put 'mnist2layersWeight.txt' and 'mnist_2layers.ijm' in mymacro folder.
  3. Start ImageJ.
  4. You can see 'mymacro' in Plugin menu. Select 'mnist 2layers' in plugin menu.
  5. GUI will guide you. 20-pixel width paintbrush tool is optimal for drawing a number.
  • If you activate "show probability", the probability distribution will be shown.
  • Press OK after drawing a number, then you get a popup with an estimated number and a bar plot of the probability distribution.
  • The image is binned by average into 28x28 pix during estimation.

neural net learning

Run the python program 'mnist2layersKeras.py' in an appropriate environment. Please confirm the package requirements are fulfilled.

neuralnet_onimagej's People

Contributors

fjmrt avatar

Stargazers

Ethan Zhao avatar  avatar Alexandre Carisey avatar Joachim Goedhart avatar

neuralnet_onimagej'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.