getTintedGlassThreshold method

int getTintedGlassThreshold()

Gets the tinted glass detection threshold. If the score is above this value, the person is definitely wearing tinted glasses. Hint: Default value 25.

return Tinted glass detection threshold. throws FaceException An error has occurred during Face Library execution.

Implementation

int getTintedGlassThreshold() {
  Pointer<Int> pTintedGlassThreshold = calloc();
  try {
    var err = faceSDK.id3FacePortraitProcessor_GetTintedGlassThreshold(_pHandle.value, pTintedGlassThreshold);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vTintedGlassThreshold = pTintedGlassThreshold.value;
    return vTintedGlassThreshold;
  } finally {
    calloc.free(pTintedGlassThreshold);
  }
}