How to get mesh from kinect fracetrack?

本秂侑毒 提交于 2019-12-21 20:18:11

问题


How do I get the kinect facetracking mesh?

this is the mesh: http://imgur.com/TV6dHBC

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

e.g.: http://msdn.microsoft.com/en-us/library/jj130970.aspx


回答1:


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)



来源:https://stackoverflow.com/questions/23043315/how-to-get-mesh-from-kinect-fracetrack

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