50 std::vector<std::vector<cv::Rect> > & eyes,
bool detect_eyes)
57 itsFaceCascade->detectMultiScale(img, faces, 1.1, 2, 0 | cv::CASCADE_SCALE_IMAGE,
58 cv::Size(img.cols / 2, img.rows / 2));
61 eyes.resize(faces.size());
65 for (
size_t i = 0; i < faces.size(); ++i)
68 cv::Mat faceROI = img(faces[i]);
71 itsEyesCascade->detectMultiScale(faceROI, eyes[i], 1.1, 2, 0 | cv::CASCADE_SCALE_IMAGE,
72 cv::Size(img.cols / 8, img.rows / 8), cv::Size(img.cols / 2, img.rows / 2));
void process(cv::Mat const &img, std::vector< cv::Rect > &faces, std::vector< std::vector< cv::Rect > > &eyes, bool detect_eyes=false)
Process an image, results are held in our data members.