将连接坐标保存到Kinect的CSV文件中 [英] save join coordinates to a CSV file for Kinect

查看:69
本文介绍了将连接坐标保存到Kinect的CSV文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我是C#的新手,并尝试制作一个跟踪应用,将每个关节位置保存到CSV文件中,这样我就可以制作图表了显示运动。我已设法保存单个关节坐标,但它们作为一个关节块附加而不是列表
坐标供我选择和创建图形,是否可以使用关节标题保存到CSV文件在页面顶部并在列中写下所有坐标位置? 

I'm new to C# and have tried to make a tracking app which saves each joint position into a CSV file so I can make graphs to display the movement. I have managed to save the individual joint coordinates but they append as a block of joints rather than a list of coordinates for me to select and create a graph, is it possible to save to the CSV file with titles of the joints at the top of the page and write all the coordinate positions in columns? 

例如 

头部X:1,2,3,4,5,6,7,8,9

Head X: 1, 2, 3 ,4, 5, 6 ,7 ,8 ,9

头部Y:9,8,7,6,5,4,3 ,2,1

Head Y: 9, 8, 7, 6, 5, 4, 3, 2, 1

而不是: 

Instead of: 

头部X:1

头部Y:9

负责人X:2

负责人Y:8

我保存到文件的代码是: 

my code for saving to file is: 




推荐答案

要执行您描述的操作,您需要保存数组中的所有坐标,然后 - 在捕获所有帧之后 - 循环遍历数组并将其写出来。

To do what you describe, you'll need to save up all of the coordinates in an array, and then - after all of your frames have been captured - loop through the array and write them out.


这篇关于将连接坐标保存到Kinect的CSV文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆