Idle to have nothing to do, wrote a leapmotion scissors small demo.
Because the data frame can reach 100fps, so I want to do something
The idea of implementation is simple:
Take Hand.grabangle () as the main judgment basis, more than 2 of the fist, less than 0.6 for the cloth, the rest for scissors.
Principle: Hand.grabangle () returns the average bending of the thumb four fingers, so the value of the fist is 3.14 (repeated test), when the cloth is basically 0, when the scissors are generally around 1.6 (and theoretically the same)
In addition to some small details, such as five frame of the mean is combined into a frame (to avoid jitter), found a few stone scissors cloth pictures for easy demonstration, added some delay, etc...
In short, if you are interested, you can write your own, presumably this rough idea of the effect of the following:
Gesture following: (2M gif may be a bit slow, it's compressed into a humanoid ...) You can see the real-time is still very good, and I also set the five frame compression into one frame: )
Win (plus 100ms delay, 233):
Small demo Download Link: http://download.csdn.net/detail/zmdsjtu/9648393
Finally, I wish you a happy study ~