提交 4f81fe5b 编写于 作者: G Gines

Fixed #233 + typos + pose tutorial 2

上级 8c86d146
...@@ -132,7 +132,7 @@ int openPoseTutorialThread1() ...@@ -132,7 +132,7 @@ int openPoseTutorialThread1()
// ------------------------- CLOSING ------------------------- // ------------------------- CLOSING -------------------------
// Logging information message // Logging information message
op::log("Example 3 successfully finished.", op::Priority::High); op::log("Example 1 successfully finished.", op::Priority::High);
// Return successful message // Return successful message
return 0; return 0;
} }
......
...@@ -174,7 +174,7 @@ int openPoseTutorialThread2() ...@@ -174,7 +174,7 @@ int openPoseTutorialThread2()
// ------------------------- CLOSING ------------------------- // ------------------------- CLOSING -------------------------
// Logging information message // Logging information message
op::log("Example 3 successfully finished.", op::Priority::High); op::log("Example 2 successfully finished.", op::Priority::High);
// Return successful message // Return successful message
return 0; return 0;
} }
......
...@@ -229,7 +229,7 @@ int openPoseTutorialThread4() ...@@ -229,7 +229,7 @@ int openPoseTutorialThread4()
// ------------------------- CLOSING ------------------------- // ------------------------- CLOSING -------------------------
// Logging information message // Logging information message
op::log("Example 3 successfully finished.", op::Priority::High); op::log("Example 4 successfully finished.", op::Priority::High);
// Return successful message // Return successful message
return 0; return 0;
} }
......
...@@ -61,7 +61,7 @@ namespace op ...@@ -61,7 +61,7 @@ namespace op
85.f, 0.f, 255.f 85.f, 0.f, 255.f
const std::vector<float> POSE_COCO_COLORS_RENDER{POSE_COCO_COLORS_RENDER_GPU}; const std::vector<float> POSE_COCO_COLORS_RENDER{POSE_COCO_COLORS_RENDER_GPU};
// MPI // MPI
const std::map<unsigned int, std::string> POSE_MPI_BODY_PARTS{ const std::map<unsigned int, std::string> POSE_MPI_BODY_PARTS {
{0, "Head"}, {0, "Head"},
{1, "Neck"}, {1, "Neck"},
{2, "RShoulder"}, {2, "RShoulder"},
...@@ -102,7 +102,27 @@ namespace op ...@@ -102,7 +102,27 @@ namespace op
0.f, 0.f, 255.f 0.f, 0.f, 255.f
const std::vector<float> POSE_MPI_COLORS_RENDER{POSE_MPI_COLORS_RENDER_GPU}; const std::vector<float> POSE_MPI_COLORS_RENDER{POSE_MPI_COLORS_RENDER_GPU};
// BODY_18 // BODY_18
const std::map<unsigned int, std::string> POSE_BODY_18_BODY_PARTS {POSE_COCO_BODY_PARTS}; const std::map<unsigned int, std::string> POSE_BODY_18_BODY_PARTS { // Windows map copy error if `= POSE_COCO_BODY_PARTS`
{ 0, "Nose" },
{ 1, "Neck" },
{ 2, "RShoulder" },
{ 3, "RElbow" },
{ 4, "RWrist" },
{ 5, "LShoulder" },
{ 6, "LElbow" },
{ 7, "LWrist" },
{ 8, "RHip" },
{ 9, "RKnee" },
{ 10, "RAnkle" },
{ 11, "LHip" },
{ 12, "LKnee" },
{ 13, "LAnkle" },
{ 14, "REye" },
{ 15, "LEye" },
{ 16, "REar" },
{ 17, "LEar" },
{ 18, "Background" }
};
const unsigned int POSE_BODY_18_NUMBER_PARTS {POSE_COCO_NUMBER_PARTS}; const unsigned int POSE_BODY_18_NUMBER_PARTS {POSE_COCO_NUMBER_PARTS};
const std::vector<unsigned int> POSE_BODY_18_MAP_IDX {POSE_COCO_MAP_IDX}; const std::vector<unsigned int> POSE_BODY_18_MAP_IDX {POSE_COCO_MAP_IDX};
#define POSE_BODY_18_PAIRS_RENDER_GPU POSE_COCO_PAIRS_RENDER_GPU #define POSE_BODY_18_PAIRS_RENDER_GPU POSE_COCO_PAIRS_RENDER_GPU
......
...@@ -17,7 +17,7 @@ namespace op ...@@ -17,7 +17,7 @@ namespace op
const std::shared_ptr<PoseExtractor>& poseExtractor, const float renderThreshold, const std::shared_ptr<PoseExtractor>& poseExtractor, const float renderThreshold,
const bool blendOriginalFrame = true, const float alphaKeypoint = POSE_DEFAULT_ALPHA_KEYPOINT, const bool blendOriginalFrame = true, const float alphaKeypoint = POSE_DEFAULT_ALPHA_KEYPOINT,
const float alphaHeatMap = POSE_DEFAULT_ALPHA_HEAT_MAP, const unsigned int elementToRender = 0u, const float alphaHeatMap = POSE_DEFAULT_ALPHA_HEAT_MAP, const unsigned int elementToRender = 0u,
const RenderMode renderMode = RenderMode::Cpu); const RenderMode renderMode = RenderMode::Gpu);
~PoseRenderer(); ~PoseRenderer();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册