简体   繁体   English

Kinect v2保存/加载MultiSourceFrames

[英]Kinect v2 Save/Load MultiSourceFrames

I would like to know if there is a way to save MultiSourceFrames to disk in such a way that I can load them up to use later. 我想知道是否有一种方法可以将MultiSourceFrames保存到磁盘,以便我可以加载它们以备后用。

The reason for this is because I have far too much processing to do on each frame to reasonably perform this live. 这样做的原因是因为我无法在每个帧上进行太多处理来合理地执行此实时操作。 I have no need to process the frames in real time so, I would like to find a way to save a number of frames to disk (or even to memory?) and perform my processing afterwards. 我不需要实时处理这些帧,因此,我想找到一种方法将许多帧保存到磁盘(甚至是内存?)中,然后再执行处理。

So far, I have tried storing these in a List<MultiSourceFrame> but, for each frame, I find that I can't then acquire the ColourFrame component (for example), presumably because the whole object structure is not saved. 到目前为止,我已经尝试将它们存储在List<MultiSourceFrame>但是对于每个帧,我发现我无法再获取ColourFrame组件(例如),大概是因为未保存整个对象结构。

Potential Solution Idea? 潜在的解决方案构想?

I know that Kinect Studio is able to save .xed files but I really need to be able to do this from code. 我知道Kinect Studio可以保存.xed文件,但我确实需要能够通过代码来完成。 Moreover, I don't know whether I can turn the .xed file back into a collection of MultiSourceFrames. 而且,我不知道是否可以将.xed文件转换回MultiSourceFrames的集合。

I'd be really grateful if anyone can help me out with this problem! 如果有人可以帮助我解决这个问题,我将不胜感激! I promise to upvote/accept helpful answers! 我保证会投票/接受有用的答案!

You can't just save the MultiSourceFrame object. 您不能只保存MultiSourceFrame对象。 Instead, you should extract the (raw) data you need from the frames and save that. 相反,您应该从帧中提取所需的(原始)数据并保存。

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

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