Coder Social home page Coder Social logo

mannyloera / cursive_handwriting_recognition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from riteshkh/cursive_handwriting_recognition

0.0 0.0 0.0 17.82 MB

Python scripts for segmentation of cursive handwritten image, and recognizing the characters using a CNN based model

License: Apache License 2.0

Python 100.00%

cursive_handwriting_recognition's Introduction

Python scripts for segmentation of cursive handwritten image, and recognizing the characters using a CNN based model

Handwriting recognition is one of the challenging and difficult problems. A number of papers have been published with research detailing new techniques for the classification of handwritten numerals and words. In most of the research, the text recognition is carried out by passing each small part of segmented text directly to a neural network based model. This technique relies on the accuracy of model and confidence values for verification of correctness which is very slow & difficult to implement. The technique proposed here is a simple and unique set of algorithms for text recognition which primarily focuses on the character segmentation. The algorithm involves the preprocessing, segmentation, model building and recognition steps.

Instructions

All the python scripts can be independently executed. The following order needs to be maintained.

  • image-straighten.py (optional) This module is used for slant-correction of the images. If the image is already straightened, no need to execute this. slant_correction

  • segmentation.py : This takes in the desired image from the folder sample_image, and performs segmentation operation. This includes word and character segmentation, stored in the result/characters folder.

word_segment top_contour char_segment

  • center-align.py : This takes in the segmented character images, adds padding, resizes and center aligns the images, ready to be fed to the model for prediction. The standardized images are stored in result/image folder.

image_standardization

  • model_build.py : This module builds the CNN model using Keras. The training and testing data is taken from gzip. The model is saved in the same folder. If the model exists, it is used for future recognition. If not, a new model is built.

model_architecture

  • recognition.py : This uses the model built to recognise the characters in the images. The images and their predicted output from the model is displayed together.

Future work:

  • Few characters missing in segmentation, needs fixes.
  • The accuracy of the model is low as of now. Needs more training.
  • Use of transfer learning using models like Resnet, or ensemble methods, may give better results.

cursive_handwriting_recognition's People

Contributors

riteshkh 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.