Skip to content

Commit

Permalink
Fixed #233 + typos + pose tutorial 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Gines committed Sep 3, 2017
1 parent 8c86d14 commit 4f81fe5
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/tutorial_thread/1_openpose_read_and_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ int openPoseTutorialThread1()

// ------------------------- CLOSING -------------------------
// 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 0;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial_thread/2_user_processing_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ int openPoseTutorialThread2()

// ------------------------- CLOSING -------------------------
// 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 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ int openPoseTutorialThread4()

// ------------------------- CLOSING -------------------------
// 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 0;
}
Expand Down
24 changes: 22 additions & 2 deletions include/openpose/pose/poseParameters.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace op
85.f, 0.f, 255.f
const std::vector<float> POSE_COCO_COLORS_RENDER{POSE_COCO_COLORS_RENDER_GPU};
// 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"},
{1, "Neck"},
{2, "RShoulder"},
Expand Down Expand Up @@ -102,7 +102,27 @@ namespace op
0.f, 0.f, 255.f
const std::vector<float> POSE_MPI_COLORS_RENDER{POSE_MPI_COLORS_RENDER_GPU};
// 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 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
Expand Down
2 changes: 1 addition & 1 deletion include/openpose/pose/poseRenderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace op
const std::shared_ptr<PoseExtractor>& poseExtractor, const float renderThreshold,
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 RenderMode renderMode = RenderMode::Cpu);
const RenderMode renderMode = RenderMode::Gpu);

~PoseRenderer();

Expand Down

0 comments on commit 4f81fe5

Please sign in to comment.