本文介绍了眼睛的中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在开始之前,请原谅我对Kinect API缺乏了解,我今天刚开始玩它。

Before I begin, Please excuse my lack of knowledge with the Kinect API, I've just started playing with it today.

我最终需要的是获得左右瞳孔之间的距离(mm)。

What I ultimately need is to get the distance in mm between the left and right pupil.

我目前正试图获得两名学生的位置。我相信这是可能的,Kinect已经在阅读本文时对此进行了跟踪:

I'm currently trying to get the location of both pupils. I believe this is possible and Kinect is already tracking this from reading this article:http://msdn.microsoft.com/en-us/library/jj130970.aspx

然而,我已经绘制了所有122个(?)面部点,但没有一个是瞳孔还是甚至是"眼睛的中心"。如上面MSDN库中的链接所述。

However, I've drawn out all of the 122 (?) face points and none of them are the pupil or even the "center of the eye" as mentioned in the link above in the MSDN library.

有人知道这是否可行或如何在C#中完成?

Does anyone know if this is possible or how this is done in C#?

谢谢,

Darren

推荐答案

2D网格和点数
人脸跟踪SDK跟踪指示的87个2D点在下图中(除了图2中未显示的13个点 - 跟踪点):

可以使用以下其中一项获取值:

The values can be acquired used one of the follow:

成功进行面部跟踪调用后, IFTResult 可访问以下信息:

Upon a successful face tracking call, IFTResult provides access to the following information:


  • GetFaceRect - 被跟踪面部周围边框的视频帧坐标中的矩形。
  • Get2DShapePoints - 视频fr中对齐面上关键点的2D(X,Y)坐标ame坐标。它跟踪下图中指示的87个2D点(以及此处未显示的13个其他点)。
  • GetFaceRect – The rectangle in video frame coordinates of the bounding box around the tracked face.
  • Get2DShapePoints - 2D (X,Y) coordinates of the key points on the aligned face in video frame coordinates. It tracks the 87 2D points indicated in the following image (as well as 13 others that aren’t represented here).


这篇关于眼睛的中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 10:33