Table of Contents

Class FaceInvoke

Namespace
Emgu.CV.Face
Assembly
Emgu.CV.dll

Class that contains entry points for the Face module.

public static class FaceInvoke
Inheritance
FaceInvoke
Inherited Members

Methods

DrawFacemarks(IInputOutputArray, IInputArray, MCvScalar)

Utility to draw the detected facial landmark points.

public static void DrawFacemarks(IInputOutputArray image, IInputArray points, MCvScalar color)

Parameters

image IInputOutputArray

The input image to be processed.

points IInputArray

Contains the data of points which will be drawn.

color MCvScalar

The color of points in BGR format

Fit(IFacemark, IInputArray, IInputArray, IInputOutputArray)

Detect facial landmarks from an image.

public static bool Fit(this IFacemark facemark, IInputArray image, IInputArray faces, IInputOutputArray landmarks)

Parameters

facemark IFacemark

The facemark object

image IInputArray

Input image.

faces IInputArray

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

landmarks IInputOutputArray

The detected landmark points for each faces.

Returns

bool

True if successful

LoadModel(IFacemark, string)

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

public static void LoadModel(this IFacemark facemark, string model)

Parameters

facemark IFacemark

The facemark object

model string

A string represent the filename of a trained model.