我正在尝试检测耳朵和脖子,以使用ARKit放置珠宝。目前,我正在使用硬编码值来执行此操作,但这对于不同的人(不同的面孔)来说是非常不准确的。
SCNNode *contentNode = [SCNNode node];
ARSCNFaceGeometry *faceGeometry = [ARSCNFaceGeometry faceGeometryWithDevice:_sceneView.device];
SCNNode *faceNode = [SCNNode nodeWithGeometry:faceGeometry];
contentNode = [SCNNode nodeWithGeometry:faceGeometry];
earringsPlane.firstMaterial.doubleSided = true;
[earringsNode setPosition:SCNVector3Make(-0.09, -0.04 , -0.04)];
earringsNode.geometry = earringsPlane;
[earringsNode2 setPosition:SCNVector3Make(0.09, -0.04 , -0.04)];
earringsNode2.geometry = earringsPlane2;