Hi,
Try searching an example of haar cascades, then implement it for n faces.
//---------------------------------------------------------------------------
Or here's an old video, but I is probably outdated. It uses ofxCvHaarFinder.
Hope it helps a bit.