Table of Contents

Class FaceDetectorYN

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

DNN-based face detector

public class FaceDetectorYN : Algorithm, IDisposable
Inheritance
FaceDetectorYN
Implements
Inherited Members

Methods

Create(string, byte[], byte[], Size, float, float, int, Backend, Target)

Creates an instance of this class from buffers containing the model weights and configuration.

Create(string, string, Size, float, float, int, Backend, Target)

Creates an instance of this class with given parameters.

Detect(Mat, Mat)

A simple interface to detect face from given image.

GetInputSize()

Gets the network input size.

GetNMSThreshold()

Gets the non-maximum-suppression threshold.

GetScoreThreshold()

Gets the score threshold used to filter bounding boxes.

GetTopK()

Gets the number of bounding boxes preserved before NMS.

SetInputSize(Size)

Sets the network input size, overwriting the size specified when the detector was created.

SetInputSize(int, int)

Sets the network input size, overwriting the size specified when the detector was created.

SetNMSThreshold(float)

Sets the non-maximum-suppression threshold.

SetScoreThreshold(float)

Sets the score threshold used to filter bounding boxes.

SetTopK(int)

Sets the number of bounding boxes preserved before NMS.