首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >affdex- SDK :用于Unity3D的FaceTracking SDK

affdex- SDK :用于Unity3D的FaceTracking SDK
EN

Stack Overflow用户
提问于 2016-09-08 21:14:52
回答 1查看 671关注 0票数 2

有没有人可以推荐任何使用http://www.affectiva.com/在Unity3D中跟踪人脸和提取地标点的资源/项目

此处的教程仅指情感提取http://developer.affectiva.com/v2_2/unity/

EN

回答 1

Stack Overflow用户

发布于 2016-09-08 23:25:21

试试这样的东西(来自http://developer.affectiva.com/v2_2/unity/analyze-camera/)。

代码语言:javascript
复制
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
        }
    }
}
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39391979

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档