Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
huiyeruzhou
openpose
提交
b4a7a6c7
O
openpose
项目概览
huiyeruzhou
/
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 搜索 >>
提交
b4a7a6c7
编写于
12月 31, 2017
作者:
G
gineshidalgo99
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Changed body_59 colors & allowed COCO saving
上级
7e640093
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
43 addition
and
20 deletion
+43
-20
include/openpose/pose/poseParametersRender.hpp
include/openpose/pose/poseParametersRender.hpp
+42
-19
src/openpose/filestream/cocoJsonSaver.cpp
src/openpose/filestream/cocoJsonSaver.cpp
+1
-1
未找到文件。
include/openpose/pose/poseParametersRender.hpp
浏览文件 @
b4a7a6c7
...
...
@@ -117,6 +117,7 @@ namespace op
7,19, 19,20, 20,21, 21,22, 7,23, 23,24, 24,25, 25,26, 7,27, 27,28, 28,29, 29,30, 7,31, 31,32, 32,33, 33,34, 7,35, 35,36, 36,37, 37,38, \
4,39, 39,40, 40,41, 41,42, 4,43, 43,44, 44,45, 45,46, 4,47, 47,48, 48,49, 49,50, 4,51, 51,52, 52,53, 53,54, 4,55, 55,56, 56,57, 57,58 \
}
// Body + left hand + right hand
#define POSE_BODY_59_COLORS_RENDER_GPU \
255.f, 0.f, 85.f, \
255.f, 0.f, 0.f, \
...
...
@@ -138,25 +139,47 @@ namespace op
255.f, 0.f, 255.f, \
85.f, 0.f, 255.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, \
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
100.f, 0.f, 0.f, \
150.f, 0.f, 0.f, \
200.f, 0.f, 0.f, \
255.f, 0.f, 0.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, \
\
100.f, 0.f, 0.f, \
150.f, 0.f, 0.f, \
200.f, 0.f, 0.f, \
255.f, 0.f, 0.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
// Rendering functions
OP_API
const
std
::
vector
<
float
>&
getPoseColors
(
const
PoseModel
poseModel
);
...
...
src/openpose/filestream/cocoJsonSaver.cpp
浏览文件 @
b4a7a6c7
...
...
@@ -69,7 +69,7 @@ namespace op
std
::
vector
<
int
>
indexesInCocoOrder
;
if
(
numberBodyParts
==
18
)
indexesInCocoOrder
=
std
::
vector
<
int
>
{
0
,
15
,
14
,
17
,
16
,
5
,
2
,
6
,
3
,
7
,
4
,
11
,
8
,
12
,
9
,
13
,
10
};
else
if
(
numberBodyParts
==
19
)
else
if
(
numberBodyParts
==
19
||
numberBodyParts
==
59
)
indexesInCocoOrder
=
std
::
vector
<
int
>
{
0
,
16
,
15
,
18
,
17
,
5
,
2
,
6
,
3
,
7
,
4
,
12
,
9
,
13
,
10
,
14
,
11
};
else
if
(
numberBodyParts
==
23
)
indexesInCocoOrder
=
std
::
vector
<
int
>
{
18
,
21
,
19
,
22
,
20
,
4
,
1
,
5
,
2
,
6
,
3
,
13
,
8
,
14
,
9
,
15
,
10
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录