34#ifndef VP_DETECTOR_FACE_H
35#define VP_DETECTOR_FACE_H
37#include <visp3/core/vpConfig.h>
39#if defined(VISP_HAVE_OPENCV) && \
40 (((VISP_HAVE_OPENCV_VERSION < 0x050000) && defined(HAVE_OPENCV_OBJDETECT)) || \
41 ((VISP_HAVE_OPENCV_VERSION >= 0x050000) && defined(HAVE_OPENCV_XOBJDETECT)))
45#include <opencv2/highgui/highgui.hpp>
46#include <opencv2/imgproc/imgproc.hpp>
48#if (VISP_HAVE_OPENCV_VERSION < 0x050000)
49#include <opencv2/objdetect/objdetect.hpp>
50#elif (VISP_HAVE_OPENCV_VERSION >= 0x050000)
51#include <opencv2/xobjdetect.hpp>
54#include <visp3/detection/vpDetectorBase.h>
112 bool detect(
const cv::Mat &frame_gray);
virtual bool detect(const vpImage< unsigned char > &I)=0
cv::Mat m_frame_gray
OpenCV image used as input for the face detection.
void setCascadeClassifierFile(const std::string &filename)
std::vector< cv::Rect > m_faces
Bounding box of each detected face.
cv::CascadeClassifier m_face_cascade
Haar cascade classifier file name.
Definition of the vpImage class member functions.