Saturday 11 October 2014

Bending angle calculation - FINAL

In the previous post we mentioned the limitations on calculating the bending angle. As shown in the below figure when bending the finger from B to C we get the same angle as from B to A.

Figure 1- Bending angle
As discussed in the new leap SDK post, skeletal tracking enables us to receive data through out till LM can detect our palm. In the previous one we can identify fingers by its ids as long as the fingers are visible. We had to manually identify fingers earlier because when ever the fingers disappear finger id randomise.


To tackle this problem, we took into account the direction of the pointable (finger) along with the bending angle. By calling the function  pointable.direction()  it gives a unit vector pointing in the same direction as the tip. 
Figure 2 - Pointables
https://developer.leapmotion.com/documentation/skeletal/javascript/api/Leap.Pointable.html
y coordinate of the unit vector is positive when the tip is in the region B to C and negative when the tip position is in the A to B. 





No comments:

Post a Comment