getFacesHAAR (cv.Facemark) - MATLAB File Help |
Default face detector
[faces, success] = cv.Facemark.getFacesHAAR(img, faceCascadeName)
{[x,y,w,h], ...}
. Each face
is stored as rect.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.
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)
Access | public |
Sealed | false |
Static | true |