getMakeup method

int getMakeup()

Gets the value indicating whether makeup is detected. -1 if not computed. The range is 0-100, 100 meaning makeup is detected.

return Value indicating whether makeup is detected. -1 if not computed. The range is 0-100, 100 meaning makeup is detected. throws FaceException An error has occurred during Face Library execution.

Implementation

int getMakeup() {
  Pointer<Int> pMakeup = calloc();
  try {
    var err = faceSDK.id3FacePortrait_GetMakeup(_pHandle.value, pMakeup);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vMakeup = pMakeup.value;
    return vMakeup;
  } finally {
    calloc.free(pMakeup);
  }
}