Skip to content

This a Machine Learning Project which Recognises handwritten digits .i.e. 0 to 9.

License

Notifications You must be signed in to change notification settings

VishalShenoy2002/Digit-Recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digit-Recognition

Handwritten digit recognition is the ability of a computer to recognize the human handwritten digits from different sources like images, papers, touch screens, etc, and classify them into 10 predefined classes (0-9).

The Program is written using the Python Programming Language. It uses the following Python Libraries:

  1. Tensorflow
  2. Numpy
  3. OS
  4. Open Cv (cv2)
  5. Matplotlib

Steps to Follow

Please Follow the following steps to run the program without error:

  1. First Check if all the modules or libraries are installed. If not run the following command
pip install tensorflow numpy opencv-python matplotlib
  1. Once all the Libraries or Modules are Installed run the following command. This will train and creae the model and will save it
python .\model.py
  1. Once the Model is created, run the main program.
python .\main.py

Note: The Pics folder contains 85 hand written images which are of 28x28 pixels in size. If you want to use your own pictures you can add it in the Pics folder but make sure it is 28x28 pixels in size.

Summary Of the Model

The Model has 3 Layers. They are as follows:

  1. Flatten Layer
  2. Dense Layer
  3. Dense Layer

The Summary Table is given below

Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #
=================================================================
 flatten (Flatten)           (None, 784)               0

 dense (Dense)               (None, 128)               100480

 dense_1 (Dense)             (None, 10)                1290

=================================================================
Total params: 101,770
Trainable params: 101,770
Non-trainable params: 0
_________________________________________________________________

Suggestion

If you are running a device with 32 bit architecture or a device with less RAM you can use the Google Colab or Google Colabtory because while training the model, it will consume over 80% of you CPU and RAM.

Releases

No releases published

Packages

No packages published

Languages