18 #ifndef RAPP_FACE_DETECTOR_NODE
19 #define RAPP_FACE_DETECTOR_NODE
23 #include <opencv2/core/core.hpp>
24 #include <opencv2/highgui/highgui.hpp>
25 #include <opencv2/objdetect/objdetect.hpp>
26 #include <opencv2/imgproc/imgproc.hpp>
56 std::vector<cv::Rect>
findFaces(std::string file_name,
bool fast =
false);
65 std::vector<cv::Rect>
detectFaces(
const cv::Mat& input_img,
77 std::vector<cv::Rect>
detectFaces(
const cv::Mat& input_img,
78 const std::string& haar_path);
88 const std::vector<cv::Rect> firstFaceVector,
89 const std::vector<cv::Rect> secondFaceVector);
Class that implements a face detection algorithm based on a Haar cascade classifier.
std::vector< cv::Rect > detectFaces(const cv::Mat &input_img, bool fast=false)
Detects faces from a cv::Mat.
std::vector< cv::Rect > identifyUniqueFaces(const std::vector< cv::Rect > firstFaceVector, const std::vector< cv::Rect > secondFaceVector)
Identify unique faces from two sets of faces.
std::vector< cv::Rect > findFaces(std::string file_name, bool fast=false)
Finds faces in an image retrieved from a file URL.
cv::Mat loadImage(std::string file_name)
Loads an image from a file URL.
FaceDetector(void)
Default constructor.