OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
faceDetectorOpenCV.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_FACE_FACE_DETECTOR_OPENCV_HPP
2 #define OPENPOSE_FACE_FACE_DETECTOR_OPENCV_HPP
3
4 #include <opencv2/core/core.hpp>
5 #include <opencv2/objdetect/objdetect.hpp>
6 #include <openpose/core/common.hpp>
7
8 namespace op
9 {
10 class OP_API FaceDetectorOpenCV
11 {
12 public:
13 explicit FaceDetectorOpenCV(const std::string& modelFolder);
14
15 virtual ~FaceDetectorOpenCV();
16
17 // No thread-save
18 std::vector<Rectangle<float>> detectFaces(const cv::Mat& cvInputData);
19
20 private:
21 cv::CascadeClassifier mFaceCascade;
22
23 DELETE_COPY(FaceDetectorOpenCV);
24 };
25 }
26
27 #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