Search code examples
c#computer-visionkinectkinect-sdk

Calculating the Area of the Hand using Depth Data


Using a Kinect sensor, I am attempting to write an algorithm to detect a clenched fist. I am trying to achieve this by calculating the area occupied by the hand (since clenched fist area < non-clenched fist area).

Here's what I have so far:

  • Depth information per pixel (from the DepthStream)
  • Location of the Hand (from the SkeletonStream)

I am having trouble figuring out how to get the depth data that corresponds to the hand. It's easy to get the depth data at the exact location that the Kinect gives for the hand, but I don't know how to get all the depth data for the hand. Any suggestions, pseudocode, and/or link to tutorials would help.


Solution

  • There are events from KinectInteractions that detect whenever the fist is in gripped mode or released mode as it's used for the KinectScrollViewer in the KinectRegion:

    The HandPointGrip event The HandPointGripReleased event

    Also this might be a duplicate of this post .