Wednesday, 8 October 2014

Leap Motion V2 Tracking Beta

With the new beta version of leap motion API, skeletal tracking it enable us to receive additional for each overall hand and data is much improved compared to version 1.

Leap motion - skeletal tracking
https://community.leapmotion.com/t/v2-tracking-beta-new-sdk-and-tracking-release-v2-0-3-17004/1329
One of the main limitations of version one is it couldn't predict the position of fingers and hands that are not clearly in view. In our project, we had this issue specially on detecting the fingers when they are perpendicular to the leap motion. We have discussed about this in detail in this post. So when fingers are curled into the hand fingers disappear in the vissualizer. With Skeletal tracking, LM can predict the positions of fingers and hands that are not clearly in view by modelling a human hand. 

hand.confidence function provides a value from 0 to 1 giving how certain what the leap motion sees matches to the model of the hand it understands. Low values indicates its not certain of overall hand data. isExtended gives you which fingers are extended (predicted) or not. 

As they mention in the name "Skeletal" they provide us data on bones in each finger. This is much detailed in their developer website and also the heaps of new features. 

https://developer.leapmotion.com/documentation/skeletal/javascript/devguide/Intro_Skeleton_API.html
As mentioned in this we can receive the leap motion data through a web socket and the new API features can be accessed through (ws://127.0.0.1:6437/v6.json).

Through out the project we'll be using LeapJS one of the libraries provided from leap motion for javascript developers. By using this library opening a web socket is not need as it automatically does for us.

No comments:

Post a Comment