Application using opencv for detection of faces in an image