Table of Contents

Method Fit

Namespace
OpenCvSharp.Face
Assembly
OpenCvSharp.dll

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