简体   繁体   English

在C ++中使用Kinect V2激活跟踪

[英]Activate tracking using Kinect V2 in C++

I recently started coding a Kinect in C++ using VS2013 and Kinect SDK 2.0. 我最近开始使用VS2013和Kinect SDK 2.0用C ++编写Kinect。 When I tried to get hand gestures after seeing code samples, I was unable to 'track' a body even after opening all necessary sources/streams (the Kinect, BodyFrameReader, etc.). 当我在查看代码示例后尝试获取手势时,即使打开所有必需的源/流(Kinect,BodyFrameReader等),我也无法“跟踪”身体。 So, my question is, does the Kinect automatically provide tracking? 所以,我的问题是Kinect是否会自动提供跟踪? If not, then how do you enable/activate tracking of a particular object? 如果没有,那么如何启用/激活对特定对象的跟踪?

After I fixed a unnoticed error, I discovered that Kinect automatically does body tracking. 修复了一个不为人知的错误后,我发现Kinect会自动进行人体跟踪。 To use it, just create the body stream and if the Kinect tracks a body, it would put it into the IBody* array that you created. 要使用它,只需创建主体流,如果Kinect跟踪主体,它将把它放入您创建的IBody *数组中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM