Ask Your Question

Revision history [back]

Oh dear ... cvHaarDetectObjects is the most ancient interface for face detection around here. Instead move to the more advanced C++ interface called traincascade which does the same but in a more optimized way. Some references:

  • http://docs.opencv.org/modules/objdetect/doc/cascade_classification.html?highlight=viola%20jones
  • http://docs.opencv.org/doc/user_guide/ug_traincascade.html?highlight=viola%20jones
  • http://docs.opencv.org/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html#cascade-classifier

Using the LPB features gives a speed increase but at the cost of some accuracy. If you do not need to retrain your own model, I would still use the HAAR wavelets.

Eye direction, like in the case of viewing is a much harder task to do, and will not be easy with current openCV functionality.