Software Archive
Read-only legacy content
17061 Discussions

creating swipe methode

alex_f_2
Beginner
458 Views

Hello, I wrote a program in java concerning hand gestures. I had the idea to make a methode for swiping right and left instead the one from the intel library for better performance.

the tracking of hand joint is working through this code:

hand.QueryTrackedJoint(PXCMHandData.JointType.JOINT_CENTER, jointData);

and the current  location of hand joint is shown through PXCMPointF32 image from image.x

my idea is to track the speed of one hand joint ( palm joint)(EnableJointSpeed) and the X coordinates (PXCMPointF32 image.x) to decide if its swipe right or left.

My question is how to write this condition for (if) as a code please? 

0 Kudos
0 Replies
Reply