How to get mesh from kinect fracetrack?

試著忘記壹切 提交于 2019-12-04 15:09:04
Snowman

3D Face Model Provided by IFTModel Interface

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/) :

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

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.

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)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!