Mapping image onto 3D face mesh

前端 未结 3 2016
余生分开走
余生分开走 2020-12-14 08:17

I am using the iPhone X and ARFaceKit to capture the user\'s face. The goal is to texture the face mesh with the user\'s image.

I\'m only looking at a si

3条回答
  •  星月不相逢
    2020-12-14 08:48

    The start point is different:

    Start point is different

    Apply the following changes to your code:

    //let vty = projectedPt!.y / (theCamera?.imageResolution.height)!
    let vty = ((theCamera?.imageResolution.height)! - projectedPt!.y) / (theCamera?.imageResolution.height)!
    

    You can get Normal Face.

提交回复
热议问题