kinect c# draw and move skeleton from saved data

人走茶凉 提交于 2019-12-05 11:00:19

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.

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. 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

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).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!