Giter Site home page Giter Site logo

xiaolong-yun / air_writing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chychen/air_writing

0.0 1.0 0.0 84.16 MB

Online Hand Writing Recognition using BLSTM

Python 5.47% ASP 27.43% C# 64.78% HLSL 0.30% ShaderLab 1.31% GLSL 0.38% PowerShell 0.22% Makefile 0.01% C++ 0.12%

air_writing's Introduction

On-Line Hand Writing Recognition using BLSTM [incomplete]

Introduction

This project is a final project of the 'Deep Learning and Practice' course hosted in NCTU 2017 SUMMER.
The air_writing project is basically but not totally following the ideals of A Novel Approach to On-Line Handwriting Recognition Based on Bidirectional Long Short-Term Memory Networks to implement a BLSTM model using tensorflow.

Requirement:

tensorflow >= 1.2
numpy
scipy
python 3.5
xml

Setup

  1. Go to http://www.fki.inf.unibe.ch/databases/iam-handwriting-database download the IAM On-Line Handwriting DataBase. And store the dataset folders 'ascii' and 'lineStrokes' under air_writing/data/

  2. Generate dense tensor input data: data.npy and label.npy.

python air_writing/recognition/src preprocess.py
  1. Generate the dense representation of label(text line): dense.npy
python air_writing/recognition/src read.py

Traning on IAM data

python air_writing/recognition/src air_writing/recognition/src train_blstm.py

hyper parameters:

--data_dir
--checkpoint_dir
-- log_dir
--restore_path
--batch_size
--total_epoches
...(details please refer to air_writing/recognition/src/train_blstm.py)

Testing on VR data

  1. Project and normalize the 3D coordinated VR writing trajectory data and get filename.json
python air_writing/ui_labeling/preprocessing sphere_fitting.py
  1. Generate input data from filename.json and get VRdataValidation.npy and VRlabelValidation.npy
python air_writing/recognition/src tagProcess.py
  1. Test
python air_writing/recognition/src test_blstm.py

Reference

[LiBu05-03] Liwicki, M. and Bunke, H.: IAM-OnDB - an On-Line English Sentence Database Acquired from Handwritten Text on a Whiteboard. 8th Intl. Conf. on Document Analysis and Recognition, 2005, Volume 2, pp. 956 - 961

A Novel Approach to On-Line Handwriting Recognition Based on Bidirectional Long Short-Term Memory Networks

License

MIT License

Copyright (c) [2017] [Chen Chieh Yu, Wen Ze Lai]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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.