private void GetAngles(FaceLandmarks currentLandmarks) { currentPosture = new FacePosture(); currentPosture.updatePoints(currentLandmarks); currentPosture.GetAnglesAndPoints(model_points); print("roll:" + currentPosture.angles.roll + " yaw:" + currentPosture.angles.yaw + " pitch:" + currentPosture.angles.pitch); }
public void InitFace() { originalLandmarks = null; currentLandmarks = null; currentPosture = null; }