Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Try to use LBP features instead of Haar. It may give you ~3x speedup. Cascade file for the LBP face detector is available in the OpenCV repository.
  2. Try to increase haar_minSize parameter, because it greatly affects the speed.
  3. Right now you can try CV_HAAR_FIND_BIGGEST_OBJECT, on mobiles it is sometimes true that you need only the largest face.
  4. You can also try to use DetectionBasedTracker class which does tracking. It greatly reduces apparent processing time, because slow detection is performed in a background thread.