Giter VIP home page Giter VIP logo

handwriting-recognition-for-english's Introduction

This repository is handwriting recognition for english.

Pre-requisites

  • python 3.6
  • Tensorflow
  • keras
  • OpenCV

dataset prepare

  1. prepare fix height train samples for letters, words or sentences.
  2. run data_proceess/data_letter_generate.py create single letter or multiple letters samples with 32*120.
  3. run data_proceess/data_words_generate.py create english words samples with 64*400.
  4. run create_lmdb_dataset.sh can convert image files to lmdb format.

train model

python train.py

You can choose a best model for your work.

  1. single letter or multiple letters recognition: simple_densenet.py ====> Densenet+CTC
  2. words recognition: densenet_blstm.py ====>Densenet+Bilstm+CTC
  3. a new test for cnn: efficientnet_b0.py ====> efficientnet_b0+Bilstm+CTC

test model

python test_model.py

You can choose one method for test.

  1. flag=0 # test single or multiple imges
  2. flag=1 # test file_lst and compute test precision
  3. flag=2 # find hard samples

test precision

  1. letters: Densenet+CTC 99.8%;
  2. words: Densenet+Bilstm+CTC 99.0%.

handwriting-recognition-for-english's People

Contributors

yanqiai avatar

Watchers

James Cloos 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.