Table of Contents

Class FacemarkTrain

Namespace
OpenCvSharp.Face
Assembly
OpenCvSharp.dll

Base class for trainable facemark models.

public abstract class FacemarkTrain : Facemark, IDisposable
Inheritance
FacemarkTrain
Implements
Derived
Inherited Members

Constructors

FacemarkTrain(nint, nint, Action<nint>)

Initializes a trainable facemark wrapper.

Methods

AddTrainingSample(InputArray, InputArray)

Adds one training image and its landmark points.

GetFaces(InputArray, out Rect[])

Detects faces using the detector configured by the algorithm.

SetFaceDetector(FacemarkFaceDetector)

Installs a managed face detector used by the facemark algorithm.

Training()

Trains the model from samples previously added with AddTrainingSample(InputArray, InputArray).