Skip to content

Very simple machine learning project aiming at making the computer recognise handwritten digits.

License

Notifications You must be signed in to change notification settings

Ad882/Handwritten-digit-recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Handwritten digit recognition

Very simple machine learning project aiming at making the computer recognise handwritten digits.

The aim of the project was to build a program able to recognise handwritten digits between 0 and 9 using machine learning. So that the user can draw a digit in a window an the computer tells what digit it is.

There are 2 (two) Python files: application and model.

model.py:

The model.py file' s aim is to build the machine learning model. For this purpose the mnist database is used to train the model, the performances of the model are testing (accuracy over 98%) and then the model has to predict the digit drawn on paint on 20 (twenty) different images. For this prediction test, a good answer rate is obtained and is never so good (between 55 and 75%), maybye due to the quality of the input images. For more information, please go to the following path: path to "digits" folder

application.py:

The application.py file' s aim is to build the black board that allows the user to draw digits that will be recognised by the computer. Here we can see all the digits drawn on the black board and guess correctly:

Screenshot

For more pictures please go to the following path: path to "screenshots" folder

Use:

If you want to use the files, please run the model.py first so that a bestmodel.h5 file will be created and used later by the application.py file. Then run the application.py file.

⚠️ Warning: Before running the files, make sure numpy, opencv-python, matplotlib and tensorflow are installed on your computer. ⚠️

To install numpy:

pip install numpy

To install opencv-python:

pip install opencv-python

To install matplotlib:

pip install matplotlib

To install tensorflow:

pip install tensorflow

About

Very simple machine learning project aiming at making the computer recognise handwritten digits.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages