getMouthVisibility method

int getMouthVisibility()

Gets the value estimating the visibility of the mouth. -1 if not computed. The range is 0-100, 100 meaning the mouth is fully visible.

return Value estimating the visibility of the mouth. -1 if not computed. The range is 0-100, 100 meaning the mouth is fully visible. throws FaceException An error has occurred during Face Library execution.

Implementation

int getMouthVisibility() {
  Pointer<Int> pMouthVisibility = calloc();
  try {
    var err = faceSDK.id3FacePortrait_GetMouthVisibility(_pHandle.value, pMouthVisibility);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vMouthVisibility = pMouthVisibility.value;
    return vMouthVisibility;
  } finally {
    calloc.free(pMouthVisibility);
  }
}