简体   繁体   English

Kinect v2 SDK-将人分解为组件

[英]Kinect v2 SDK - Split Human into Components

Quick Kinect v2 SDK question here. 快速Kinect v2 SDK问题在这里。 I'm trying to split up a human into his/her component parts. 我正在尝试将人分成他/她的组成部分。 Basically I would like to write a test app that has 6 live streams (using the Image control in WPF probably mapping to a Bitmap/Writeable Bitmap). 基本上,我想编写一个具有6个实时流的测试应用程序(使用WPF中的Image控件可能映射到位图/可写位图)。 These streams should have the background removed (which I think I should do before trying to do the split). 这些流应该删除背景(我认为在尝试拆分之前应该这样做)。

  • Stream 1 -> The person's head (including hair) 流1->人的头(包括头发)
  • Stream 2 -> Left hand 流2->左手
  • Stream 3 -> Right hand 流3->右手
  • Stream 4 -> Torso (from neck down to ankles) 流4->躯干(从脖子到脚踝)
  • Stream 5 -> Left boot 流5->左启动
  • Stream 6 -> Right boot 流6->正确启动

Could anyone suggest a way that I might be able to do this, or even tell me if it is possible? 谁能建议我一种可行的方式,甚至告诉我是否可行? I've been banging my head against a wall for weeks now! 我已经将头部撞墙了好几个星期了!

Thanks 谢谢

Benjamin Biggs 本杰明·比格斯

What you want to do is perfectly doable. 您想要做的是完全可行的。 But you will probably need some practice, and I would like to suggest to start with the samples included within the SDK. 但是您可能需要进行一些练习,我建议您从SDK附带的示例开始。

You can choice to develop your code in C# or in C++, if you want to use the Microsoft Kinect SDK v2. 如果要使用Microsoft Kinect SDK v2,则可以选择用C#或C ++开发代码。 But if you prefer to use WPF to build your GUI, probably the best solution is to develop in C# . 但是,如果您更喜欢使用WPF构建GUI,则最好的解决方案可能是使用C#开发。

You can start by taking a look to this post in which is explained how to remove the background from the RGB image using depth data. 您可以先看一下这篇文章 ,其中说明了如何使用深度数据从RGB图像中删除背景。

Then, use skeletal information to work on each human body parts. 然后,使用骨骼信息处理人体的各个部位。 For instance, you can think to get the Head skeletal joint, and center a square on it. 例如,您可以考虑获取Head骨骼关节,并在其上居中放置一个正方形。 Then you can print the resulting head (without the background) in a separate WPF window. 然后,您可以在单独的WPF窗口中打印得到的打印头(无背景)。

For more information about skeletal joints, refer to the BodyBasics-WPF sample, or take a look to this guide . 有关骨骼关节的更多信息,请参考BodyBasics-WPF示例,或参阅本指南

You can also have the need to use some image processing library. 您可能还需要使用一些图像处理库。 If it will be your case, C# can use most of the OpenCV facilities via the EmguCV library (which is a porting of OpenCV in C#). 如果您遇到这种情况,C#可以通过EmguCV库使用大多数OpenCV工具(这是OpenCV在C#中的移植)。

For more information, refer to the official Microsoft Kinect SDK 2.0 documentation . 有关更多信息,请参考官方的Microsoft Kinect SDK 2.0文档

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

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