getMouthOpening method
Gets the value indicating estimating the opening of the mouth. -1 if not computed. The range is 0-100, 100 meaning the mouth is fully open.
return Value indicating estimating the opening of the mouth. -1 if not computed. The range is 0-100, 100 meaning the mouth is fully open. throws FaceException An error has occurred during Face Library execution.
Implementation
int getMouthOpening() {
Pointer<Int> pMouthOpening = calloc();
try {
var err = faceSDK.id3FacePortrait_GetMouthOpening(_pHandle.value, pMouthOpening);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vMouthOpening = pMouthOpening.value;
return vMouthOpening;
} finally {
calloc.free(pMouthOpening);
}
}