39 #ifndef __vpDetectorFace_h__
40 #define __vpDetectorFace_h__
42 #include <visp/vpConfig.h>
44 #if (VISP_HAVE_OPENCV_VERSION >= 0x020200)
46 #include <opencv2/objdetect/objdetect.hpp>
47 #include <opencv2/highgui/highgui.hpp>
48 #include <opencv2/imgproc/imgproc.hpp>
50 #include <visp/vpDetectorBase.h>
94 void setCascadeClassifierFile(
const std::string &filename);
virtual ~vpDetectorFace()
cv::CascadeClassifier m_face_cascade
Haar cascade classifier file name.
virtual bool detect(const vpImage< unsigned char > &I)=0
cv::Mat m_frame_gray
OpenCV image used as input for the face detection.
std::vector< cv::Rect > m_faces
Bounding box of each detected face.