Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
活在明天
openpose
提交
8744f1a9
O
openpose
项目概览
活在明天
/
openpose
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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 搜索 >>
提交
8744f1a9
编写于
5月 16, 2017
作者:
G
gineshidalgo99
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Gui/FrameDisplayer: all visualization functions moved to same thread
上级
f4dd4739
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
5 deletion
+20
-5
README.md
README.md
+3
-4
include/openpose/gui/frameDisplayer.hpp
include/openpose/gui/frameDisplayer.hpp
+3
-0
include/openpose/gui/gui.hpp
include/openpose/gui/gui.hpp
+2
-0
include/openpose/gui/wGui.hpp
include/openpose/gui/wGui.hpp
+1
-0
src/openpose/gui/frameDisplayer.cpp
src/openpose/gui/frameDisplayer.cpp
+6
-1
src/openpose/gui/gui.cpp
src/openpose/gui/gui.cpp
+5
-0
未找到文件。
README.md
浏览文件 @
8744f1a9
...
...
@@ -69,8 +69,9 @@ The pose estimation work is based on the C++ code from [the ECCV 2016 demo](http
3.
[
Output
](
#output
)
1.
[
Output Format
](
#output-format
)
2.
[
Reading Saved Results
](
#reading-saved-results
)
4.
[
Send Us Your Feedback!
](
#send-us-your-feedback
)
5.
[
Citation
](
#citation
)
4.
[
OpenPose Benchmark
](
#openpose-benchmark
)
5.
[
Send Us Your Feedback!
](
#send-us-your-feedback
)
6.
[
Citation
](
#citation
)
...
...
@@ -202,8 +203,6 @@ Just comment on GibHub or make a pull request and we will answer as soon as poss
## Citation
Please cite the papers in your publications if it helps your research:
### Pose Estimation
@inproceedings{cao2017realtime,
author = {Zhe Cao and Tomas Simon and Shih-En Wei and Yaser Sheikh},
booktitle = {CVPR},
...
...
include/openpose/gui/frameDisplayer.hpp
浏览文件 @
8744f1a9
...
...
@@ -21,6 +21,9 @@ namespace op
*/
FrameDisplayer
(
const
cv
::
Size
&
windowedSize
,
const
std
::
string
&
windowedName
=
"OpenPose Display"
,
const
bool
fullScreen
=
false
);
// Due to OpenCV visualization issues (all visualization functions must be in the same thread)
void
initializationOnThread
();
/**
* This function set the new FrameDisplayer::GuiDisplayMode (e.g. full screen).
* @param displayMode New FrameDisplayer::GuiDisplayMode state.
...
...
include/openpose/gui/gui.hpp
浏览文件 @
8744f1a9
...
...
@@ -18,6 +18,8 @@ namespace op
const
std
::
shared_ptr
<
std
::
pair
<
std
::
atomic
<
bool
>
,
std
::
atomic
<
int
>>>&
videoSeekSharedPtr
=
nullptr
,
const
std
::
vector
<
std
::
shared_ptr
<
PoseExtractor
>>&
poseExtractors
=
{},
const
std
::
vector
<
std
::
shared_ptr
<
PoseRenderer
>>&
poseRenderers
=
{});
void
initializationOnThread
();
void
update
(
const
cv
::
Mat
&
cvOutputData
=
cv
::
Mat
{});
private:
...
...
include/openpose/gui/wGui.hpp
浏览文件 @
8744f1a9
...
...
@@ -41,6 +41,7 @@ namespace op
WGui
<
TDatums
>::
WGui
(
const
std
::
shared_ptr
<
Gui
>&
gui
)
:
spGui
{
gui
}
{
spGui
->
initializationOnThread
();
}
template
<
typename
TDatums
>
...
...
src/openpose/gui/frameDisplayer.cpp
浏览文件 @
8744f1a9
...
...
@@ -8,6 +8,10 @@ namespace op
mWindowedSize
{
windowedSize
},
mWindowName
{
windowedName
},
mGuiDisplayMode
{(
fullScreen
?
GuiDisplayMode
::
FullScreen
:
GuiDisplayMode
::
Windowed
)}
{
}
void
FrameDisplayer
::
initializationOnThread
()
{
try
{
...
...
@@ -15,7 +19,8 @@ namespace op
const
cv
::
Mat
blackFrame
{
mWindowedSize
.
height
,
mWindowedSize
.
width
,
CV_32FC3
,
{
0
,
0
,
0
}};
FrameDisplayer
::
displayFrame
(
blackFrame
);
cv
::
waitKey
(
100
);
cv
::
waitKey
(
1
);
// This one will show most probably a white image (I guess the program does not have time to render in 1 msec)
// cv::waitKey(1000); // This one will show the desired black image
}
catch
(
const
std
::
exception
&
e
)
{
...
...
src/openpose/gui/gui.cpp
浏览文件 @
8744f1a9
...
...
@@ -160,6 +160,11 @@ namespace op
{
}
void
Gui
::
initializationOnThread
()
{
mFrameDisplayer
.
initializationOnThread
();
}
void
Gui
::
update
(
const
cv
::
Mat
&
cvOutputData
)
{
try
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录