测量使用Kinect的人的身高 [英] Measuring person's height using Kinect

查看:422
本文介绍了测量使用Kinect的人的身高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用计算Kinect的一个人的高度。这里是如何计算的高度(此代码不是很复杂的,它只是用于测试目的):

I am trying to calculate the height of a person using Kinect. Here is how I calculate the height (this code is not very sophisticated, it is only for testing purposes):

double h2s =  Math.Sqrt(Math.Pow(headX - shoulderCenterX, 2) + Math.Pow(headY - shoulderCenterY, 2)+ Math.Pow(headZ - shoulderCenterZ, 2));
double s2hip =  Math.Sqrt(Math.Pow(shoulderCenterX - hipX, 2) + Math.Pow(shoulderCenterY - hipY, 2) + Math.Pow(shoulderCenterZ - hipZ, 2));
double hip2Lhip =  Math.Sqrt(Math.Pow(hipX - hipLeftX, 2) + Math.Pow(hipY - hipLeftY, 2) + Math.Pow(hipZ - hipLeftZ, 2));
double Lhip2kneeL =  Math.Sqrt(Math.Pow(hipLeftX - kneeLeftX, 2) + Math.Pow(hipLeftY - kneeLeftY, 2) + Math.Pow(hipLeftZ - kneeLeftZ, 2));
double kneeL2ankle = Math.Sqrt(Math.Pow(kneeLeftX - ankleLeftX, 2) + Math.Pow(kneeLeftY - ankleLeftY, 2) + Math.Pow(kneeLeftZ - ankleLeftZ, 2));

double heigth = h2s + s2hip + hip2Lhip + Lhip2kneeL + kneeL2ankle;

vyskatextbox.Text = heigth.ToString();



我没有得到任何错误,但事情是,它是计算我的身高是错误的。我对我多么接近Kinect的为3至11取决于得到的数字。可能是什么问题?这一切是正确的数量变化还是应该保持不变不管是什么?另外为什么会像11(米)的数字?

I am not getting any error, but the thing is that it is calculating my height wrong. I am getting numbers between 3 to 11 depending on how close I was to Kinect. What could be wrong? Is it all right that the number changes or should it stay the same no matter what? Also why do I get numbers like 11 (m)?

推荐答案

这个链接是对我很有帮助。结果
准确地找到用户的高度

this link was helpful to me.
Find user height accurately

这篇关于测量使用Kinect的人的身高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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