I wish detect the number of fingers extended with Leap Motion. When I try with C++ function, it's ok. But when I want to try with python API, it doesn't work...
This is the code in on_frame function :
f = controller.frame()
l = len(f.fingers.extended())
print("nb = %d" % l)
And in the API reference, the following example is given : extended_finger_list = frame.fingers.extended()
The display is always returned "0"... What the hell ? :'(
The following code works for me with the current SDK (version 2.1.6):