Code Monkey home page Code Monkey logo

webdev17_18_handwritingrecognition's Introduction

Handwriting Recognition via REST

This project contains a small server, which wraps the WritePad-Handwriting-Recognition-Engine (see License and Copyright) to provide handwriting recognition via a simple REST-Interface.

Requirements

  • GCC / Make / etc
  • pyton3, flask (python3-flask), flask-cors (sudo pip3 install flask-cors)

Setup

After checking out this repository, a few setup steps must be done:

  1. Create an include folder in the WritePadWrapper directory
  2. Add the header files from the WritePad Handwriting Recognition Engine
  3. Create a lib folder in the WritePadWrapper directory
  4. Build the WritePad Handwriting Recognition Engine library and copy the generated libWritePadLib.a file into the created lib folder
  5. Checkout the jsoncpp repository and generate the header & source files. Add the content from the dist folder to the include folder
  6. Create a build folder in the WritePadWrapper directory. Go into this folder and run cmake .. && make

When running the python server, the path to the directory containing the created library above must be specified. This could be done as follows: LD_LIBRARY_PATH=/path/to/WritePadWrapper/build python3 main.py

When the server should use dictionaries, make sure they are in the same folder from which the python server is started. Otherwise the recognition will be done without the help of those dictionaries.

The final folder structure should contain at least the following files:

WritePadWrapper
--CMakeLists.txt
--build
----libWritePadWrapper.so
--include
----InkWrapper.h
----RecognizerApi.h
----RecognizerWrapper.h
----gestures.h
----json
------json-forwards.h
------json.h
----jsoncpp.cpp
----langid.h
----recodefs.h
----recotypes.h
--lib
----libWritePadLib.a
--main.cpp
server
--English.dct
--German.dct
--main.py

webdev17_18_handwritingrecognition's People

Contributors

jenslincke avatar nhoff95 avatar

Watchers

Tim Felgentreff avatar  avatar Robert Krahn avatar Christopher Schuster avatar Vanessa Freudenberg avatar James Cloos avatar  avatar Stefan Ramson avatar  avatar MHemmings avatar  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.