The Leap Motion SDK offers a method called hand.palmVelocity. Unfortunately this does not seem to behave like I would expect it to, if measured during fast movements. For a quick hand shake (indicating a cancelling gesture) I may use the hands palm position to get a more reliable tracking. The picture above shows a log and logs direction changes depending on the x-coordinates ([x, y, z]). Again a good understanding of how the leap is registering hand movements is crucial for a successful gesture implementation.
Tag: code
Finger Tip Recording
Before defining rules for a new gesture detection I often need to carefully observe the data recorded by the leap motion sensor. Here I’m trying to find out what it needs to define the known «OK-gesture». I especially need to screen the finger tip position of the thumb and the index finger.
Javascript Patterns
For coding my gesture recognition and setting up a user flow, I decided to dive deeper into the universe of javascript to improve my general understanding for the programming language and use proven programming patterns in my code to keep it clean, slick and maintainable.