Table of Contents

Class Facemark

Namespace
OpenCvSharp.Face
Assembly
OpenCvSharp.dll

Abstract base class for all facemark models.

All facemark models in OpenCV are derived from the abstract base class Facemark, which provides a unified access to all facemark algorithms in OpenCV. To utilize this API in your program, please take a look at the @ref tutorial_table_of_content_facemark

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

Methods

Fit(InputArray, InputArray, out Point2f[][])

Trains a Facemark algorithm using the given dataset.

public virtual bool Fit(InputArray image, InputArray faces, out Point2f[][] landmarks)

Parameters

image InputArray

Input image.

faces InputArray

Output of the function which represent region of interest of the detected faces. Each face is stored in cv::Rect container.

landmarks Point2f[][]

The detected landmark points for each faces.

Returns

bool

LoadModel(string)

A function to load the trained model before the fitting process.

public virtual void LoadModel(string model)

Parameters

model string

A string represent the filename of a trained model.