Coder Social home page Coder Social logo

leap-finger-tracking's Introduction

Leap-Finger-Tracking

A javascript program to track individual fingers using the LEAP sensor.

The program activates when all ten fingers are visible, and uses buffers to track the position of individual fingers (left pinky, left thumb, etc.) as they are recognized by the LEAP. The program calculates the following for each finger in each of the X, Y, and Z directions:

position

velocity

offsets (relationship to other fingers on that hand)

avg (average position from buffer window)

median (median position for buffer window)

longavg (average position from larger buffer window)

If a finger is visible to the LEAP, it is tracked by the ID that's assigned to it by the device.

If a finger is not visible to the LEAP, its position is extrapolated based on its previous relationship to other fingers that have remained visible.

If a finger has disappeared and becomes visible again, the program guesses which finger (left ring, etc.) it is based on the extrapolated positions of all the fingers that have disappeared.

A green light means that the program is identifying visible fingers on that hand with a high degree of certainty: either all fingers are visisble or any fingers that have disappeared have not reappeared.

A yellow light means that the program has had to make at least one guess in assigning a finger identification.

A red light means that no fingers on that hand are visible to the LEAP.

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.