https://github.com/aakashjhawar/handwritten-digit-recognition
This project demonstrates Handwritten digit recognition using Deep Learning
https://github.com/aakashjhawar/handwritten-digit-recognition
artificial-intelligence convolutional-neural-networks deep-learning digit-recognition handwritten-digit-recognition image-processing keras machine-learning neural-network number-detection number-recognition ocr ocr-recognition ocr-text-reader optical-character-recognition python
Last synced: 6 months ago
JSON representation
This project demonstrates Handwritten digit recognition using Deep Learning
- Host: GitHub
- URL: https://github.com/aakashjhawar/handwritten-digit-recognition
- Owner: aakashjhawar
- License: mit
- Created: 2018-12-17T11:52:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T17:43:10.000Z (over 1 year ago)
- Last Synced: 2025-03-25T20:21:23.963Z (7 months ago)
- Topics: artificial-intelligence, convolutional-neural-networks, deep-learning, digit-recognition, handwritten-digit-recognition, image-processing, keras, machine-learning, neural-network, number-detection, number-recognition, ocr, ocr-recognition, ocr-text-reader, optical-character-recognition, python
- Language: Jupyter Notebook
- Homepage:
- Size: 1.72 MB
- Stars: 23
- Watchers: 0
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
MNIST Handwritten Digit Classifier
==================================An implementation of multilayer neural network using keras with an accuracy of 98.314% and using tensorflow with an accuracy over 99%.
### About MNIST dataset:
The MNIST database (Modified National Institute of Standards and Technology database) of handwritten digits consists of a training set of 60,000 examples, and a test set of 10,000 examples. It is a subset of a larger set available from NIST. Additionally, the black and white images from NIST were size-normalized and centered to fit into a 28x28 pixel bounding box and anti-aliased, which introduced grayscale levels.### Structure of Neural Network:
A neural network is made up by stacking layers of neurons, and is defined by the weights
of connections and biases of neurons. Activations are a result dependent on a certain input.This structure is known as a feedforward architecture because the connections in the network flow forward from the input layer to the output layer without any feedback loops. In this figure:
* The input layer contains the predictors.
* The hidden layer contains unobservable nodes, or units. The value of each hidden unit is some function of the predictors; the exact form of the function depends in part upon the network type and in part upon user-controllable specifications.
* The output layer contains the responses. Since the history of default is a categorical variable with two categories, it is recoded as two indicator variables. Each output unit is some function of the hidden units. Again, the exact form of the function depends in part on the network type and in part on user-controllable specifications.
#### Summary of Sequential model

## Getting Started
How to use
```
git clone https://github.com/aakashjhawar/Handwritten-Digit-Recognition.git
cd Handwritten-Digit-Recognition
pip3 install -r requirements.txt
python3 tf_cnn.py
```
* You can also run the `load_model.py` to skip the training of NN. It will load the pre saved model from `model.json` and `model.h5` files.
```
python3 load_model.py
```
For example
```
python3 load_model.py assets/images/1a.jpg
```
## Prerequisites- Python 3.5
- OpenCV
```
sudo apt-get install python-opencv
```
## Result:
Following image is the prediction of the model.
