getFacesHAAR (cv.Facemark) - MATLAB File Help
cv.Facemark.getFacesHAAR

Default face detector

[faces, success] = cv.Facemark.getFacesHAAR(img, faceCascadeName)

Input

Output

This function is mainly utilized by the implementation of a Facemark algorithm. End users are advised to use function cv.Facemark.getFaces which can be manually defined and circumvented to the algorithm by cv.Facemark.setFaceDetector.

Example

faces = cv.Facemark.getFacesHAAR(img, 'haarcascade_frontalface_alt.xml');
for i=1:numel(faces)
    img = cv.rectangle(img, faces{i}, 'Color',[0 255 0]);
end
imshow(img)
See also
Method Details
Access public
Sealed false
Static true