OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
poseParameters.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_POSE_POSE_PARAMETERS_HPP
2 #define OPENPOSE_POSE_POSE_PARAMETERS_HPP
3
4 #include <map>
5 #include <openpose/core/common.hpp>
6 #include <openpose/pose/enumClasses.hpp>
7
8 namespace op
9 {
10 // Constant Global Parameters
11 // For OpenCL-NMS in Ubuntu, (POSE_MAX_PEOPLE+1)*3(x,y,score) must be divisible by 32. Easy fix:
12 // POSE_MAX_PEOPLE = 32n - 1
13 // For OpenCL-NMS in Windows, it must be by 64, so 64n - 1
14 const auto POSE_MAX_PEOPLE = 127u;
15
16 // Model functions
17 OP_API const std::map<unsigned int, std::string>& getPoseBodyPartMapping(const PoseModel poseModel);
18 OP_API const std::string& getPoseProtoTxt(const PoseModel poseModel);
19 OP_API const std::string& getPoseTrainedModel(const PoseModel poseModel);
20 OP_API unsigned int getPoseNumberBodyParts(const PoseModel poseModel);
21 OP_API const std::vector<unsigned int>& getPosePartPairs(const PoseModel poseModel);
22 OP_API const std::vector<unsigned int>& getPoseMapIndex(const PoseModel poseModel);
23 OP_API unsigned int getPoseMaxPeaks();
24 OP_API float getPoseNetDecreaseFactor(const PoseModel poseModel);
25 OP_API unsigned int poseBodyPartMapStringToKey(const PoseModel poseModel, const std::string& string);
26 OP_API unsigned int poseBodyPartMapStringToKey(const PoseModel poseModel, const std::vector<std::string>& strings);
27
28 // Default NSM and body connector parameters
29 OP_API float getPoseDefaultNmsThreshold(const PoseModel poseModel, const bool maximizePositives = false);
30 OP_API float getPoseDefaultConnectInterMinAboveThreshold(const bool maximizePositives = false);
31 OP_API float getPoseDefaultConnectInterThreshold(const PoseModel poseModel, const bool maximizePositives = false);
32 OP_API unsigned int getPoseDefaultMinSubsetCnt(const bool maximizePositives = false);
33 OP_API float getPoseDefaultConnectMinSubsetScore(const bool maximizePositives = false);
34 OP_API bool addBkgChannel(const PoseModel poseModel);
35 }
36
37 #endif // OPENPOSE_POSE_POSE_PARAMETERS_HPP
enumClasses.hpp
op::getPoseMapIndex
OP_API const std::vector< unsigned int > & getPoseMapIndex(const PoseModel poseModel)
op::getPoseDefaultNmsThreshold
OP_API float getPoseDefaultNmsThreshold(const PoseModel poseModel, const bool maximizePositives=false)
op::getPoseMaxPeaks
OP_API unsigned int getPoseMaxPeaks()
op::getPosePartPairs
OP_API const std::vector< unsigned int > & getPosePartPairs(const PoseModel poseModel)
op::getPoseDefaultConnectMinSubsetScore
OP_API float getPoseDefaultConnectMinSubsetScore(const bool maximizePositives=false)
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::getPoseBodyPartMapping
OP_API const std::map< unsigned int, std::string > & getPoseBodyPartMapping(const PoseModel poseModel)
common.hpp
op::addBkgChannel
OP_API bool addBkgChannel(const PoseModel poseModel)
op::getPoseDefaultConnectInterThreshold
OP_API float getPoseDefaultConnectInterThreshold(const PoseModel poseModel, const bool maximizePositives=false)
op::getPoseDefaultMinSubsetCnt
OP_API unsigned int getPoseDefaultMinSubsetCnt(const bool maximizePositives=false)
op::getPoseNumberBodyParts
OP_API unsigned int getPoseNumberBodyParts(const PoseModel poseModel)
op::getPoseDefaultConnectInterMinAboveThreshold
OP_API float getPoseDefaultConnectInterMinAboveThreshold(const bool maximizePositives=false)
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)