如何从kinect Fracetrack获取网格? [英] How to get mesh from kinect fracetrack?

查看:77
本文介绍了如何从kinect Fracetrack获取网格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获得kinect面部跟踪网格?

How do I get the kinect facetracking mesh?

这是网格: http://imgur.com/TV6dHBC

我尝试了几种方法,但是无法使其正常工作.

I have tried several ways, but could not make it work.

例如: http://msdn.microsoft.com/en-us/library/jj130970.aspx

推荐答案

IFTModel接口提供的3D人脸模型

人脸跟踪SDK还会尝试将3D蒙版适配到用户的脸部. 3D模型基于Candide3模型 ( http://www.icg.isy.liu.se/candide/) :

The Face Tracking SDK also tries to fit a 3D mask to the user’s face. The 3D model is based on the Candide3 model (http://www.icg.isy.liu.se/candide/) :

注意:
每次调用人脸跟踪时不会直接返回此模型 SDK,但可以通过AU和SU进行计算.

Note:
This model is not returned directly at each call to the Face Tracking SDK, but can be computed from the AUs and SUs.

没有直接的功能可以做到这一点.您必须使用三角形和顶点数据来生成所需的必要顶点和索引列表. GetTriangles方法 为您提供面(三角形的顶点的索引以顺时针方式),然后将这些索引用于数组的顶点以获得3d模型.必须使用 Get3DShape或GetProjectedShape(2D)函数从AU和SU中每帧重建顶点数组.

There is no direct functionality to do that. You have to use the triangle and vertex data to generate the necessary vertex and indices lists that are required. GetTriangles method gets you the faces (indexes of the vertices of the triangles in a clockwise fashion), and then from using these indexes for the array of vertices to get the 3d model. Array of vertices has to be reconstructed every frame from the AUs and SUs with Get3DShape or GetProjectedShape (2D) functions.

有关更多信息,请搜索IFTModel( http://msdn.microsoft.com /en-us/library/jj130970.aspx )和visualizeFaceModel(示例代码,可以帮助理解 get3DShape 的输入参数). (此示例使用getProjectedShape,但是两个函数的输入参数几乎相同)

For more, search for IFTModel (http://msdn.microsoft.com/en-us/library/jj130970.aspx) and for visualizeFaceModel (a sample code, which can help in understanding the input parameters of get3DShape). (This sample uses the getProjectedShape, but the input parameters are nearly identical for both functions)

这篇关于如何从kinect Fracetrack获取网格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆