0

我目前正在使用 Microsoft 的 SDK 跟踪人脸,可以检测到人脸的 121 个点。我可以得到以下庄园的点坐标:

            if (!this.lastFaceTrackSucceeded || this.skeletonTrackingState != SkeletonTrackingState.Tracked)
                return;

            var faceModelPts = new List<Point>();
            var faceModel = new List<FaceModelTriangle>();

            for (int i = 0; i < this.facePoints.Count; i++)
            {
                faceModelPts.Add(new Point(this.facePoints[i].X + 0.5f, this.facePoints[i].Y + 0.5f));
                FaceDataPoints.XPointInfo[i] = this.facePoints[i].X;
                FaceDataPoints.YPointInfo[i] = this.facePoints[i].Y;
            }

但这些点似乎是彩色图像的坐标。如何获取有关每个像素的相应深度信息。比如用户脸上的“20”点?

4

1 回答 1

0

找到了答案

“GetProjected3DShape”形状包含面部跟踪基础使用的 2D 坐标

要获取深度信息,请使用“Get3DShape”

2的比较

        private EnumIndexableCollection<FeaturePoint, PointF> ColourPoints;

        private EnumIndexableCollection<FeaturePoint, Vector3DF> DepthPoints;

深度点保存每个面部点的 X、Y 和 Z 坐标信息

于 2012-11-29T18:25:12.930 回答