Giter VIP home page Giter VIP logo

devanagari-character-recognition's Introduction

Devanagari-Character-Recognition

Devanagari Character Recognition Using Image Processing And Deep Learning

This work allows optical character recognition of the Devanagari script, handwritten or printed, written in a paragraph or a line. Image processing techniques enable word and character segmentation, i.e., splitting words from paragraphs and separating characters from a word. The segmented characters are then recognized using a convolutional neural network.

We have also used boosting technique over the neural network for achieving more significant outcomes. We trained five neural networks with different number and type of layers, filters and pool size in the convolutional layer, dropout rate and the number of neurons in the dense layer. Then, while performing recognition, each neural network is first used for prediction separately, and then voting among them is performed. The one which occurred more frequently is chosen as the final prediction, resulting in better precision.

Sample images used for character recognition can be found in the Words directory of the repository.

Instructions To Use

To perform character recognition, accumulate the images in a directory and then provide the complete path to the directory in Main.py.

You can then either run the code directly on the visual studio using Devanagari-Character-Recognition.sln or can run Main.py.

Structure

Character Extraction

Gif 01. Word Segmentation

ezgif com-gif-maker

Gif 02. Character Segmentation

ezgif-7-c210707f69b3

Model Performance

Table 01. Classification Report on Validation Data

accuracy_score precision_score recall_score f1_score
Model_1 0.9856 0.9858 0.9856 0.9856
Model_2 0.9888 0.9889 0.9888 0.9888
Model_3 0.9889 0.9890 0.9889 0.9889
Model_4 0.9892 0.9894 0.9892 0.9892
Model_5 0.9836 0.9838 0.9836 0.9836
Boosting 0.9932 0.9933 0.9932 0.9932

Table 02. Classification Report on Sample Images

accuracy_score precision_score recall_score f1_score
Model_1 0.7857 0.8733 0.7857 0.8153
Model_2 0.8333 0.9415 0.8333 0.8701
Model_3 0.7262 0.8333 0.7262 0.7485
Model_4 0.7857 0.8175 0.7857 0.7895
Model_5 0.8095 0.9200 0.8095 0.8386
Boosting 0.8571 0.9444 0.8571 0.8862

Features

  1. Word segmentation enables the character recognition of paragraphs, preserving the order of the words
  2. Character segmentation enables the character recognition of a word
  3. Image processing enables the segmentation of slanted words and characters, and svar having a matra
  4. Data augmentation using image data generator class, rotated, shifted, sheared and zoomed
  5. Convolution neural network helps in feature extraction
  6. Boosting technique resulting in much more reliable efficiency

Limitations

  1. vyanjans having a matra cannot be segmented
  2. Numerals and matra are not included in the dataset and hence can not be determined
  3. Words with excess noise like this and highly slanted words might hinder efficiency

References

devanagari-character-recognition's People

Contributors

milind-prajapat avatar tech-wiz18 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

devanagari-character-recognition's Issues

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.