All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
poseParameters.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_POSE_POSE_PARAMETERS_HPP
#define OPENPOSE_POSE_POSE_PARAMETERS_HPP
#include <map>
#include <openpose/core/common.hpp>
#include <openpose/pose/enumClasses.hpp>
namespace op
{
// Constant Global Parameters
// For OpenCL-NMS in Ubuntu, (POSE_MAX_PEOPLE+1)*3(x,y,score) must be divisible by 32. Easy fix:
// POSE_MAX_PEOPLE = 32n - 1
// For OpenCL-NMS in Windows, it must be by 64, so 64n - 1
const auto POSE_MAX_PEOPLE = 127u;
// Model functions
OP_API const std::map<unsigned int, std::string>& getPoseBodyPartMapping(const PoseModel poseModel);
OP_API const std::string& getPoseProtoTxt(const PoseModel poseModel);
OP_API const std::string& getPoseTrainedModel(const PoseModel poseModel);
OP_API unsigned int getPoseNumberBodyParts(const PoseModel poseModel);
OP_API const std::vector<unsigned int>& getPosePartPairs(const PoseModel poseModel);
OP_API const std::vector<unsigned int>& getPoseMapIndex(const PoseModel poseModel);
OP_API unsigned int getPoseMaxPeaks(const PoseModel poseModel);
OP_API float getPoseNetDecreaseFactor(const PoseModel poseModel);
OP_API unsigned int poseBodyPartMapStringToKey(const PoseModel poseModel, const std::string& string);
OP_API unsigned int poseBodyPartMapStringToKey(const PoseModel poseModel, const std::vector<std::string>& strings);
// Default NSM and body connector parameters
OP_API float getPoseDefaultNmsThreshold(const PoseModel poseModel);
OP_API float getPoseDefaultConnectInterMinAboveThreshold(const PoseModel poseModel);
OP_API float getPoseDefaultConnectInterThreshold(const PoseModel poseModel);
OP_API unsigned int getPoseDefaultMinSubsetCnt(const PoseModel poseModel);
OP_API float getPoseDefaultConnectMinSubsetScore(const PoseModel poseModel);
// const bool COCO_CHALLENGE = true;
const bool COCO_CHALLENGE = false;
}
#endif // OPENPOSE_POSE_POSE_PARAMETERS_HPP
op::getPoseDefaultConnectMinSubsetScore
OP_API float getPoseDefaultConnectMinSubsetScore(const PoseModel poseModel)
enumClasses.hpp
op::getPoseMapIndex
OP_API const std::vector< unsigned int > & getPoseMapIndex(const PoseModel poseModel)
op::getPoseDefaultConnectInterThreshold
OP_API float getPoseDefaultConnectInterThreshold(const PoseModel poseModel)
op::getPosePartPairs
OP_API const std::vector< unsigned int > & getPosePartPairs(const PoseModel poseModel)
op::getPoseMaxPeaks
OP_API unsigned int getPoseMaxPeaks(const PoseModel poseModel)
op::poseBodyPartMapStringToKey
OP_API unsigned int poseBodyPartMapStringToKey(const PoseModel poseModel, const std::string &string)
op::PoseModel
PoseModel
Definition: enumClasses.hpp:9
op::getPoseProtoTxt
OP_API const std::string & getPoseProtoTxt(const PoseModel poseModel)
op::POSE_MAX_PEOPLE
const auto POSE_MAX_PEOPLE
Definition: poseParameters.hpp:14
op::getPoseDefaultMinSubsetCnt
OP_API unsigned int getPoseDefaultMinSubsetCnt(const PoseModel poseModel)
op::getPoseBodyPartMapping
OP_API const std::map< unsigned int, std::string > & getPoseBodyPartMapping(const PoseModel poseModel)
common.hpp
op::COCO_CHALLENGE
const bool COCO_CHALLENGE
Definition: poseParameters.hpp:36
op::getPoseDefaultNmsThreshold
OP_API float getPoseDefaultNmsThreshold(const PoseModel poseModel)
op::getPoseDefaultConnectInterMinAboveThreshold
OP_API float getPoseDefaultConnectInterMinAboveThreshold(const PoseModel poseModel)
op::getPoseNumberBodyParts
OP_API unsigned int getPoseNumberBodyParts(const PoseModel poseModel)
OP_API
#define OP_API
Definition: macros.hpp:19
op::getPoseNetDecreaseFactor
OP_API float getPoseNetDecreaseFactor(const PoseModel poseModel)
cl::string
std::string string
Definition: cl2.hpp:574
op::getPoseTrainedModel
OP_API const std::string & getPoseTrainedModel(const PoseModel poseModel)