detectOcclusions method
- Portrait portrait
Detects occlusions on the subject's face.
Important: This function requires the FaceOcclusionDetector2A model to be loaded.
param portrait The portrait. throws FaceException An error has occurred during Face Library execution.
Implementation
void detectOcclusions(Portrait portrait) {
var err = faceSDK.id3FacePortraitProcessor_DetectOcclusions(_pHandle.value, portrait.handle);
if (err != FaceError.success.value) {
throw FaceException(err);
}
}