【问题标题】:how to display certain data to kinect?如何将某些数据显示到 kinect?
【发布时间】:2017-05-25 22:59:00
【问题描述】:

我正在使用kinect v2 c# 来检测手势。我使用的所有算法都可以正常工作。问题是我希望kinect 只显示检测到的手而不是全部的身体,并在黑色背景中给出手的所有点?

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

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

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

        }
}

【问题讨论】:

    标签: c# kinect gesture-recognition


    【解决方案1】:

    比如你可以这样写

     // //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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-09-17
      • 2021-04-24
      • 1970-01-01
      • 1970-01-01
      • 2021-01-23
      • 2011-07-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多