39 #ifndef _vpDetectorFace_h_ 40 #define _vpDetectorFace_h_ 42 #include <visp3/core/vpConfig.h> 44 #if (VISP_HAVE_OPENCV_VERSION >= 0x020200) && defined(VISP_HAVE_OPENCV_OBJDETECT) 48 #include <opencv2/highgui/highgui.hpp> 49 #include <opencv2/imgproc/imgproc.hpp> 50 #include <opencv2/objdetect/objdetect.hpp> 52 #include <visp3/detection/vpDetectorBase.h> 91 std::vector<cv::Rect> m_faces;
92 cv::CascadeClassifier m_face_cascade;
100 virtual ~vpDetectorFace(){}
103 bool detect(
const cv::Mat &frame_gray);
104 void setCascadeClassifierFile(
const std::string &filename);
virtual bool detect(const vpImage< unsigned char > &I)=0