Search code examples
algorithmopencvface-detectionviola-jones

Is there a way to detect a face with opencv without using viola-jones algorithm?


Is there a way to detect a face using opencv without using viola-jones algorithm?


Solution

  • An alternative to detecting faces using Haar Cascades in OpenCV is to use a Histogram of Oriented Gradients feature detector. HOG-based object detectors can be used for detecting faces, and this is the technique used in some other image processing libraries such as Dlib. A Histogram of Oriented Gradients feature detector stores a 2D grid of local gradients and gradient directions of an image and compares this with a reference grid trained on a data set.