通过轮询的Kinect数据 [英] Kinect data over polling

查看:66
本文介绍了通过轮询的Kinect数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



Hallo,

Hallo,

带有"AllFrameReadyEvent"我可以得到Kinect的所有流。

with the"AllFrameReadyEvent" I can get all streams of the Kinect.

但由于性能我必须使用轮询。我可以使用哪种方法通过轮询同时获取所有Streams?

But beacause of performance I have to work with polling. Which method can I use to get all Streams to the same time with polling?

可以吗?

sensor.DepthStream.OpenNextFrame(100);
sensor.SkeletonStream.OpenNextFrame(100);
sensor.ColorStream.OpenNextFrame(100);

或者应该我使用其他概念?

Or should I use other concepts?

推荐答案

这将为您提供三个帧,但它们不一定会及时同步。您需要检查每个帧的时间戳属性,以确定它们在多长时间内被捕获。

This will give you three frames, but they will not necessarily be synchronized in time. You'll need to examine the Timestamp properties of each frame to determine how far apart in time they were captured.

此外,如果性能受到关注,您是否真的愿意等待上面的代码序列执行300毫秒?您可能希望减少等待时间,可能为零,并准备好代码以处理帧尚未就绪的可能性。

Also, if performance is a concern, are you really willing to wait up to 300 ms for the code sequence above to execute? You may want to reduce the wait time, perhaps to zero, and have code ready to handle the possibility that a frame isn't ready yet.

John

K4W Dev

John
K4W Dev


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

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