FacemarkFit Method (InputArray, InputArray, InputOutputArray)
|
Trains a Facemark algorithm using the given dataset.
Namespace:
OpenCvSharp.Face
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic virtual bool Fit(
InputArray image,
InputArray faces,
InputOutputArray landmarks
)
Public Overridable Function Fit (
image As InputArray,
faces As InputArray,
landmarks As InputOutputArray
) As Boolean
public:
virtual bool Fit(
InputArray^ image,
InputArray^ faces,
InputOutputArray^ landmarks
)
abstract Fit :
image : InputArray *
faces : InputArray *
landmarks : InputOutputArray -> bool
override Fit :
image : InputArray *
faces : InputArray *
landmarks : InputOutputArray -> bool
function Fit(image, faces, landmarks);
Parameters
- image
- Type: OpenCvSharpInputArray
Input image. - faces
- Type: OpenCvSharpInputArray
Output of the function which represent region of interest of the detected faces. Each face is stored in cv::Rect container. - landmarks
- Type: OpenCvSharpInputOutputArray
The detected landmark points for each faces.
Return Value
Type:
Boolean
See Also