Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
活在明天
openpose
提交
a602f93f
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,发现更多精彩内容 >>
提交
a602f93f
编写于
9月 15, 2018
作者:
T
Tianyi Zhao
提交者:
Gines
9月 15, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Alpha Unity plugin version (#805)
上级
d9ea6786
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
36 addition
and
6 deletion
+36
-6
examples/tutorial_wrapper/1_user_synchronous_postprocessing.cpp
...es/tutorial_wrapper/1_user_synchronous_postprocessing.cpp
+1
-2
examples/tutorial_wrapper/2_user_synchronous_input.cpp
examples/tutorial_wrapper/2_user_synchronous_input.cpp
+0
-1
examples/tutorial_wrapper/3_user_synchronous_output.cpp
examples/tutorial_wrapper/3_user_synchronous_output.cpp
+1
-2
examples/tutorial_wrapper/4_user_synchronous_all.cpp
examples/tutorial_wrapper/4_user_synchronous_all.cpp
+0
-1
src/openpose/utilities/errorAndLog.cpp
src/openpose/utilities/errorAndLog.cpp
+34
-0
未找到文件。
examples/tutorial_wrapper/1_user_synchronous_postprocessing.cpp
浏览文件 @
a602f93f
...
...
@@ -366,7 +366,7 @@ int openPoseDemo()
(
float
)
FLAGS_hand_alpha_heatmap
,
(
float
)
FLAGS_hand_render_threshold
};
// Producer (use default to disable any input)
const
op
::
WrapperStructInput
wrapperStructInput
{
producerSharedPtr
,
FLAGS_frame_first
,
FLAGS_frame_last
,
FLAGS_process_real_time
,
FLAGS_frame_flip
,
producerSharedPtr
,
FLAGS_frame_first
,
FLAGS_frame_last
,
FLAGS_process_real_time
,
FLAGS_frame_flip
,
FLAGS_frame_rotate
,
FLAGS_frames_repeat
};
// Extra functionality configuration (use op::WrapperStructExtra{} to disable it)
const
op
::
WrapperStructExtra
wrapperStructExtra
{
...
...
@@ -388,7 +388,6 @@ int openPoseDemo()
// Start processing
// Two different ways of running the program on multithread environment
op
::
log
(
"Starting thread(s)..."
,
op
::
Priority
::
High
);
// Option a) Recommended - Also using the main thread (this thread) for processing (it saves 1 thread)
// Start, run & stop threads - it blocks this thread until all others have finished
opWrapper
.
exec
();
...
...
examples/tutorial_wrapper/2_user_synchronous_input.cpp
浏览文件 @
a602f93f
...
...
@@ -425,7 +425,6 @@ int openPoseDemo()
// Start processing
// Two different ways of running the program on multithread environment
op
::
log
(
"Starting thread(s)..."
,
op
::
Priority
::
High
);
// Option a) Recommended - Also using the main thread (this thread) for processing (it saves 1 thread)
// Start, run & stop threads - it blocks this thread until all others have finished
opWrapper
.
exec
();
...
...
examples/tutorial_wrapper/3_user_synchronous_output.cpp
浏览文件 @
a602f93f
...
...
@@ -416,7 +416,7 @@ int openPoseDemo()
FLAGS_3d
,
FLAGS_3d_min_views
,
FLAGS_identification
,
FLAGS_tracking
,
FLAGS_ik_threads
};
// Producer (use default to disable any input)
const
op
::
WrapperStructInput
wrapperStructInput
{
producerSharedPtr
,
FLAGS_frame_first
,
FLAGS_frame_last
,
FLAGS_process_real_time
,
FLAGS_frame_flip
,
producerSharedPtr
,
FLAGS_frame_first
,
FLAGS_frame_last
,
FLAGS_process_real_time
,
FLAGS_frame_flip
,
FLAGS_frame_rotate
,
FLAGS_frames_repeat
};
// Consumer (comment or use default argument to disable any output)
// const op::WrapperStructOutput wrapperStructOutput{op::flagsToDisplayMode(FLAGS_display, FLAGS_3d),
...
...
@@ -440,7 +440,6 @@ int openPoseDemo()
// Start processing
// Two different ways of running the program on multithread environment
op
::
log
(
"Starting thread(s)..."
,
op
::
Priority
::
High
);
// Option a) Recommended - Also using the main thread (this thread) for processing (it saves 1 thread)
// Start, run & stop threads - it blocks this thread until all others have finished
opWrapper
.
exec
();
...
...
examples/tutorial_wrapper/4_user_synchronous_all.cpp
浏览文件 @
a602f93f
...
...
@@ -492,7 +492,6 @@ int openPoseTutorialWrapper2()
op
::
log
(
"Starting thread(s)..."
,
op
::
Priority
::
High
);
// Two different ways of running the program on multithread environment
// Option a) Recommended - Also using the main thread (this thread) for processing (it saves 1 thread)
// Start, run & stop threads - it blocks this thread until all others have finished
opWrapper
.
exec
();
...
...
src/openpose/utilities/errorAndLog.cpp
浏览文件 @
a602f93f
...
...
@@ -7,6 +7,38 @@
namespace
op
{
#ifdef USE_UNITY_SUPPORT
namespace
UnityDebugger
{
typedef
void
(
__stdcall
*
DebugCallback
)
(
const
char
*
const
str
,
int
type
);
DebugCallback
gDebugCallback
;
extern
"C"
void
OP_API
OP_RegisterDebugCallback
(
DebugCallback
&
debugCallback
)
{
if
(
debugCallback
)
gDebugCallback
=
debugCallback
;
}
void
DebugInUnity
(
const
std
::
string
&
message
,
const
int
type
)
{
if
(
gDebugCallback
)
gDebugCallback
(
message
.
c_str
(),
type
);
}
void
log
(
const
std
::
string
&
message
)
{
DebugInUnity
(
message
,
0
);
}
void
logWarning
(
const
std
::
string
&
message
)
{
DebugInUnity
(
message
,
1
);
}
void
logError
(
const
std
::
string
&
message
)
{
DebugInUnity
(
message
,
-
1
);
}
}
#endif
// Private auxiliar functions
...
...
@@ -147,6 +179,7 @@ namespace op
// Unity logError
#ifdef USE_UNITY_SUPPORT
UnityDebugger
::
logError
(
errorMessageToPrint
);
#endif
// std::runtime_error
...
...
@@ -171,6 +204,7 @@ namespace op
// Unity log
#ifdef USE_UNITY_SUPPORT
UnityDebugger
::
log
(
infoMessage
);
#endif
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录