Class FaceInvoke
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
IInputOutputArrayThe input image to be processed.
points
IInputArrayContains the data of points which will be drawn.
color
MCvScalarThe 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
IFacemarkThe facemark object
image
IInputArrayInput image.
faces
IInputArrayOutput of the function which represent region of interest of the detected faces. Each face is stored in cv::Rect container.
landmarks
IInputOutputArrayThe 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)