FacemarkFit Method (InputArray, InputArray, InputOutputArray, IntPtr)
|
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,
IntPtr config
)
Public Overridable Function Fit (
image As InputArray,
faces As InputArray,
landmarks As InputOutputArray,
config As IntPtr
) As Boolean
public:
virtual bool Fit(
InputArray^ image,
InputArray^ faces,
InputOutputArray^ landmarks,
IntPtr config
)
abstract Fit :
image : InputArray *
faces : InputArray *
landmarks : InputOutputArray *
config : IntPtr -> bool
override Fit :
image : InputArray *
faces : InputArray *
landmarks : InputOutputArray *
config : IntPtr -> bool
function Fit(image, faces, landmarks, config);
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. - config
- Type: SystemIntPtr
Algorithm specific for running time parameters.
Return Value
Type:
Boolean
See Also