简体   繁体   English

将Kinect的多个文本框数据保存到一个文本文件

[英]save multiple textbox data from Kinect to one text file

I am new to C# programming and have started building an WPF app using the Kinect. 我是C#编程的新手,已经开始使用Kinect构建WPF应用程序。 I have managed to track a skeleton and display each joints X & Y coordinates in text boxes, but i want to save all the data to one text file on my desktop for analysis. 我设法跟踪了一个骨骼并在文本框中显示了每个关节的X和Y坐标,但是我想将所有数据保存到桌面上的一个文本文件中进行分析。 Is there a way to do this? 有没有办法做到这一点?

Kinect Toolbox provides a mechanism to save the skeleton stream. Kinect工具箱提供了一种保存框架流的机制。

If you want to roll your own -- the data is just a bunch of objects, containing 3 points. 如果要自己滚动-数据只是一堆对象,包含3个点。 Simply store the points, as they come in, to a List and then output the data to a file using XML Serialization . 只需将输入的点存储到List ,然后使用XML序列化将数据输出到文件中。

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

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