OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
faceExtractorCaffe.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_FACE_FACE_EXTRACTOR_CAFFE_HPP
2 #define OPENPOSE_FACE_FACE_EXTRACTOR_CAFFE_HPP
3 
4 #include <opencv2/core/core.hpp> // cv::Mat
8 
9 namespace op
10 {
15  {
16  public:
22  FaceExtractorCaffe(const Point<int>& netInputSize, const Point<int>& netOutputSize,
23  const std::string& modelFolder, const int gpuId,
24  const std::vector<HeatMapType>& heatMapTypes = {},
25  const ScaleMode heatMapScale = ScaleMode::ZeroToOne,
26  const bool enableGoogleLogging = true);
27 
28  virtual ~FaceExtractorCaffe();
29 
34  void netInitializationOnThread();
35 
46  void forwardPass(const std::vector<Rectangle<float>>& faceRectangles, const cv::Mat& cvInputData,
47  const double scaleInputToOutput);
48 
49  private:
50  // PIMPL idiom
51  // http://www.cppsamples.com/common-tasks/pimpl.html
52  struct ImplFaceExtractorCaffe;
53  std::unique_ptr<ImplFaceExtractorCaffe> upImpl;
54 
55  // PIMP requires DELETE_COPY & destructor, or extra code
56  // http://oliora.github.io/2015/12/29/pimpl-and-rule-of-zero.html
58  };
59 }
60 
61 #endif // OPENPOSE_FACE_FACE_EXTRACTOR_CAFFE_HPP
#define DELETE_COPY(className)
Definition: macros.hpp:24
Definition: faceExtractorCaffe.hpp:14
ScaleMode
Definition: enumClasses.hpp:6
Definition: rectangle.hpp:11
#define OP_API
Definition: macros.hpp:9
Definition: faceExtractor.hpp:14