OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
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>
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
#define OP_API
Definition: macros.hpp:18
OP_API bool addBkgChannel(const PoseModel poseModel)
OP_API const std::vector< unsigned int > & getPosePartPairs(const PoseModel poseModel)
OP_API unsigned int poseBodyPartMapStringToKey(const PoseModel poseModel, const std::string &string)
const auto POSE_MAX_PEOPLE
OP_API unsigned int getPoseNumberBodyParts(const PoseModel poseModel)
OP_API const std::vector< unsigned int > & getPoseMapIndex(const PoseModel poseModel)
OP_API unsigned int getPoseDefaultMinSubsetCnt(const bool maximizePositives=false)
OP_API float getPoseDefaultConnectInterMinAboveThreshold(const bool maximizePositives=false)
OP_API unsigned int getPoseMaxPeaks()
OP_API const std::map< unsigned int, std::string > & getPoseBodyPartMapping(const PoseModel poseModel)
OP_API float getPoseDefaultConnectInterThreshold(const PoseModel poseModel, const bool maximizePositives=false)
OP_API float getPoseDefaultNmsThreshold(const PoseModel poseModel, const bool maximizePositives=false)
OP_API float getPoseNetDecreaseFactor(const PoseModel poseModel)
OP_API const std::string & getPoseTrainedModel(const PoseModel poseModel)
OP_API const std::string & getPoseProtoTxt(const PoseModel poseModel)
OP_API float getPoseDefaultConnectMinSubsetScore(const bool maximizePositives=false)
PoseModel
Definition: enumClasses.hpp:10