getPadScore method

int getPadScore()

Gets the score of the presentation attack detection.

return Score of the presentation attack detection. throws FaceException An error has occurred during Face Library execution.

Implementation

int getPadScore() {
  Pointer<Int> pPadScore = calloc();
  try {
    var err = faceSDK.id3FacePortrait_GetPadScore(_pHandle.value, pPadScore);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vPadScore = pPadScore.value;
    return vPadScore;
  } finally {
    calloc.free(pPadScore);
  }
}