(四)Kinect人脸识别
2024-09-01 16:15:06
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);
最新文章
- 如何在github上下载单个文件夹?
- Git使用笔记
- jira任务批量操作示例
- 移动测试主要使用的测试框架,基于python
- shell script
- Ganglia安装扩容
- 使用Subversion进行版本控制
- [未完成]关于枚举(Enum)
- pyqt托盘例子
- poj 3264 Balanced Lineup(线段树、RMQ)
- 完整CentOS搭建OpenVPN服务详细教程
- decorator(修饰器)的业务应用
- 用IntelliJ IDEA 开发Spring+SpringMVC+Mybatis框架 分步搭建四:配置springmvc
- java 中自定义类的概述
- thinkphp3.2 判断星期几
- c++——初始化列表
- 面试题中经常遇到的SQL题:删除重复数据,保留其中一条
- HDU1815 Building roads(二分+2-SAT)
- 老男孩Day3作业:工资管理系统
- HDU 3435 KM A new Graph Game
热门文章
- Django REST Framework之权限组件
- 阿里云搭建nginx + uWSGI 实现 django 项目
- 序列标注(BiLSTM-CRF/Lattice LSTM)
- Salesforce学习之路-developer篇(三)利用Visualforce Page实现页面的动态刷新案例学习
- docker 更新后出现 error during connect
- 快学Scala 第十九课 (trait的abstract override使用)
- .Net Core下使用HtmlAgilityPack解析采集互联网数据
- 工业搬运机器人(AGV)为什么要选择视觉导航
- tomcat容器是如何创建servlet类实例
- Head First设计模式——策略模式