SIVP Toolbox
Last update : September, 2008
detectfaces - Find faces in the image.
Calling Sequence
- faces = detectfaces(im)
Parameters
-
im:
The input image, color or gray image.
-
faces:
An Nx4 matrix. Each row of the matrix contains information about a face position and size: [x,y,w,h]. (x,y) is the top-left corner coordinates of a rectangle contains a face; w,h are width and height of the rectangle respectively.
Description
The function finds faces in an image.
Examples
im = imread(SIVP_PATH+'/images/lena.png');
faces = detectfaces(im);
[m,n] = size(faces);
for i=1:m,
im = rectangle(im, faces(i,:), [0,255,0]);
end;
imshow(im);
Authors
-
Shiqi Yu <shiqi.yu[at]gmail.com>
-
Jia Wu <jiawu83[at]gmail.com>
Bibliography
"Rapid Object Detection using a Boosted Cascade of Simple Features", Paul Viola and Michael J. Jones, IEEE CVPR, 2001.
"An Extended Set of Haar-like Features for Rapid Object Detection", Rainer Lienhart and Jochen Maydt, IEEE ICIP 2002, Vol. 1, pp. 900-903, Sep. 2002.
Availability
The latest version of SIVP can be found at
http://sivp.sourceforge.net
See Also
detectlefteyes, detectrighteyes,