Giter Site home page Giter Site logo

yuvnish017 / handwritten_digits_and_alphabets_recognition Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 4.0 250.27 MB

Handwritten Digits and Alphabets Recognition using Convolutional Neural Networks

Python 100.00%
handwritten-digits neural-network alphabets-recognition dataset csv-format python cnn-keras mnist nist

handwritten_digits_and_alphabets_recognition's Introduction

handwritten_digits_and_alphabets_recognition

Handwritten Digits and Alphabets Recognition using Convolutional Neural Networks

The following project is based on recognition of handwritten digits and english characters by using convolutional neural network. The network was trained on a dataset from MNIST(for digits 0-9) and subset of NIST dataset combined with some other sources for alphabets(A-Z) (dataset can be found on https://www.kaggle.com/sachinpatel21/az-handwritten-alphabets-in-csv-format)
mixed with some personal data accounting upto a 400k samples in dataset.

Content:

  • A_Z_Handwritten_Data.csv : dataset of alphabets in csv format

  • digits_dataset_train.csv : dataset of digit in csv format

  • digits_dataset_test.csv : dataset for testing in csv format

  • dataset_creation.py: to make images from a set of images in a single image

  • test.py: the file predicts the characters on the image saved as "img.jpg"

  • cnn_model.py : model used for building neural network for digits only

  • A_Z_model.py: model used for training the neural network for alphabets only

  • final_model.py : model used for building the neural network for both alphabets and digits

  • image_to_csv.py : for converting dataset of digis (jpg) to csv format

  • models : contains python codes for two different neural network architecture for training along with trained models saved as .h5 files. Names of saved model file in .h5 format describe the architecture of neural network along with accuracy obtained with that model. For example, conv_34_64_64_256_fc_120_84_36_acc_99.h5 shows that architecture has 4 convolutional layers with 32, 64, 64, 256 filters respectively, and has 3 fully connected layers with 120, 84 and 36 hidden units. acc_99 in the end specifies that training accuracy obtained with this model is 99%.

Prerequisites :

The following libraries are to be installed on the local machine :

->OpenCV
->numpy
->imutils
->keras
->sklearn

Dataset_creation.py:

The follwoing file generates digits dataset from a single jpg image containing the digits ordered from left to right in certain rows.

Results:

The training accuracy for 4 convolutional layers network and 5 convolutional layers network is 99% for both but 5 convolutional layers network perform better at testing time.

Creators:

  • Yuvnish Malhotra
  • Ishika Budhiraja
  • Neelanshu Garg
  • Sreeja

handwritten_digits_and_alphabets_recognition's People

Contributors

ishika261 avatar neelanshu2001 avatar yuvnish017 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.