GithubHelp home page GithubHelp logo

cwiep / online-handwriting-tools Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 3.0 50 KB

Modules and methods for calculating bag-of-features representations for online-handwritten trajectories.

License: Apache License 2.0

Python 100.00%

online-handwriting-tools's Introduction

Online Handwriting Tools

Python library and tool for calculating bag-of-features representations for online-handwritten trajectories. This project was designed to work with the Online-Handwritten George Washington Dataset. See there for more information about the expected trajectory file format.

Run ./tool.py for basic usage and ./tool.py exampledata/company_traj.txt out.txt -n -b exampledata/clusters.txt for calculating a bof representation of the normalized example trajectory.

As of now, the following parameters of the processing pipeline can only be changed in code (see tool.py):

  • normalization steps (see traj/trajnorm.py for documentation)
  • online-handwritten features (see traj/trajfeat.py for documentation)
  • configuration of the spatial pyramid (see traj/spatialpyramid for documentation)

The tool's output is written in numpy-text format and is either a sequence of feature vectors (one for each point of the given trajectory, one vector per line) or a bag-of-features representation of the trajectory (one bin-value per line).

Dependencies

  • numpy
  • scipy

Folders

  • traj/ contains the online-handwritten trajectory library
  • exampledata/ contains an exemplary online-handwritten trajectory (company_traj.txt) as well as some pre-calculated clusters (clusters.txt)

TODO

  • support for different choices of normalization steps and features
  • ? supporting batch calculations for multiple trajectories ?

Licence

Apache License, Version 2.0

online-handwriting-tools's People

Contributors

cwiep avatar

Stargazers

Matt avatar Nicolas Feyer avatar Oliver Wei avatar ganji avatar

Watchers

James Cloos avatar fengtao.ft 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.