setInputSize method
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) =>
cobjdetect.cv_FaceDetectorYN_setInputSize(ref, inputSize.cvd.ref);