I am currently trying to do face detection using OpenCV 2.4.8. I am loading haarcascade classifier : haarcascade_frontalface_alt.xml. I am using detectMultiScale function with following arguments : face_cascade.detectMultiScale(grayscaleFrame, faces, 1.1, 3,CV_HAAR_FIND_BIGGEST_OBJECT).
The problem is that it doesn't return only biggest object as it is supposed to do. I build opencv in debug mode and found out that CV_HAAR_FIND_BIGGEST_OBJECT flag is redundant in new version. Can anyone tell me other way of detecting biggest object in a frame?