#include <poseExtractorCaffe.hpp>
|
| PoseExtractorCaffe (const PoseModel poseModel, const std::string &modelFolder, const int gpuId, const std::vector< HeatMapType > &heatMapTypes={}, const ScaleMode heatMapScaleMode=ScaleMode::ZeroToOneFixedAspect, const bool addPartCandidates=false, const bool maximizePositives=false, const std::string &protoTxtPath="", const std::string &caffeModelPath="", const float upsamplingRatio=0.f, const bool enableNet=true, const bool enableGoogleLogging=true) |
|
virtual | ~PoseExtractorCaffe () |
|
virtual void | netInitializationOnThread () |
|
virtual void | forwardPass (const std::vector< Array< float >> &inputNetData, const Point< int > &inputDataSize, const std::vector< double > &scaleInputToNetInputs={1.f}, const Array< float > &poseNetOutput=Array< float >{}) |
|
const float * | getCandidatesCpuConstPtr () const |
|
const float * | getCandidatesGpuConstPtr () const |
|
const float * | getHeatMapCpuConstPtr () const |
|
const float * | getHeatMapGpuConstPtr () const |
|
std::vector< int > | getHeatMapSize () const |
|
const float * | getPoseGpuConstPtr () const |
|
Definition at line 16 of file poseExtractorCaffe.hpp.
◆ PoseExtractorCaffe()
op::PoseExtractorCaffe::PoseExtractorCaffe |
( |
const PoseModel |
poseModel, |
|
|
const std::string & |
modelFolder, |
|
|
const int |
gpuId, |
|
|
const std::vector< HeatMapType > & |
heatMapTypes = {} , |
|
|
const ScaleMode |
heatMapScaleMode = ScaleMode::ZeroToOneFixedAspect , |
|
|
const bool |
addPartCandidates = false , |
|
|
const bool |
maximizePositives = false , |
|
|
const std::string & |
protoTxtPath = "" , |
|
|
const std::string & |
caffeModelPath = "" , |
|
|
const float |
upsamplingRatio = 0.f , |
|
|
const bool |
enableNet = true , |
|
|
const bool |
enableGoogleLogging = true |
|
) |
| |
◆ ~PoseExtractorCaffe()
virtual op::PoseExtractorCaffe::~PoseExtractorCaffe |
( |
| ) |
|
|
virtual |
◆ forwardPass()
virtual void op::PoseExtractorCaffe::forwardPass |
( |
const std::vector< Array< float >> & |
inputNetData, |
|
|
const Point< int > & |
inputDataSize, |
|
|
const std::vector< double > & |
scaleInputToNetInputs = {1.f} , |
|
|
const Array< float > & |
poseNetOutput = Array< float >{} |
|
) |
| |
|
virtual |
- Parameters
-
poseNetOutput | If it is not empty, OpenPose will not run its internal body pose estimation network and will instead use this data as the substitute of its network. The size of this element must match the size of the output of its internal network, or it will lead to core dumped (segmentation) errors. You can modify the pose estimation flags to match the dimension of both elements (e.g., --net_resolution , --scale_number , etc.). |
Implements op::PoseExtractorNet.
◆ getCandidatesCpuConstPtr()
const float* op::PoseExtractorCaffe::getCandidatesCpuConstPtr |
( |
| ) |
const |
|
virtual |
◆ getCandidatesGpuConstPtr()
const float* op::PoseExtractorCaffe::getCandidatesGpuConstPtr |
( |
| ) |
const |
|
virtual |
◆ getHeatMapCpuConstPtr()
const float* op::PoseExtractorCaffe::getHeatMapCpuConstPtr |
( |
| ) |
const |
|
virtual |
◆ getHeatMapGpuConstPtr()
const float* op::PoseExtractorCaffe::getHeatMapGpuConstPtr |
( |
| ) |
const |
|
virtual |
◆ getHeatMapSize()
std::vector<int> op::PoseExtractorCaffe::getHeatMapSize |
( |
| ) |
const |
|
virtual |
◆ getPoseGpuConstPtr()
const float* op::PoseExtractorCaffe::getPoseGpuConstPtr |
( |
| ) |
const |
|
virtual |
◆ netInitializationOnThread()
virtual void op::PoseExtractorCaffe::netInitializationOnThread |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: