Jointcollection对于Kinect的SDK 2.0 [英] Jointcollection for kinect SDK 2.0

查看:119
本文介绍了Jointcollection对于Kinect的SDK 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在我升级Kinect的程序从SDK 1.8至2.0。在我的旧版本,我用jointcollection非常频繁。不过,我现在不我怎么能重写程序不使用此功能。我的示例代码附加如下:

I am now upgrading my Kinect program from SDK 1.8 to 2.0. In my old version, I used jointcollection very often. However, I do not now how can I rewrite the program without using this function. My example code is attached below:

    private static ResultUnit ProcessKneeLeft(JointCollection joints)
    {
        ResultUnit result = new ResultUnit();
        result.State = GetTrackingState(new Joint[] { joints[JointType.KneeLeft], joints[JointType.HipLeft], joints[JointType.AnkleLeft] });
        if (result.State != TrackingState.NotTracked)
            result.Value = VectorFunc.Angle(joints[JointType.KneeLeft].Position, joints[JointType.HipLeft].Position, joints[JointType.AnkleLeft].Position);
        return result;
    }

请给我一只手。非常感谢!
总和

Please give me a hand. Thanks a lot! Sum

推荐答案

接头 是新的 JointCollection 对Kinect的窗户V2。在Kinect的窗户V2,接头是的车身件

Joints is the new JointCollection for kinect for windows V2. In kinect for windows V2, Joints is a property of Body Class.

这篇关于Jointcollection对于Kinect的SDK 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆