Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sq975
openpose
提交
cc48ee3e
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,发现更多精彩内容 >>
提交
cc48ee3e
编写于
3月 07, 2018
作者:
G
gineshidalgo99
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
CPU rendering if video/image multi-camera
上级
11c9aeab
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
48 addition
and
19 deletion
+48
-19
README.md
README.md
+8
-2
doc/released_features.md
doc/released_features.md
+3
-2
examples/openpose/openpose.cpp
examples/openpose/openpose.cpp
+5
-3
examples/tutorial_add_module/1_custom_post_processing.cpp
examples/tutorial_add_module/1_custom_post_processing.cpp
+6
-3
examples/tutorial_wrapper/1_user_asynchronous_output.cpp
examples/tutorial_wrapper/1_user_asynchronous_output.cpp
+6
-3
examples/tutorial_wrapper/2_user_synchronous.cpp
examples/tutorial_wrapper/2_user_synchronous.cpp
+10
-3
examples/tutorial_wrapper/3_user_asynchronous.cpp
examples/tutorial_wrapper/3_user_asynchronous.cpp
+10
-3
未找到文件。
README.md
浏览文件 @
cc48ee3e
...
...
@@ -28,8 +28,9 @@
## Latest Features
-
Sep 2017:
**CMake**
installer and
**IP camera**
support!
-
Jul 2017:
[
**Windows portable demo**
](
doc/installation.md#installation---demo
)
!
-
Mar 2017: Improved
[
**3-D keypoint reconstruction module**
](
doc/3d_reconstruction_demo.md
)
(
from
multiple camera views)!
-
Sep 2017:
[
**CMake**
](
doc/installation.md
)
installer and
**IP camera**
support!
-
Jul 2017:
[
**Windows portable binaries and demo**
](
https://github.com/CMU-Perceptual-Computing-Lab/openpose/releases
)
!
-
Jul 2017:
**Hands**
released!
-
Jun 2017:
**Face**
released!
For further details, check
[
all released features
](
doc/released_features.md
)
and
[
release notes
](
doc/release_notes.md
)
.
...
...
@@ -51,6 +52,11 @@ For further details, check [all released features](doc/released_features.md) and
## Results
### 3-D Reconstruction Module
<p
align=
"center"
>
<img
src=
"media/openpose3d.png"
,
width=
"360"
>
</p>
### Body Estimation
<p
align=
"center"
>
<img
src=
"doc/media/dance.gif"
,
width=
"360"
>
...
...
doc/released_features.md
浏览文件 @
cc48ee3e
OpenPose Library - Latest Released Features
====================================
-
Sep 2017:
**CMake**
installer and
**IP camera**
support!
-
Jul 2017:
[
**Windows portable demo**
](
doc/installation.md#installation---demo
)
!
-
Mar 2017: Improved
[
**3-D keypoint reconstruction module**
](
doc/3d_reconstruction_demo.md
)
(
from
multiple camera views)!
-
Sep 2017:
[
**CMake**
](
doc/installation.md
)
installer and
**IP camera**
support!
-
Jul 2017:
[
**Windows portable binaries and demo**
](
https://github.com/CMU-Perceptual-Computing-Lab/openpose/releases
)
!
-
Jul 2017:
**Hands**
released!
-
Jun 2017:
**Face**
released!
-
May 2017:
**Windows**
version!
...
...
examples/openpose/openpose.cpp
浏览文件 @
cc48ee3e
...
...
@@ -257,6 +257,8 @@ int openPoseDemo()
const
auto
heatMapTypes
=
op
::
flagsToHeatMaps
(
FLAGS_heatmaps_add_parts
,
FLAGS_heatmaps_add_bkg
,
FLAGS_heatmaps_add_PAFs
);
const
auto
heatMapScale
=
op
::
flagsToHeatMapScaleMode
(
FLAGS_heatmaps_scale
);
// >1 camera view?
const
auto
multipleView
=
(
FLAGS_3d
||
FLAGS_3d_views
>
1
||
FLAGS_flir_camera
);
// Enabling Google Logging
const
bool
enableGoogleLogging
=
true
;
// Logging
...
...
@@ -269,7 +271,7 @@ int openPoseDemo()
const
op
::
WrapperStructPose
wrapperStructPose
{
!
FLAGS_body_disable
,
netInputSize
,
outputSize
,
keypointScale
,
FLAGS_num_gpu
,
FLAGS_num_gpu_start
,
FLAGS_scale_number
,
(
float
)
FLAGS_scale_gap
,
op
::
flagsToRenderMode
(
FLAGS_render_pose
,
FLAGS_3d
),
op
::
flagsToRenderMode
(
FLAGS_render_pose
,
multipleView
),
poseModel
,
!
FLAGS_disable_blending
,
(
float
)
FLAGS_alpha_pose
,
(
float
)
FLAGS_alpha_heatmap
,
FLAGS_part_to_show
,
FLAGS_model_folder
,
heatMapTypes
,
heatMapScale
,
FLAGS_part_candidates
,
...
...
@@ -277,13 +279,13 @@ int openPoseDemo()
enableGoogleLogging
,
FLAGS_3d
,
FLAGS_identification
};
// Face configuration (use op::WrapperStructFace{} to disable it)
const
op
::
WrapperStructFace
wrapperStructFace
{
FLAGS_face
,
faceNetInputSize
,
op
::
flagsToRenderMode
(
FLAGS_face_render
,
FLAGS_3d
,
FLAGS_render_pose
),
op
::
flagsToRenderMode
(
FLAGS_face_render
,
multipleView
,
FLAGS_render_pose
),
(
float
)
FLAGS_face_alpha_pose
,
(
float
)
FLAGS_face_alpha_heatmap
,
(
float
)
FLAGS_face_render_threshold
};
// Hand configuration (use op::WrapperStructHand{} to disable it)
const
op
::
WrapperStructHand
wrapperStructHand
{
FLAGS_hand
,
handNetInputSize
,
FLAGS_hand_scale_number
,
(
float
)
FLAGS_hand_scale_range
,
FLAGS_hand_tracking
,
op
::
flagsToRenderMode
(
FLAGS_hand_render
,
FLAGS_3d
,
FLAGS_render_pose
),
op
::
flagsToRenderMode
(
FLAGS_hand_render
,
multipleView
,
FLAGS_render_pose
),
(
float
)
FLAGS_hand_alpha_pose
,
(
float
)
FLAGS_hand_alpha_heatmap
,
(
float
)
FLAGS_hand_render_threshold
};
// Producer (use default to disable any input)
...
...
examples/tutorial_add_module/1_custom_post_processing.cpp
浏览文件 @
cc48ee3e
...
...
@@ -259,6 +259,8 @@ int openPoseTutorialWrapper4()
const
auto
heatMapTypes
=
op
::
flagsToHeatMaps
(
FLAGS_heatmaps_add_parts
,
FLAGS_heatmaps_add_bkg
,
FLAGS_heatmaps_add_PAFs
);
const
auto
heatMapScale
=
op
::
flagsToHeatMapScaleMode
(
FLAGS_heatmaps_scale
);
// >1 camera view?
const
auto
multipleView
=
(
FLAGS_3d
||
FLAGS_3d_views
>
1
||
FLAGS_flir_camera
);
// Enabling Google Logging
const
bool
enableGoogleLogging
=
true
;
// Logging
...
...
@@ -270,7 +272,8 @@ int openPoseTutorialWrapper4()
// Pose configuration (use WrapperStructPose{} for default and recommended configuration)
const
op
::
WrapperStructPose
wrapperStructPose
{
!
FLAGS_body_disable
,
netInputSize
,
outputSize
,
keypointScale
,
FLAGS_num_gpu
,
FLAGS_num_gpu_start
,
FLAGS_scale_number
,
(
float
)
FLAGS_scale_gap
,
op
::
flagsToRenderMode
(
FLAGS_render_pose
,
FLAGS_3d
),
(
float
)
FLAGS_scale_gap
,
op
::
flagsToRenderMode
(
FLAGS_render_pose
,
multipleView
),
poseModel
,
!
FLAGS_disable_blending
,
(
float
)
FLAGS_alpha_pose
,
(
float
)
FLAGS_alpha_heatmap
,
FLAGS_part_to_show
,
FLAGS_model_folder
,
heatMapTypes
,
heatMapScale
,
FLAGS_part_candidates
,
...
...
@@ -278,13 +281,13 @@ int openPoseTutorialWrapper4()
enableGoogleLogging
,
FLAGS_3d
};
// Face configuration (use op::WrapperStructFace{} to disable it)
const
op
::
WrapperStructFace
wrapperStructFace
{
FLAGS_face
,
faceNetInputSize
,
op
::
flagsToRenderMode
(
FLAGS_face_render
,
FLAGS_3d
,
FLAGS_render_pose
),
op
::
flagsToRenderMode
(
FLAGS_face_render
,
multipleView
,
FLAGS_render_pose
),
(
float
)
FLAGS_face_alpha_pose
,
(
float
)
FLAGS_face_alpha_heatmap
,
(
float
)
FLAGS_face_render_threshold
};
// Hand configuration (use op::WrapperStructHand{} to disable it)
const
op
::
WrapperStructHand
wrapperStructHand
{
FLAGS_hand
,
handNetInputSize
,
FLAGS_hand_scale_number
,
(
float
)
FLAGS_hand_scale_range
,
FLAGS_hand_tracking
,
op
::
flagsToRenderMode
(
FLAGS_hand_render
,
FLAGS_3d
,
FLAGS_render_pose
),
op
::
flagsToRenderMode
(
FLAGS_hand_render
,
multipleView
,
FLAGS_render_pose
),
(
float
)
FLAGS_hand_alpha_pose
,
(
float
)
FLAGS_hand_alpha_heatmap
,
(
float
)
FLAGS_hand_render_threshold
};
// Producer (use default to disable any input)
...
...
examples/tutorial_wrapper/1_user_asynchronous_output.cpp
浏览文件 @
cc48ee3e
...
...
@@ -334,6 +334,8 @@ int openPoseTutorialWrapper1()
const
auto
heatMapTypes
=
op
::
flagsToHeatMaps
(
FLAGS_heatmaps_add_parts
,
FLAGS_heatmaps_add_bkg
,
FLAGS_heatmaps_add_PAFs
);
const
auto
heatMapScale
=
op
::
flagsToHeatMapScaleMode
(
FLAGS_heatmaps_scale
);
// >1 camera view?
const
auto
multipleView
=
(
FLAGS_3d
||
FLAGS_3d_views
>
1
||
FLAGS_flir_camera
);
// Enabling Google Logging
const
bool
enableGoogleLogging
=
true
;
// Logging
...
...
@@ -345,7 +347,8 @@ int openPoseTutorialWrapper1()
// Pose configuration (use WrapperStructPose{} for default and recommended configuration)
const
op
::
WrapperStructPose
wrapperStructPose
{
!
FLAGS_body_disable
,
netInputSize
,
outputSize
,
keypointScale
,
FLAGS_num_gpu
,
FLAGS_num_gpu_start
,
FLAGS_scale_number
,
(
float
)
FLAGS_scale_gap
,
op
::
flagsToRenderMode
(
FLAGS_render_pose
,
FLAGS_3d
),
(
float
)
FLAGS_scale_gap
,
op
::
flagsToRenderMode
(
FLAGS_render_pose
,
multipleView
),
poseModel
,
!
FLAGS_disable_blending
,
(
float
)
FLAGS_alpha_pose
,
(
float
)
FLAGS_alpha_heatmap
,
FLAGS_part_to_show
,
FLAGS_model_folder
,
heatMapTypes
,
heatMapScale
,
FLAGS_part_candidates
,
...
...
@@ -353,13 +356,13 @@ int openPoseTutorialWrapper1()
enableGoogleLogging
,
FLAGS_3d
};
// Face configuration (use op::WrapperStructFace{} to disable it)
const
op
::
WrapperStructFace
wrapperStructFace
{
FLAGS_face
,
faceNetInputSize
,
op
::
flagsToRenderMode
(
FLAGS_face_render
,
FLAGS_3d
,
FLAGS_render_pose
),
op
::
flagsToRenderMode
(
FLAGS_face_render
,
multipleView
,
FLAGS_render_pose
),
(
float
)
FLAGS_face_alpha_pose
,
(
float
)
FLAGS_face_alpha_heatmap
,
(
float
)
FLAGS_face_render_threshold
};
// Hand configuration (use op::WrapperStructHand{} to disable it)
const
op
::
WrapperStructHand
wrapperStructHand
{
FLAGS_hand
,
handNetInputSize
,
FLAGS_hand_scale_number
,
(
float
)
FLAGS_hand_scale_range
,
FLAGS_hand_tracking
,
op
::
flagsToRenderMode
(
FLAGS_hand_render
,
FLAGS_3d
,
FLAGS_render_pose
),
op
::
flagsToRenderMode
(
FLAGS_hand_render
,
multipleView
,
FLAGS_render_pose
),
(
float
)
FLAGS_hand_alpha_pose
,
(
float
)
FLAGS_hand_alpha_heatmap
,
(
float
)
FLAGS_hand_render_threshold
};
// Producer (use default to disable any input)
...
...
examples/tutorial_wrapper/2_user_synchronous.cpp
浏览文件 @
cc48ee3e
...
...
@@ -125,6 +125,10 @@ DEFINE_bool(3d, false, "Running OpenPose 3-D re
" 2) Performing 3-D reconstruction from the multiple views. 3) Displaying 3-D reconstruction"
" results. Note that it will only display 1 person. If multiple people is present, it will"
" fail."
);
DEFINE_int32
(
3
d_views
,
1
,
"Complementary option to `--image_dir` or `--video`. OpenPose will read as many images per"
" iteration, allowing tasks such as stereo camera processing (`--3d`). Note that"
" `--camera_parameters_folder` must be set. OpenPose must find as many `xml` files in the"
" parameter folder as this number indicates."
);
// OpenPose Rendering
DEFINE_int32
(
part_to_show
,
0
,
"Prediction channel to visualize (default: 0). 0 for all the body parts, 1-18 for each body"
" part heat map, 19 for the background heat map, 20 for all the body part heat maps"
...
...
@@ -404,6 +408,8 @@ int openPoseTutorialWrapper2()
const
auto
heatMapTypes
=
op
::
flagsToHeatMaps
(
FLAGS_heatmaps_add_parts
,
FLAGS_heatmaps_add_bkg
,
FLAGS_heatmaps_add_PAFs
);
const
auto
heatMapScale
=
op
::
flagsToHeatMapScaleMode
(
FLAGS_heatmaps_scale
);
// >1 camera view?
const
auto
multipleView
=
(
FLAGS_3d
||
FLAGS_3d_views
>
1
);
// Enabling Google Logging
const
bool
enableGoogleLogging
=
true
;
// Logging
...
...
@@ -431,7 +437,8 @@ int openPoseTutorialWrapper2()
op
::
log
(
"Configuring OpenPose wrapper."
,
op
::
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
const
op
::
WrapperStructPose
wrapperStructPose
{
!
FLAGS_body_disable
,
netInputSize
,
outputSize
,
keypointScale
,
FLAGS_num_gpu
,
FLAGS_num_gpu_start
,
FLAGS_scale_number
,
(
float
)
FLAGS_scale_gap
,
op
::
flagsToRenderMode
(
FLAGS_render_pose
,
FLAGS_3d
),
(
float
)
FLAGS_scale_gap
,
op
::
flagsToRenderMode
(
FLAGS_render_pose
,
multipleView
),
poseModel
,
!
FLAGS_disable_blending
,
(
float
)
FLAGS_alpha_pose
,
(
float
)
FLAGS_alpha_heatmap
,
FLAGS_part_to_show
,
FLAGS_model_folder
,
heatMapTypes
,
heatMapScale
,
FLAGS_part_candidates
,
...
...
@@ -439,13 +446,13 @@ int openPoseTutorialWrapper2()
enableGoogleLogging
,
FLAGS_3d
};
// Face configuration (use op::WrapperStructFace{} to disable it)
const
op
::
WrapperStructFace
wrapperStructFace
{
FLAGS_face
,
faceNetInputSize
,
op
::
flagsToRenderMode
(
FLAGS_face_render
,
FLAGS_3d
,
FLAGS_render_pose
),
op
::
flagsToRenderMode
(
FLAGS_face_render
,
multipleView
,
FLAGS_render_pose
),
(
float
)
FLAGS_face_alpha_pose
,
(
float
)
FLAGS_face_alpha_heatmap
,
(
float
)
FLAGS_face_render_threshold
};
// Hand configuration (use op::WrapperStructHand{} to disable it)
const
op
::
WrapperStructHand
wrapperStructHand
{
FLAGS_hand
,
handNetInputSize
,
FLAGS_hand_scale_number
,
(
float
)
FLAGS_hand_scale_range
,
FLAGS_hand_tracking
,
op
::
flagsToRenderMode
(
FLAGS_hand_render
,
FLAGS_3d
,
FLAGS_render_pose
),
op
::
flagsToRenderMode
(
FLAGS_hand_render
,
multipleView
,
FLAGS_render_pose
),
(
float
)
FLAGS_hand_alpha_pose
,
(
float
)
FLAGS_hand_alpha_heatmap
,
(
float
)
FLAGS_hand_render_threshold
};
// Consumer (comment or use default argument to disable any output)
...
...
examples/tutorial_wrapper/3_user_asynchronous.cpp
浏览文件 @
cc48ee3e
...
...
@@ -125,6 +125,10 @@ DEFINE_bool(3d, false, "Running OpenPose 3-D re
" 2) Performing 3-D reconstruction from the multiple views. 3) Displaying 3-D reconstruction"
" results. Note that it will only display 1 person. If multiple people is present, it will"
" fail."
);
DEFINE_int32
(
3
d_views
,
1
,
"Complementary option to `--image_dir` or `--video`. OpenPose will read as many images per"
" iteration, allowing tasks such as stereo camera processing (`--3d`). Note that"
" `--camera_parameters_folder` must be set. OpenPose must find as many `xml` files in the"
" parameter folder as this number indicates."
);
// OpenPose Rendering
DEFINE_int32
(
part_to_show
,
0
,
"Prediction channel to visualize (default: 0). 0 for all the body parts, 1-18 for each body"
" part heat map, 19 for the background heat map, 20 for all the body part heat maps"
...
...
@@ -362,6 +366,8 @@ int openPoseTutorialWrapper3()
const
auto
heatMapTypes
=
op
::
flagsToHeatMaps
(
FLAGS_heatmaps_add_parts
,
FLAGS_heatmaps_add_bkg
,
FLAGS_heatmaps_add_PAFs
);
const
auto
heatMapScale
=
op
::
flagsToHeatMapScaleMode
(
FLAGS_heatmaps_scale
);
// >1 camera view?
const
auto
multipleView
=
(
FLAGS_3d
||
FLAGS_3d_views
>
1
);
// Enabling Google Logging
const
bool
enableGoogleLogging
=
true
;
// Logging
...
...
@@ -372,7 +378,8 @@ int openPoseTutorialWrapper3()
// Pose configuration (use WrapperStructPose{} for default and recommended configuration)
const
op
::
WrapperStructPose
wrapperStructPose
{
!
FLAGS_body_disable
,
netInputSize
,
outputSize
,
keypointScale
,
FLAGS_num_gpu
,
FLAGS_num_gpu_start
,
FLAGS_scale_number
,
(
float
)
FLAGS_scale_gap
,
op
::
flagsToRenderMode
(
FLAGS_render_pose
,
FLAGS_3d
),
(
float
)
FLAGS_scale_gap
,
op
::
flagsToRenderMode
(
FLAGS_render_pose
,
multipleView
),
poseModel
,
!
FLAGS_disable_blending
,
(
float
)
FLAGS_alpha_pose
,
(
float
)
FLAGS_alpha_heatmap
,
FLAGS_part_to_show
,
FLAGS_model_folder
,
heatMapTypes
,
heatMapScale
,
FLAGS_part_candidates
,
...
...
@@ -380,13 +387,13 @@ int openPoseTutorialWrapper3()
enableGoogleLogging
,
FLAGS_3d
};
// Face configuration (use op::WrapperStructFace{} to disable it)
const
op
::
WrapperStructFace
wrapperStructFace
{
FLAGS_face
,
faceNetInputSize
,
op
::
flagsToRenderMode
(
FLAGS_face_render
,
FLAGS_3d
,
FLAGS_render_pose
),
op
::
flagsToRenderMode
(
FLAGS_face_render
,
multipleView
,
FLAGS_render_pose
),
(
float
)
FLAGS_face_alpha_pose
,
(
float
)
FLAGS_face_alpha_heatmap
,
(
float
)
FLAGS_face_render_threshold
};
// Hand configuration (use op::WrapperStructHand{} to disable it)
const
op
::
WrapperStructHand
wrapperStructHand
{
FLAGS_hand
,
handNetInputSize
,
FLAGS_hand_scale_number
,
(
float
)
FLAGS_hand_scale_range
,
FLAGS_hand_tracking
,
op
::
flagsToRenderMode
(
FLAGS_hand_render
,
FLAGS_3d
,
FLAGS_render_pose
),
op
::
flagsToRenderMode
(
FLAGS_hand_render
,
multipleView
,
FLAGS_render_pose
),
(
float
)
FLAGS_hand_alpha_pose
,
(
float
)
FLAGS_hand_alpha_heatmap
,
(
float
)
FLAGS_hand_render_threshold
};
// Consumer (comment or use default argument to disable any output)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录