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
4
#include <
openpose/core/common.hpp
>
5
#include <
openpose/core/enumClasses.hpp
>
6
#include <
openpose/face/faceExtractorNet.hpp
>
7
8
namespace
op
9
{
13
class
OP_API
FaceExtractorCaffe
:
public
FaceExtractorNet
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
27
virtual
~FaceExtractorCaffe
();
28
33
void
netInitializationOnThread
();
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
53
DELETE_COPY
(
FaceExtractorCaffe
);
54
};
55
}
56
57
#endif
// OPENPOSE_FACE_FACE_EXTRACTOR_CAFFE_HPP
op::FaceExtractorCaffe
Definition:
faceExtractorCaffe.hpp:14
op::FaceExtractorCaffe::~FaceExtractorCaffe
virtual ~FaceExtractorCaffe()
op::FaceExtractorCaffe::forwardPass
void forwardPass(const std::vector< Rectangle< float >> &faceRectangles, const Matrix &inputData)
op::FaceExtractorCaffe::netInitializationOnThread
void netInitializationOnThread()
op::FaceExtractorCaffe::FaceExtractorCaffe
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)
op::FaceExtractorNet
Definition:
faceExtractorNet.hpp:14
op::Matrix
Definition:
matrix.hpp:96
common.hpp
enumClasses.hpp
faceExtractorNet.hpp
OP_API
#define OP_API
Definition:
macros.hpp:18
DELETE_COPY
#define DELETE_COPY(className)
Definition:
macros.hpp:32
op
Definition:
cameraParameterReader.hpp:7
op::ScaleMode
ScaleMode
Definition:
enumClasses.hpp:7
op::ScaleMode::ZeroToOneFixedAspect
@ ZeroToOneFixedAspect
op::Point< int >
op::Rectangle
Definition:
rectangle.hpp:12
include
openpose
face
faceExtractorCaffe.hpp
Generated by
1.9.1