如何检测人的真实身高? [英] How to detect the real height of people?

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

问题描述

我们可以从kinect获取像素。如何从数据转移到真正的cm?有什么建议吗?

We can just get the pixels from kinect. How to transfer from the data to the real cm? Any suggestions ?

推荐答案

好吧,坦率地算一算。  如果您已经获得了深度图像,则它是相对直接的三角形。 

Well, do the math frankly.  It's relatively straight-forward trig if you've already got the depth image. 

假设您有一个代表您要测量的人的blob。  如果你的Kinect处于腰围,这意味着与人腰部的距离是水平线的合理近似值。  接下来,您需要知道他们头顶的距离
和他们脚底的距离。

Let's assume you have a blob representing the person you want to measure.  If your Kinect is at waist-height, that means the distance to the person's waist is a reasonable approximation of a horizontal line.  Next, you need to know the distance to the top of their head, and the bottom of their feet.

这会给你两个三角形,它们的信息分别是距离从头到脚。  它们共享相同的相邻侧,与臀部的距离。  这意味着该人的总高度是这两个
两个三角形的相对边的总和。

This gives you two triangles whose hypoteuses are respectively the distance to head and to toe.  They share the same adjacent side, the distance to the hips.  That means that the total height of the person is the sum of the opposite sides of those two triangles.

让我们命名几个变量

 


int DepthToHead, DepthToToes, DepthToWaist;

double AngleToHead, AngleToToes; //in radians

int HeightOfTopHalf, HeightOfBottomHalf;


这篇关于如何检测人的真实身高?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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