Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sq975
openpose
提交
32c2a6f5
O
openpose
项目概览
sq975
/
openpose
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openpose
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
32c2a6f5
编写于
6月 29, 2017
作者:
G
gineshidalgo99
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improved rendering, visually prettier
上级
066d4d53
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
36 addition
and
34 deletion
+36
-34
include/openpose/hand/handParameters.hpp
include/openpose/hand/handParameters.hpp
+20
-23
include/openpose/pose/poseParameters.hpp
include/openpose/pose/poseParameters.hpp
+11
-7
include/openpose/utilities/render.hu
include/openpose/utilities/render.hu
+1
-1
src/openpose/pose/bodyPartConnectorBase.cpp
src/openpose/pose/bodyPartConnectorBase.cpp
+2
-2
src/openpose/utilities/keypoint.cpp
src/openpose/utilities/keypoint.cpp
+2
-1
未找到文件。
include/openpose/hand/handParameters.hpp
浏览文件 @
32c2a6f5
...
...
@@ -12,30 +12,27 @@ namespace op
#define HAND_PAIRS_RENDER_GPU {0,1, 1,2, 2,3, 3,4, 0,5, 5,6, 6,7, 7,8, 0,9, 9,10, 10,11, 11,12, 0,13, 13,14, 14,15, 15,16, 0,17, 17,18, 18,19, 19,20}
const
std
::
vector
<
unsigned
int
>
HAND_PAIRS_RENDER
{
HAND_PAIRS_RENDER_GPU
};
#define HAND_COLORS_RENDER \
179.f, 0.f, 0.f, \
204.f, 0.f, 0.f, \
230.f, 0.f, 0.f, \
100.f, 100.f, 100.f, \
100.f, 0.f, 0.f, \
150.f, 0.f, 0.f, \
200.f, 0.f, 0.f, \
255.f, 0.f, 0.f, \
143.f, 179.f, 0.f, \
163.f, 204.f, 0.f, \
184.f, 230.f, 0.f, \
204.f, 255.f, 0.f, \
0.f, 179.f, 71.f, \
0.f, 204.f, 82.f, \
0.f, 230.f, 92.f, \
0.f, 255.f, 102.f, \
0.f, 71.f, 179.f, \
0.f, 82.f, 204.f, \
0.f, 92.f, 230.f, \
0.f, 102.f, 255.f, \
143.f, 0.f, 179.f, \
163.f, 0.f, 204.f, \
184.f, 0.f, 230.f, \
204.f, 0.f, 255.f, \
179.f, 179.f, 179.f, \
179.f, 179.f, 179.f, \
179.f, 179.f, 179.f, \
179.f, 179.f, 179.f
100.f, 100.f, 0.f, \
150.f, 150.f, 0.f, \
200.f, 200.f, 0.f, \
255.f, 255.f, 0.f, \
0.f, 100.f, 50.f, \
0.f, 150.f, 75.f, \
0.f, 200.f, 100.f, \
0.f, 255.f, 125.f, \
0.f, 50.f, 100.f, \
0.f, 75.f, 150.f, \
0.f, 100.f, 200.f, \
0.f, 125.f, 255.f, \
100.f, 0.f, 100.f, \
150.f, 0.f, 150.f, \
200.f, 0.f, 200.f, \
255.f, 0.f, 255.f
// Constant parameters
const
auto
HAND_CCN_DECREASE_FACTOR
=
8.
f
;
...
...
include/openpose/pose/poseParameters.hpp
浏览文件 @
32c2a6f5
...
...
@@ -42,6 +42,7 @@ namespace op
const
std
::
vector
<
unsigned
int
>
POSE_COCO_PAIRS_RENDER
{
POSE_COCO_PAIRS_RENDER_GPU
};
const
std
::
vector
<
unsigned
int
>
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
};
#define POSE_COCO_COLORS_RENDER \
255.f, 0.f, 85.f, \
255.f, 0.f, 0.f, \
255.f, 85.f, 0.f, \
255.f, 170.f, 0.f, \
...
...
@@ -55,11 +56,10 @@ namespace op
0.f, 170.f, 255.f, \
0.f, 85.f, 255.f, \
0.f, 0.f, 255.f, \
85.f, 0.f, 255
.f, \
255.f, 0.f, 170
.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
85.f, 0.f, 255.f
// MPI
const
std
::
map
<
unsigned
int
,
std
::
string
>
POSE_MPI_BODY_PARTS
{
{
0
,
"Head"
},
...
...
@@ -120,13 +120,17 @@ namespace op
{
15
,
"LEye"
},
{
16
,
"REar"
},
{
17
,
"LEar"
},
{
18
,
"RTest1"
},
{
19
,
"LTest1"
},
{
20
,
"RTest2"
},
{
21
,
"LTest2"
},
{
22
,
"Background"
},
};
const
unsigned
int
POSE_BODY_22_NUMBER_PARTS
=
2u
;
// Equivalent to size of std::map POSE_BODY_22_BODY_PARTS - 1 (removing background)
const
std
::
vector
<
unsigned
int
>
POSE_BODY_22_MAP_IDX
{
35
,
36
,
43
,
45
};
#define POSE_BODY_22_PAIRS_RENDER_GPU {1,2, 1,5}
const
unsigned
int
POSE_BODY_22_NUMBER_PARTS
=
2
2
u
;
// Equivalent to size of std::map POSE_BODY_22_BODY_PARTS - 1 (removing background)
const
std
::
vector
<
unsigned
int
>
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
};
#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
}
const
std
::
vector
<
unsigned
int
>
POSE_BODY_22_PAIRS_RENDER
{
POSE_BODY_22_PAIRS_RENDER_GPU
};
const
std
::
vector
<
unsigned
int
>
POSE_BODY_22_PAIRS
{
1
,
2
};
const
std
::
vector
<
unsigned
int
>
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
};
#define POSE_BODY_22_COLORS_RENDER \
255.f, 0.f, 0.f, \
255.f, 85.f, 0.f, \
...
...
include/openpose/utilities/render.hu
浏览文件 @
32c2a6f5
...
...
@@ -103,7 +103,7 @@ namespace op
const auto minV = 0.f;
const auto maxV = 1.f;
if (minV <= judge && judge <= maxV)
addColorWeighted(r, g, b, &rgbColorsPtr[(part
Pair%numberColors)*3], alphaColorToAdd);
addColorWeighted(r, g, b, &rgbColorsPtr[(part
B%numberColors)*3], alphaColorToAdd); // Before used partPair vs partB
}
}
...
...
src/openpose/pose/bodyPartConnectorBase.cpp
浏览文件 @
32c2a6f5
...
...
@@ -41,7 +41,7 @@ namespace op
// Change w.r.t. other
if
(
nB
!=
0
)
{
if
(
poseModel
==
PoseModel
::
COCO_18
)
if
(
poseModel
==
PoseModel
::
COCO_18
||
poseModel
==
PoseModel
::
BODY_22
)
{
for
(
auto
i
=
1
;
i
<=
nB
;
i
++
)
{
...
...
@@ -82,7 +82,7 @@ namespace op
}
else
if
(
nA
!=
0
)
{
if
(
poseModel
==
PoseModel
::
COCO_18
)
if
(
poseModel
==
PoseModel
::
COCO_18
||
poseModel
==
PoseModel
::
BODY_22
)
{
for
(
auto
i
=
1
;
i
<=
nA
;
i
++
)
{
...
...
src/openpose/utilities/keypoint.cpp
浏览文件 @
32c2a6f5
...
...
@@ -149,7 +149,8 @@ namespace op
const
auto
index2
=
(
person
*
numberKeypoints
+
pairs
[
pair
+
1
])
*
keypoints
.
getSize
(
2
);
if
(
keypoints
[
index1
+
2
]
>
threshold
&&
keypoints
[
index2
+
2
]
>
threshold
)
{
const
auto
colorIndex
=
pair
/
2
*
3
;
// const auto colorIndex = pair/2*3;
const
auto
colorIndex
=
pairs
[
pair
+
1
]
*
3
;
const
cv
::
Scalar
color
{
colors
[
colorIndex
%
numberColors
],
colors
[(
colorIndex
+
1
)
%
numberColors
],
colors
[(
colorIndex
+
2
)
%
numberColors
]};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录