getTrackerNmsIouThreshold method

int getTrackerNmsIouThreshold()

Gets the non-maximum suppression (NMS) intersection-over-union (IOU) threshold, in the range (0;100). Hint: Default value is 0. Setting a high threshold allows to detect more overlapping faces which can be useful in a multi-face scenario. On the contrary, in a portrait scenario, a low NMS IOU threshold should be preferred.

return Non-maximum suppression (NMS) intersection-over-union (IOU) threshold, in the range (0;100). throws FaceException An error has occurred during Face Library execution.

Implementation

int getTrackerNmsIouThreshold() {
  Pointer<Int> pTrackerNmsIouThreshold = calloc();
  try {
    var err = faceSDK.id3FacePortraitProcessor_GetTrackerNmsIouThreshold(_pHandle.value, pTrackerNmsIouThreshold);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vTrackerNmsIouThreshold = pTrackerNmsIouThreshold.value;
    return vTrackerNmsIouThreshold;
  } finally {
    calloc.free(pTrackerNmsIouThreshold);
  }
}