getFaceDetectionImageSize method

int getFaceDetectionImageSize()

Gets the the size, in pixels, of the downscaled image used for face detection. Hint: Default value is 256. Low values tend to ignore small faces in the input image, while higher values tend to take longer to process.

return The size, in pixels, of the downscaled image used for face detection. throws FaceException An error has occurred during Face Library execution.

Implementation

int getFaceDetectionImageSize() {
  Pointer<Int> pFaceDetectionImageSize = calloc();
  try {
    var err = faceSDK.id3FacePortraitProcessor_GetFaceDetectionImageSize(_pHandle.value, pFaceDetectionImageSize);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vFaceDetectionImageSize = pFaceDetectionImageSize.value;
    return vFaceDetectionImageSize;
  } finally {
    calloc.free(pFaceDetectionImageSize);
  }
}