Hi Everyone ,
I'm working on a project to count the number of fingers that I show above my leap motion.
I'm a Java Developer and use eclipse for this purpose.
The problem is that , If I show 2 fingers ( or anything else ) I always get that it detects 5 Fingers ( always )
If I show 2 fingers each in both hands , I always get back that 10 fingers are detected.
I hope you guys can help me sort this problem , thanks alot in advance
My OnFrame code is :
public void onFrame(Controller controller) {
Frame frame = controller.frame();
Hand hand = new Hand();
System.out.println("Frame id: " + frame.id()
+ ", Timestamp: " + frame.timestamp()
+ ", Hands:" + frame.hands().count()
+ ", Fingers:" + frame.fingers().count()
+ ", Tools" + frame.tools().count()
+ ", Gestures" + frame.gestures().count());
}
}
This is how Log looks like :
Frame id: 18176, Timestamp: 11929113372, Hands:2, Fingers:10, Tools0, Gestures0
Frame id: 18177, Timestamp: 11929148336, Hands:2, Fingers:10, Tools0, Gestures0
Frame id: 18178, Timestamp: 11929174006, Hands:1, Fingers:5, Tools0, Gestures0
Frame id: 18179, Timestamp: 11929174456, Hands:1, Fingers:5, Tools0, Gestures0
(I deleted the Log in between because they are the same )
Frame id: 18192, Timestamp: 11929333259, Hands:0, Fingers:0, Tools0, Gestures0