setInputSize method

void setInputSize(
  1. (int, int) inputSize
)

Set the size for the network input, which overwrites the input size of creating model. Call this method when the size of input image does not match the input size when creating model.

inputSize the size of the input image

https://docs.opencv.org/4.x/df/d20/classcv_1_1FaceDetectorYN.html#a072418e5ce7beeb69c41edda75c41d2e

Implementation

void setInputSize((int, int) inputSize) {
  cvRun(() => cffi.FaceDetectorYN_SetInputSize(ref, inputSize.cvd.ref));
}