2017-05-25 69 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

相關問題