Skip to content

Commit 4f81fe5

Browse files
author
Gines
committed
Fixed #233 + typos + pose tutorial 2
1 parent 8c86d14 commit 4f81fe5

File tree

5 files changed

+26
-6
lines changed

5 files changed

+26
-6
lines changed

examples/tutorial_thread/1_openpose_read_and_display.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ int openPoseTutorialThread1()
132132

133133
// ------------------------- CLOSING -------------------------
134134
// Logging information message
135-
op::log("Example 3 successfully finished.", op::Priority::High);
135+
op::log("Example 1 successfully finished.", op::Priority::High);
136136
// Return successful message
137137
return 0;
138138
}

examples/tutorial_thread/2_user_processing_function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ int openPoseTutorialThread2()
174174

175175
// ------------------------- CLOSING -------------------------
176176
// Logging information message
177-
op::log("Example 3 successfully finished.", op::Priority::High);
177+
op::log("Example 2 successfully finished.", op::Priority::High);
178178
// Return successful message
179179
return 0;
180180
}

examples/tutorial_thread/4_user_input_processing_output_and_datum.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ int openPoseTutorialThread4()
229229

230230
// ------------------------- CLOSING -------------------------
231231
// Logging information message
232-
op::log("Example 3 successfully finished.", op::Priority::High);
232+
op::log("Example 4 successfully finished.", op::Priority::High);
233233
// Return successful message
234234
return 0;
235235
}

include/openpose/pose/poseParameters.hpp

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ namespace op
6161
85.f, 0.f, 255.f
6262
const std::vector<float> POSE_COCO_COLORS_RENDER{POSE_COCO_COLORS_RENDER_GPU};
6363
// MPI
64-
const std::map<unsigned int, std::string> POSE_MPI_BODY_PARTS{
64+
const std::map<unsigned int, std::string> POSE_MPI_BODY_PARTS {
6565
{0, "Head"},
6666
{1, "Neck"},
6767
{2, "RShoulder"},
@@ -102,7 +102,27 @@ namespace op
102102
0.f, 0.f, 255.f
103103
const std::vector<float> POSE_MPI_COLORS_RENDER{POSE_MPI_COLORS_RENDER_GPU};
104104
// BODY_18
105-
const std::map<unsigned int, std::string> POSE_BODY_18_BODY_PARTS {POSE_COCO_BODY_PARTS};
105+
const std::map<unsigned int, std::string> POSE_BODY_18_BODY_PARTS { // Windows map copy error if `= POSE_COCO_BODY_PARTS`
106+
{ 0, "Nose" },
107+
{ 1, "Neck" },
108+
{ 2, "RShoulder" },
109+
{ 3, "RElbow" },
110+
{ 4, "RWrist" },
111+
{ 5, "LShoulder" },
112+
{ 6, "LElbow" },
113+
{ 7, "LWrist" },
114+
{ 8, "RHip" },
115+
{ 9, "RKnee" },
116+
{ 10, "RAnkle" },
117+
{ 11, "LHip" },
118+
{ 12, "LKnee" },
119+
{ 13, "LAnkle" },
120+
{ 14, "REye" },
121+
{ 15, "LEye" },
122+
{ 16, "REar" },
123+
{ 17, "LEar" },
124+
{ 18, "Background" }
125+
};
106126
const unsigned int POSE_BODY_18_NUMBER_PARTS {POSE_COCO_NUMBER_PARTS};
107127
const std::vector<unsigned int> POSE_BODY_18_MAP_IDX {POSE_COCO_MAP_IDX};
108128
#define POSE_BODY_18_PAIRS_RENDER_GPU POSE_COCO_PAIRS_RENDER_GPU

include/openpose/pose/poseRenderer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace op
1717
const std::shared_ptr<PoseExtractor>& poseExtractor, const float renderThreshold,
1818
const bool blendOriginalFrame = true, const float alphaKeypoint = POSE_DEFAULT_ALPHA_KEYPOINT,
1919
const float alphaHeatMap = POSE_DEFAULT_ALPHA_HEAT_MAP, const unsigned int elementToRender = 0u,
20-
const RenderMode renderMode = RenderMode::Cpu);
20+
const RenderMode renderMode = RenderMode::Gpu);
2121

2222
~PoseRenderer();
2323

0 commit comments

Comments
 (0)