OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
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 
7 
8 namespace op
9 {
14  {
15  public:
21  FaceExtractorCaffe(const Point<int>& netInputSize, const Point<int>& netOutputSize,
22  const std::string& modelFolder, const int gpuId,
23  const std::vector<HeatMapType>& heatMapTypes = {},
24  const ScaleMode heatMapScaleMode = ScaleMode::ZeroToOneFixedAspect,
25  const bool enableGoogleLogging = true);
26 
28 
34 
43  void forwardPass(const std::vector<Rectangle<float>>& faceRectangles, const Matrix& inputData);
44 
45  private:
46  // PIMPL idiom
47  // http://www.cppsamples.com/common-tasks/pimpl.html
48  struct ImplFaceExtractorCaffe;
49  std::unique_ptr<ImplFaceExtractorCaffe> upImpl;
50 
51  // PIMP requires DELETE_COPY & destructor, or extra code
52  // http://oliora.github.io/2015/12/29/pimpl-and-rule-of-zero.html
54  };
55 }
56 
57 #endif // OPENPOSE_FACE_FACE_EXTRACTOR_CAFFE_HPP
virtual ~FaceExtractorCaffe()
void forwardPass(const std::vector< Rectangle< float >> &faceRectangles, const Matrix &inputData)
FaceExtractorCaffe(const Point< int > &netInputSize, const Point< int > &netOutputSize, const std::string &modelFolder, const int gpuId, const std::vector< HeatMapType > &heatMapTypes={}, const ScaleMode heatMapScaleMode=ScaleMode::ZeroToOneFixedAspect, const bool enableGoogleLogging=true)
#define OP_API
Definition: macros.hpp:18
#define DELETE_COPY(className)
Definition: macros.hpp:32
ScaleMode
Definition: enumClasses.hpp:7