Click here to Skip to main content
15,922,315 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
I'm doing a kinect Application using Kinect SDK.
The Result I want that it has to able to identify the hand waving for 5sec. Do something if it does
Anyone knows how to do so? I'm doing in a WPF application.
Would like to have some example. I'm rather new to Kinect.

Thanks in advance for all your help!
Posted
Updated 28-Mar-12 22:35pm
v5

Did you bother looking at the examples in the SDK like you were directed to the last time you asked this?
 
Share this answer
 
I am checking the conditon first
(skeleton.Joints[JointID.HandRight].Position.Y < skeleton.Joints[JointID.Head].Position.Y && skeleton.Joints[JointID.HandRight].Position.Y > (skeleton.Joints[JointID.ElbowRight].Position.Y ) && skeleton.Joints[JointID.HandRight].Position.Y > skeleton.Joints[JointID.WristRight].Position.Y && skeleton.Joints[JointID.HandRight].Position.Y > (skeleton.Joints[JointID.HandLeft].Position.Y)


then i am taking my elbow as a centre pos for the hand wave and storing the right hand values in the list and checking for the given no. of frames
Lets take some ref dist and check the condition
handRight[i].Position.X < (centre + reference)
and
handRight[i].Position.X > (centre + reference)


(the above 2 conditions will be satisfied when hand is waved)
and checking for no of waves , same will be done for left hand


EDIT: Copied back the message from OP. I though it was additional info, not an answer. My error, sorry.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900