FacemarkGetFaces Method (InputArray, Rect)
|
Detect faces from a given image using default or user defined face detector.
Some Algorithm might not provide a default face detector.
Namespace:
OpenCvSharp.Face
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic virtual bool GetFaces(
InputArray image,
out Rect[] faces
)
Public Overridable Function GetFaces (
image As InputArray,
<OutAttribute> ByRef faces As Rect()
) As Boolean
public:
virtual bool GetFaces(
InputArray^ image,
[OutAttribute] array<Rect>^% faces
)
abstract GetFaces :
image : InputArray *
faces : Rect[] byref -> bool
override GetFaces :
image : InputArray *
faces : Rect[] byref -> bool
function GetFaces(image, faces);
Parameters
- image
- Type: OpenCvSharpInputArray
Input image. - faces
- Type: OpenCvSharpRect
Output of the function which represent region of interest of the detected faces. Each face is stored in cv::Rect container.
Return Value
Type:
Boolean
See Also