适用于Windows的Kinect2。获得颜色和深度帧率 [英] Kinect2 for windows. Get color and depth framerate

查看:250
本文介绍了适用于Windows的Kinect2。获得颜色和深度帧率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在使用kinect 2 for windows做一些基本的工作。我想知道获得彩色和深度相机帧率的最佳方法是什么。 Kinect 1的SDK 1.8有一个获取此信息的示例,但我不知道如何使用Kinect2和SDK
2.0。我正在使用Visual Studio 2012,C#和.Net 4.5。

I'm doing some basic work with kinect 2 for windows. I would like to know what is the best way to get the framerate of color and depth cameras. SDK 1.8 for Kinect 1 had an example to get this information but I don't know how to do that with Kinect2 and SDK 2.0. I'm using Visual Studio 2012, C# and .Net 4.5.

谢谢。

推荐答案

每个帧都有一个时间戳,您可以从前一个帧中减去该时间戳。这将为您提供帧数据之间的增量。

Each frame has a timestamp which you can subtract from the previous one. That will give you a delta between the frame data.

如果你想要一个真正的FPS计数器,请记住这将受到调用函数的方式的影响,你可以调用系统时间值并每次跟踪该值帧。 v1中使用的相同代码可用于v2,因为该计算与Kinect SDK独立

If you want a true FPS counter, keep in mind this will be affected by how the function will be called, you can call the system time value and track that value every frame. The same code that was used in v1 can be used for v2, since that calculation is independent of the Kinect SDK.


这篇关于适用于Windows的Kinect2。获得颜色和深度帧率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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