kinect可以通过摄动摄像头不仅可以获取人脸位置旋转信息,也可以获取脸部轮廓的三维坐标

可以参考插件中的场景KinectFaceTrackingDemo1-4,在kinectManager基础上需要脚本FacetrackingManager。

1)通过KinectManager kinectManager = KinectManager.Instance;获取到Kinect运行实例

2)通过sensorData = kinectManager.GetSensorData();获取到传感器信息

3)同SensorData类的sensorInterface获取相关信息,如下为部分方法,可以获得人脸的Rect以及头部位置等等

    bool IsFaceTrackingAvailable(ref bool bNeedRestart);

    // initializes libraries and resources needed by the face tracking subsystem
bool InitFaceTracking(bool bUseFaceModel, bool bDrawFaceRect); // releases the resources and libraries used by the face tracking subsystem
void FinishFaceTracking(); // this method gets invoked periodically to update the face tracking state
// returns true if update is successful, false otherwise
bool UpdateFaceTracking(); // returns true if face tracking is initialized, false otherwise
bool IsFaceTrackingActive(); // returns true if face rectangle(s) must be drawn in color map, false otherwise
bool IsDrawFaceRect(); // returns true if the face of the specified user is being tracked at the moment, false otherwise
bool IsFaceTracked(long userId); // gets the face rectangle in color coordinates. returns true on success, false otherwise
bool GetFaceRect(long userId, ref Rect faceRect); // visualizes face tracker debug information
void VisualizeFaceTrackerOnColorTex(Texture2D texColor); // gets the head position of the specified user. returns true on success, false otherwise
bool GetHeadPosition(long userId, ref Vector3 headPos); // gets the head rotation of the specified user. returns true on success, false otherwise
bool GetHeadRotation(long userId, ref Quaternion headRot);

最新文章

  1. 如何在github上下载单个文件夹?
  2. Git使用笔记
  3. jira任务批量操作示例
  4. 移动测试主要使用的测试框架,基于python
  5. shell script
  6. Ganglia安装扩容
  7. 使用Subversion进行版本控制
  8. [未完成]关于枚举(Enum)
  9. pyqt托盘例子
  10. poj 3264 Balanced Lineup(线段树、RMQ)
  11. 完整CentOS搭建OpenVPN服务详细教程
  12. decorator(修饰器)的业务应用
  13. 用IntelliJ IDEA 开发Spring+SpringMVC+Mybatis框架 分步搭建四:配置springmvc
  14. java 中自定义类的概述
  15. thinkphp3.2 判断星期几
  16. c++——初始化列表
  17. 面试题中经常遇到的SQL题:删除重复数据,保留其中一条
  18. HDU1815 Building roads(二分+2-SAT)
  19. 老男孩Day3作业:工资管理系统
  20. HDU 3435 KM A new Graph Game

热门文章

  1. Django REST Framework之权限组件
  2. 阿里云搭建nginx + uWSGI 实现 django 项目
  3. 序列标注(BiLSTM-CRF/Lattice LSTM)
  4. Salesforce学习之路-developer篇(三)利用Visualforce Page实现页面的动态刷新案例学习
  5. docker 更新后出现 error during connect
  6. 快学Scala 第十九课 (trait的abstract override使用)
  7. .Net Core下使用HtmlAgilityPack解析采集互联网数据
  8. 工业搬运机器人(AGV)为什么要选择视觉导航
  9. tomcat容器是如何创建servlet类实例
  10. Head First设计模式——策略模式