LeapMotion Development (vi)--Gesture Recognition _ Scissors (high real-time rate, dynamic chart Display)

Source: Internet
Author: User

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 ~


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.