setTopK method

void setTopK(
  1. int topK
)

Set the number of bounding boxes preserved before NMS.

topK the number of bounding boxes to preserve from top rank based on score

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

Implementation

void setTopK(int topK) {
  cvRun(() => cffi.FaceDetectorYN_SetTopK(ref, topK));
}