All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
faceDetectorOpenCV.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_FACE_FACE_DETECTOR_OPENCV_HPP
#define OPENPOSE_FACE_FACE_DETECTOR_OPENCV_HPP
#include <opencv2/core/core.hpp>
#include <opencv2/objdetect/objdetect.hpp>
#include <openpose/core/common.hpp>
namespace op
{
class OP_API FaceDetectorOpenCV
{
public:
explicit FaceDetectorOpenCV(const std::string& modelFolder);
virtual ~FaceDetectorOpenCV();
// No thread-save
std::vector<Rectangle<float>> detectFaces(const cv::Mat& cvInputData);
private:
cv::CascadeClassifier mFaceCascade;
DELETE_COPY(FaceDetectorOpenCV);
};
}
#endif // OPENPOSE_FACE_FACE_DETECTOR_OPENCV_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
op::FaceDetectorOpenCV
Definition: faceDetectorOpenCV.hpp:10
common.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574