Kinect的C#绘制和保存来自移动数据骨架 [英] kinect c# draw and move skeleton from saved data

查看:441
本文介绍了Kinect的C#绘制和保存来自移动数据骨架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要做的就是绘制和保存的数据动画的骨架(就像我们可以用传感器流做)(所以我有X,Y和各关节的Z值)。

What I want to do is draw and animate a skeleton (like we can do with the sensor stream) from saved data (so I have x, y and z value of every joint).

我搜索了很多,但我找不到任何可以帮助我。

I searched a lot, but I can't find anything that can help me.

我可以将数据转换为关节的收集,关联它的骨架,但是然后呢?我不知道如何映射骨架的colorImagePoint。

I can convert the data to a joints collection, associate it to a skeleton, but then? I don't know how to map the skeleton to the colorImagePoint.

也许我必须创建一个 depthImageFrame

Maybe I have to create a depthImageFrame?

感谢你了!

推荐答案

。看看Kinect的工具箱。它提供了一个记录和回放功能,这符合您需求的原样,或者为你提供一个起点:
HTTP ://kinecttoolbox.codeplex.com/

Look into the Kinect Toolbox. It offers a recorder and playback functionality which may match your needs as is, or provide you with a starting point: http://kinecttoolbox.codeplex.com/

如果您的角色你自己的,我不知道你为什么会需要把它映射到颜色或深度框架,除非我失去了你在做什么的要求。

If you role your own, I'm not sure why you would need to map it to a color or depth frame, unless I'm missing a requirement of what you are doing.

看一看在微软Kinect的SkeletonBasics例如,对于Windows SDK的工具包的例子。它会告诉你必须绘制手工基于骨架数据的骨架。从那里,你可以看看为你做应用以下内容:

Have a look at the SkeletonBasics example in the Microsoft Kinect for Windows SDK Toolkit examples. It will show you have to draw a skeleton manually based on skeleton data. From there, you could look into doing the following for you application:


  1. 设置你的骨骼跟踪回调

  2. 在每个骨架,或更低(如果你不需要这么多)保存关节的位置

  3. 还节省了基于时间戳0

  4. 数据保存到选择的格式时完全

  1. Set up your skeleton tracking callback
  2. At each skeleton frame, or less (if you don't need so many) save the joint positions
  3. Also save a 0-based timestamp
  4. Save data to format of choice when complete

在一个播放,记录的数据读取和启动一个定时器。当定时器遇到下一个骨架的存储时间戳更新屏幕上绘制的骨架(使用SkeletonBasics示例应用为导向)。

During a playback, read in your recorded data and start a timer. When the timer hits the next skeleton frame's stored timestamp update your drawn skeleton on the screen (using the SkeletonBasics example app as guidance).

这篇关于Kinect的C#绘制和保存来自移动数据骨架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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