computePose method
- DetectedFace detectedFace
Computes the pose of a detected face.
Important: Loading the FacePoseEstimator model is required to use this function.
param detectedFace Detected face to process. return The estimated pose of the detected face. throws FaceException An error has occurred during Face Library execution.
Implementation
FacePose computePose(DetectedFace detectedFace) {
Pointer<id3FacePose> pPose = calloc();
var err = faceSDK.id3FaceAnalyser_ComputePose(_pHandle.value, detectedFace.handle, pPose);
if (err != FaceError.success.value) {
calloc.free(pPose);
throw FaceException(err);
}
return FacePose(pPose);
}