I'm using the Java LeapMotion SDK 2.2. I want to detect the position of my thumb, to observe if my thumb is moving or not, but I have some polluted informations, I don't know where come these informations.
for (Finger f : frame.fingers())
{
switch (f.type())
{
case TYPE_THUMB :
if(f.hand().isRight())
{
System.out.println(" position : (x:" + f.tipPosition().getX() + " , y:" + f.tipPosition().getY() +")");
}
}
}
I have this kind of results (when I don't move my hand and my thumb)...
position : (x:-42.98356 , y:180.52577)
position : (x:5.58893 , y:198.87451)
position : (x:-43.21261 , y:182.6366)
position : (x:5.885054 , y:199.23691)
position : (x:-42.86318 , y:182.91586)
position : (x:6.4043913 , y:199.99516)
position : (x:-42.419323 , y:180.8524)
position : (x:6.086983 , y:199.51636)
position : (x:-42.896065 , y:184.15248)
There is a bug or I don't understand why this information are changing ?
Edit :
There is a problem with FingerID, it's sound like two thumbs are detected in spit of the fact I control if it's the right hand :
frameID: 96859 FingerID: 410 position : (x:-63.791225 , y:171.73073)
frameID: 96859 FingerID: 411 position : (x:10.867295 , y:157.37088)
frameID: 96934 FingerID: 410 position : (x:-63.86908 , y:173.62065)
frameID: 96934 FingerID: 411 position : (x:10.567341 , y:157.86476)