getDetectionScore method

int getDetectionScore()

Gets the confidence score of the detected face.

return Confidence score of the detected face. throws FaceException An error has occurred during Face Library execution.

Implementation

int getDetectionScore() {
  Pointer<Int> pDetectionScore = calloc();
  try {
    var err = faceSDK.id3TrackedFace_GetDetectionScore(_pHandle.value, pDetectionScore);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vDetectionScore = pDetectionScore.value;
    return vDetectionScore;
  } finally {
    calloc.free(pDetectionScore);
  }
}