OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
poseParameters.hpp File Reference
#include <map>
#include <openpose/core/common.hpp>
#include <openpose/pose/enumClasses.hpp>

Go to the source code of this file.

Namespaces

 op
 

Macros

#define POSE_COCO_PAIRS_RENDER_GPU   {1,2, 1,5, 2,3, 3,4, 5,6, 6,7, 1,8, 8,9, 9,10, 1,11, 11,12, 12,13, 1,0, 0,14, 14,16, 0,15, 15,17}
 
#define POSE_COCO_COLORS_RENDER_GPU
 
#define POSE_MPI_PAIRS_RENDER_GPU   { 0,1, 1,2, 2,3, 3,4, 1,5, 5,6, 6,7, 1,14, 14,8, 8,9, 9,10, 14,11, 11,12, 12,13}
 
#define POSE_MPI_COLORS_RENDER_GPU
 
#define POSE_BODY_18_PAIRS_RENDER_GPU   POSE_COCO_PAIRS_RENDER_GPU
 
#define POSE_BODY_18_COLORS_RENDER_GPU   POSE_COCO_COLORS_RENDER_GPU
 
#define POSE_BODY_19_PAIRS_RENDER_GPU   {1,8, 1,2, 1,5, 2,3, 3,4, 5,6, 6,7, 8,9, 9,10, 10,11, 8,12, 12,13, 13,14, 1,0, 0,15, 15,17, 0,16, 16,18}
 
#define POSE_BODY_19_COLORS_RENDER_GPU
 
#define POSE_BODY_22_PAIRS_RENDER_GPU   {1,2, 1,5, 2,3, 3,4, 5,6, 6,7, 1,8, 8,9, 9,10, 1,11, 11,12}
 
#define POSE_BODY_22_COLORS_RENDER_GPU
 

Functions

const std::map< unsigned int,
std::string > & 
op::getPoseBodyPartMapping (const PoseModel poseModel)
 
OP_API unsigned int op::poseBodyPartMapStringToKey (const PoseModel poseModel, const std::string &string)
 
OP_API unsigned int op::poseBodyPartMapStringToKey (const PoseModel poseModel, const std::vector< std::string > &strings)
 

Variables

const unsigned int op::POSE_MAX_PEOPLE = 96u
 
const std::map< unsigned int,
std::string > 
op::POSE_COCO_BODY_PARTS
 
const unsigned int op::POSE_COCO_NUMBER_PARTS = 18u
 
const std::vector< unsigned int > op::POSE_COCO_MAP_IDX {31,32, 39,40, 33,34, 35,36, 41,42, 43,44, 19,20, 21,22, 23,24, 25,26, 27,28, 29,30, 47,48, 49,50, 53,54, 51,52, 55,56, 37,38, 45,46}
 
const std::vector< unsigned int > op::POSE_COCO_PAIRS_RENDER {POSE_COCO_PAIRS_RENDER_GPU}
 
const std::vector< unsigned int > op::POSE_COCO_PAIRS {1,2, 1,5, 2,3, 3,4, 5,6, 6,7, 1,8, 8,9, 9,10, 1,11, 11,12, 12,13, 1,0, 0,14, 14,16, 0,15, 15,17, 2,16, 5,17}
 
const std::vector< float > op::POSE_COCO_COLORS_RENDER {POSE_COCO_COLORS_RENDER_GPU}
 
const std::map< unsigned int,
std::string > 
op::POSE_MPI_BODY_PARTS
 
const unsigned int op::POSE_MPI_NUMBER_PARTS = 15
 
const std::vector< unsigned int > op::POSE_MPI_MAP_IDX {16,17, 18,19, 20,21, 22,23, 24,25, 26,27, 28,29, 30,31, 32,33, 34,35, 36,37, 38,39, 40,41, 42,43}
 
const std::vector< unsigned
int > POSE_MPI_PAIRS 
op::POSE_MPI_PAIRS_RENDER_GPU
 
const std::vector< float > op::POSE_MPI_COLORS_RENDER {POSE_MPI_COLORS_RENDER_GPU}
 
const std::map< unsigned int,
std::string > 
op::POSE_BODY_18_BODY_PARTS
 
const unsigned int op::POSE_BODY_18_NUMBER_PARTS {POSE_COCO_NUMBER_PARTS}
 
const std::vector< unsigned int > op::POSE_BODY_18_MAP_IDX {POSE_COCO_MAP_IDX}
 
const std::vector< unsigned int > op::POSE_BODY_18_PAIRS_RENDER {POSE_BODY_18_PAIRS_RENDER_GPU}
 
const std::vector< unsigned int > op::POSE_BODY_18_PAIRS {POSE_COCO_PAIRS}
 
const std::vector< float > op::POSE_BODY_18_COLORS_RENDER {POSE_BODY_18_COLORS_RENDER_GPU}
 
const std::map< unsigned int,
std::string > 
op::POSE_BODY_19_BODY_PARTS
 
const unsigned int op::POSE_BODY_19_NUMBER_PARTS = 19u
 
const std::vector< unsigned int > op::POSE_BODY_19_MAP_IDX {20,21, 34,35, 42,43, 36,37, 38,39, 44,45, 46,47, 26,27, 22,23, 24,25, 28,29, 30,31, 32,33, 50,51, 52,53, 56,57, 54,55, 58,59, 40,41, 48,49}
 
const std::vector< unsigned int > op::POSE_BODY_19_PAIRS_RENDER {POSE_COCO_PAIRS_RENDER_GPU}
 
const std::vector< unsigned int > op::POSE_BODY_19_PAIRS {1,8, 1,2, 1,5, 2,3, 3,4, 5,6, 6,7, 8,9, 9,10, 10,11, 8,12, 12,13, 13,14, 1,0, 0,15, 15,17, 0,16, 16,18, 2,17, 5,18}
 
const std::vector< float > op::POSE_BODY_19_COLORS_RENDER {POSE_BODY_19_COLORS_RENDER_GPU}
 
const std::map< unsigned int,
std::string > 
op::POSE_BODY_22_BODY_PARTS
 
const unsigned int op::POSE_BODY_22_NUMBER_PARTS = 22u
 
const std::vector< unsigned int > op::POSE_BODY_22_MAP_IDX {35,36, 43,45, 37,38, 39,40, 45,46, 47,48, 23,24, 25,26, 27,28, 29,30, 31,32, 33,34, 51,52}
 
const std::vector< unsigned int > op::POSE_BODY_22_PAIRS_RENDER {POSE_BODY_22_PAIRS_RENDER_GPU}
 
const std::vector< unsigned int > op::POSE_BODY_22_PAIRS {1,2, 1,5, 2,3, 3,4, 5,6, 6,7, 1,8, 8,9, 9,10, 1,11, 11,12, 12,13, 1,0}
 
const std::vector< float > op::POSE_BODY_22_COLORS_RENDER {POSE_BODY_22_COLORS_RENDER_GPU}
 
const std::array< float,(int)
PoseModel::Size > 
op::POSE_CCN_DECREASE_FACTOR
 
const std::array< unsigned int,(int)
PoseModel::Size > 
op::POSE_MAX_PEAKS
 
const std::array< unsigned int,(int)
PoseModel::Size > 
op::POSE_NUMBER_BODY_PARTS
 
const std::array< std::vector
< unsigned int >,(int)
PoseModel::Size > 
op::POSE_BODY_PART_PAIRS
 
const std::array< std::vector
< unsigned int >,(int)
PoseModel::Size > 
op::POSE_BODY_PART_PAIRS_RENDER
 
const std::array< std::vector
< unsigned int >,(int)
PoseModel::Size > 
op::POSE_MAP_IDX
 
const std::array< std::vector
< float >,(int)
PoseModel::Size > 
op::POSE_COLORS
 
const std::array< std::string,(int)
PoseModel::Size > 
op::POSE_PROTOTXT
 
const std::array< std::string,(int)
PoseModel::Size > 
op::POSE_TRAINED_MODEL
 
const std::array< float,(int)
PoseModel::Size > 
op::POSE_DEFAULT_NMS_THRESHOLD
 
const std::array< unsigned int,(int)
PoseModel::Size > 
op::POSE_DEFAULT_CONNECT_INTER_MIN_ABOVE_THRESHOLD
 
const std::array< float,(int)
PoseModel::Size > 
op::POSE_DEFAULT_CONNECT_INTER_THRESHOLD
 
const std::array< unsigned int,(int)
PoseModel::Size > 
op::POSE_DEFAULT_CONNECT_MIN_SUBSET_CNT
 
const std::array< float,(int)
PoseModel::Size > 
op::POSE_DEFAULT_CONNECT_MIN_SUBSET_SCORE
 
const auto op::POSE_DEFAULT_ALPHA_KEYPOINT = 0.6f
 
const auto op::POSE_DEFAULT_ALPHA_HEAT_MAP = 0.7f
 

Macro Definition Documentation

#define POSE_BODY_18_COLORS_RENDER_GPU   POSE_COCO_COLORS_RENDER_GPU
#define POSE_BODY_18_PAIRS_RENDER_GPU   POSE_COCO_PAIRS_RENDER_GPU
#define POSE_BODY_19_COLORS_RENDER_GPU
Value:
255.f, 0.f, 85.f, \
255.f, 0.f, 0.f, \
255.f, 85.f, 0.f, \
255.f, 170.f, 0.f, \
255.f, 255.f, 0.f, \
170.f, 255.f, 0.f, \
85.f, 255.f, 0.f, \
0.f, 255.f, 0.f, \
255.f, 0.f, 0.f, \
0.f, 255.f, 85.f, \
0.f, 255.f, 170.f, \
0.f, 255.f, 255.f, \
0.f, 170.f, 255.f, \
0.f, 85.f, 255.f, \
0.f, 0.f, 255.f, \
255.f, 0.f, 170.f, \
170.f, 0.f, 255.f, \
255.f, 0.f, 255.f, \
85.f, 0.f, 255.f
#define POSE_BODY_19_PAIRS_RENDER_GPU   {1,8, 1,2, 1,5, 2,3, 3,4, 5,6, 6,7, 8,9, 9,10, 10,11, 8,12, 12,13, 13,14, 1,0, 0,15, 15,17, 0,16, 16,18}
#define POSE_BODY_22_COLORS_RENDER_GPU
Value:
255.f, 0.f, 0.f, \
255.f, 85.f, 0.f, \
255.f, 170.f, 0.f, \
255.f, 255.f, 0.f, \
170.f, 255.f, 0.f, \
85.f, 255.f, 0.f, \
0.f, 255.f, 0.f, \
0.f, 255.f, 85.f, \
0.f, 255.f, 170.f, \
0.f, 255.f, 255.f, \
0.f, 170.f, 255.f, \
0.f, 85.f, 255.f, \
0.f, 0.f, 255.f, \
85.f, 0.f, 255.f, \
170.f, 0.f, 255.f, \
255.f, 0.f, 255.f, \
255.f, 0.f, 170.f, \
255.f, 0.f, 85.f
#define POSE_BODY_22_PAIRS_RENDER_GPU   {1,2, 1,5, 2,3, 3,4, 5,6, 6,7, 1,8, 8,9, 9,10, 1,11, 11,12}
#define POSE_COCO_COLORS_RENDER_GPU
Value:
255.f, 0.f, 85.f, \
255.f, 0.f, 0.f, \
255.f, 85.f, 0.f, \
255.f, 170.f, 0.f, \
255.f, 255.f, 0.f, \
170.f, 255.f, 0.f, \
85.f, 255.f, 0.f, \
0.f, 255.f, 0.f, \
0.f, 255.f, 85.f, \
0.f, 255.f, 170.f, \
0.f, 255.f, 255.f, \
0.f, 170.f, 255.f, \
0.f, 85.f, 255.f, \
0.f, 0.f, 255.f, \
255.f, 0.f, 170.f, \
170.f, 0.f, 255.f, \
255.f, 0.f, 255.f, \
85.f, 0.f, 255.f
#define POSE_COCO_PAIRS_RENDER_GPU   {1,2, 1,5, 2,3, 3,4, 5,6, 6,7, 1,8, 8,9, 9,10, 1,11, 11,12, 12,13, 1,0, 0,14, 14,16, 0,15, 15,17}
#define POSE_MPI_COLORS_RENDER_GPU
Value:
255.f, 0.f, 85.f, \
255.f, 0.f, 0.f, \
255.f, 85.f, 0.f, \
255.f, 170.f, 0.f, \
255.f, 255.f, 0.f, \
170.f, 255.f, 0.f, \
85.f, 255.f, 0.f, \
43.f, 255.f, 0.f, \
0.f, 255.f, 0.f, \
0.f, 255.f, 85.f, \
0.f, 255.f, 170.f, \
0.f, 255.f, 255.f, \
0.f, 170.f, 255.f, \
0.f, 85.f, 255.f, \
0.f, 0.f, 255.f
#define POSE_MPI_PAIRS_RENDER_GPU   { 0,1, 1,2, 2,3, 3,4, 1,5, 5,6, 6,7, 1,14, 14,8, 8,9, 9,10, 14,11, 11,12, 12,13}