简体   繁体   English

录制颜色和深度视频KINECT C#

[英]Record color and depth video KINECT C#

I want to record a video from my KINECT for the color and depth frames, one video for color frames and another for depth frames. 我想从我的KINECT录制彩色和深度帧的视频,一个用于彩色帧的视频和另一个用于深度帧的视频。 I wanna do this in C# WPF Application.. 我想在C#WPF应用程序中这样做..

any ideas about how to do this ? 有关如何做到这一点的任何想法?

Thanks a lot, 非常感谢,

What are you trying to achieve? 你想要实现什么目标? Do you need to store it raw/lossless or are you fine using a usual video codec? 你需要存储它原始/无损还是你使用通常的视频编解码器? The rgb stream is a usual video sequence that could be encoded just well with a codec. rgb流是一种通常的视频序列,可以用编解码器很好地编码。 However, the depth stream is storing 11 bits of depth information per pixel. 然而,深度流每个像素存储11位深度信息。 If you dont mind the loss in information, you could reduce this to a 8 bit greyscale image stream. 如果您不介意信息丢失,可以将其减少为8位灰度图像流。 That all depends on what you want to do with the recording afterwards. 这一切都取决于你之后想要做什么。

You should use the AForge.NET Library. 您应该使用AForge.NET库。 It is able to use Kinect for both color and depth. 它可以使用Kinect的颜色和深度。 Check out this example (bottom of page). 看看这个例子(页面底部)。 The Kinect namespace is here . Kinect名称空间在这里 It includes both a KinectVideoCamera (color) and KinectDepthCamera. 它包括KinectVideoCamera(颜色)和KinectDepthCamera。

AForge is easily integrated with WPF. AForge很容易与WPF集成。 If you need examples on using AForge with WPF, here is one, or just search the web. 如果您需要使用AForge和WPF的示例, 这里有一个,或者只是搜索网络。

Then of course, there is always the option of using Emgu cv . 当然,总有选择使用Emgu cv Here is one example of it with kinect. 是kinect的一个例子。

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

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