getScore method

int getScore()

Gets the match score between the face probe template and the most similar one in the reference face template list used to perform the search.

return Match score between the face probe template and the most similar one in the reference face template list used to perform the search. throws FaceException An error has occurred during Face Library execution.

Implementation

int getScore() {
  Pointer<Int> pScore = calloc();
  try {
    var err = faceSDK.id3FaceCandidate_GetScore(_pHandle.value, pScore);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vScore = pScore.value;
    return vScore;
  } finally {
    calloc.free(pScore);
  }
}