Code Monkey home page Code Monkey logo

mousegesturerecognition's Introduction

Mouse Gesture Recognition

Recognize different mouse gestures using simple logistic regression

To recognize and categorize different mouse gestures using simple logistic regression. The model is trained with very high accuracy (98%). I had some doubt about overfitting too but it works very well in practice.

Symbols learnt

  1. U (letter u): U
  2. Alpha (greek alpha letter): α. Unfortunately, the way I write alpha makes it looks like the Ichthys symbol.
  3. Hat: ^
  4. Z (letter z): Z
  5. The derivative symbol (looks like an intverted 6): ∂
  6. Triangle (equilateral triangle pointing upward): △
  7. Greater than: >

This list is definitely extendable simply by adding more training samples and let the model learn them.

Demo

To start the demo, start the http server first by running

$python server.py

Then you can run the demo jar

$java -jar Demo.jar

The demo will exit after 20s. To run it for a long while, use the following (Ctrl + C twice to exit)

while true ; do java -jar Demo.jar ; done

Register the drawing by holding down left ctrl, draw a pattern with the mouse, and release left ctrl. The server will try to recognize the pattern and a small popup will appear if a symbol is recognized.

Libraries used

  1. JNativeHook (for the demo only)
  2. scikitlearn
  3. Argo JSON

mousegesturerecognition's People

Contributors

hptruong93 avatar

Watchers

James Cloos avatar jack.cao 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.