2017-05-25 63 views
0

我正在使用kinect v2c#来检测手势。我所用的所有算法都是正确的。问题是我想要kinect只显示手部而不是全部身体,并且在黑色背景中显示手部的所有点?如何显示某些数据到kinect?

这是获取轮廓手的点的代码。

private void HandsController_HandsDetected(object sender, HandCollection e) { 
     // Display the results! 

     if (e.HandLeft != null) 
     { 
      point = e.HandLeft.ContourDepth; 

     } 
} 

回答

0

例如,你可以把它写这样

// //left hand in front of left Shoulder 
if (body.Joints[JointType.HandLeft].Position.Z < body.Joints[JointType.ElbowLeft].Position.Z && body.Joints[JointType.HandRight].Position.Y < body.Joints[JointType.SpineBase].Position.Y) 
    { 
     //Action here 
    } 

你可以看到其他库的样本使用此代码here

我也有关于如何实现滑动手势tutorial使用Vitruvius Library做检查出来! :D

相关问题