Code Monkey home page Code Monkey logo

mnist_practice_project's Introduction

Demo

https://www.bilibili.com/video/av88086690/
Blog:https://blog.valderfield.com/archives/17/

Summary

A handwriting number recognizer based on TensorFlow.

MNIST is the "Hello, World" in machine learning. I add an drawingboard, although it doesn't work fluently.

Usage

Run demo1.py in the directory within python3, TensorFlow 2 environment. Then you can write number on the drawingboard. Every time the left button of your mouse up, the program will recognize the image on the board as a number, and print the result in the terminal. Press ESC to quit the program, and press C to clear the drawingboard.

More Details

demo1.py imports drawingboard.py(the drawingboard UI) and ml.py(which includes the machine learning model using the trained model file "my_model_eproch_5.h5" or "my_model.h5").

If you want to train the model by yourself, you can run train.py on your own computer or on the CoLab by Google. You may learn how to copy the trained model to your Google Drive if you choose the last one.

img2arr.py is a program that converts an image into an array which is the input of the neural network. It is intergreted into ml.py as a method.

mnist_practice_project's People

Contributors

co1lin avatar

Stargazers

 avatar  avatar  avatar

Forkers

xiaowei-coder

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.