Afdex sdk:Unity3D的FaceTracking sdk

Afdex sdk:Unity3D的FaceTracking sdk,unity3d,tracking,face,affdex-sdk,Unity3d,Tracking,Face,Affdex Sdk,有人可以参考Unity3D中用于跟踪面和提取地标点的任何资源/项目吗 这里的教程只提到情绪提取 试试这样的东西(从) 使用Affdex; 使用System.Collections.Generic; 公共类PlayerMotions:ImageResultsListener { 公共功能点[]功能点列表; 公共覆盖void onFaceFound(浮点时间戳,int-faceId) { Log(“找到了面”); } 公共覆盖void onFaceLost(浮点时间戳,int-faceId) { L

有人可以参考Unity3D中用于跟踪面和提取地标点的任何资源/项目吗

这里的教程只提到情绪提取

试试这样的东西(从)

使用Affdex;
使用System.Collections.Generic;
公共类PlayerMotions:ImageResultsListener
{
公共功能点[]功能点列表;
公共覆盖void onFaceFound(浮点时间戳,int-faceId)
{
Log(“找到了面”);
}
公共覆盖void onFaceLost(浮点时间戳,int-faceId)
{
Log(“丢了面子”);
}
公共覆盖无效onImageResults(字典面)
{
foreach(面中的KeyValuePair对)
{
int FaceId=pair.Key;//面唯一Id。
Face Face=pair.Value;//包含情绪和面部表情值的Face类的实例。
//检索面部地标(面部特征点)的坐标
featurePointsList=face.FeaturePoints;
//对特征点进行处理
}
}
}

Anshul Jhawar如果这回答了您的问题,请接受。谢谢
using Affdex;
using System.Collections.Generic;

public class PlayerEmotions : ImageResultsListener
{
    public FeaturePoint[] featurePointsList;

    public override void onFaceFound(float timestamp, int faceId)
    {
        Debug.Log("Found the face");
    }

    public override void onFaceLost(float timestamp, int faceId)
    {
        Debug.Log("Lost the face");
    }

    public override void onImageResults(Dictionary<int, Face> faces)
    {
        foreach (KeyValuePair<int, Face> pair in faces)
        {
            int FaceId = pair.Key;  // The Face Unique Id.
            Face face = pair.Value;    // Instance of the face class containing emotions, and facial expression values.

            //Retrieve the coordinates of the facial landmarks (face feature points)
            featurePointsList = face.FeaturePoints;

            // do something with the feature points
        }
    }
}