Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sq975
openpose
提交
6a6dd2e0
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 搜索 >>
提交
6a6dd2e0
编写于
1月 11, 2019
作者:
T
Tianyi Zhao
提交者:
Gines
1月 11, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Unity plugin compatibility (#975)
上级
fc6d3599
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
634 addition
and
24 deletion
+634
-24
CMakeLists.txt
CMakeLists.txt
+1
-1
include/openpose/headers.hpp
include/openpose/headers.hpp
+3
-0
include/openpose/unity/headers.hpp
include/openpose/unity/headers.hpp
+7
-0
include/openpose/unity/unityBinding.hpp
include/openpose/unity/unityBinding.hpp
+3
-0
src/openpose/gui/CMakeLists.txt
src/openpose/gui/CMakeLists.txt
+0
-1
src/openpose/pose/CMakeLists.txt
src/openpose/pose/CMakeLists.txt
+1
-1
src/openpose/unity/CMakeLists.txt
src/openpose/unity/CMakeLists.txt
+21
-0
src/openpose/unity/unityBinding.cpp
src/openpose/unity/unityBinding.cpp
+586
-0
src/openpose/utilities/errorAndLog.cpp
src/openpose/utilities/errorAndLog.cpp
+12
-21
未找到文件。
CMakeLists.txt
浏览文件 @
6a6dd2e0
...
...
@@ -273,7 +273,7 @@ if (WIN32)
endif
(
WIN32
)
# Unity
#
option(BUILD_UNITY_SUPPORT "Build OpenPose as a Unity plugin." OFF)
option
(
BUILD_UNITY_SUPPORT
"Build OpenPose as a Unity plugin."
OFF
)
# Build as shared library
option
(
BUILD_SHARED_LIBS
"Build as shared lib."
ON
)
...
...
include/openpose/headers.hpp
浏览文件 @
6a6dd2e0
...
...
@@ -37,6 +37,9 @@
// tracking module
#include <openpose/tracking/headers.hpp>
// unity module
#include <openpose/unity/headers.hpp>
// utilities module
#include <openpose/utilities/headers.hpp>
...
...
include/openpose/unity/headers.hpp
0 → 100644
浏览文件 @
6a6dd2e0
#ifndef OPENPOSE_UNITY_HEADERS_HPP
#define OPENPOSE_UNITY_HEADERS_HPP
// unity module
#include <openpose/unity/unityBinding.hpp>
#endif // OPENPOSE_UNITY_HEADERS_HPP
include/openpose/unity/unityBinding.hpp
0 → 100644
浏览文件 @
6a6dd2e0
// Temporarily, all the code is located in
// src/openpose/unity/unityBinding.cpp
// TODO: Move functionality from unityBinding.cpp to this class
src/openpose/gui/CMakeLists.txt
浏览文件 @
6a6dd2e0
...
...
@@ -24,4 +24,3 @@ if (UNIX OR APPLE)
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib/openpose
)
endif
(
UNIX OR APPLE
)
src/openpose/pose/CMakeLists.txt
浏览文件 @
6a6dd2e0
set
(
SOURCES_OP_POSE
set
(
SOURCES_OP_POSE
defineTemplates.cpp
poseCpuRenderer.cpp
poseExtractor.cpp
...
...
src/openpose/unity/CMakeLists.txt
0 → 100644
浏览文件 @
6a6dd2e0
set
(
SOURCES_OP_UNITY
unityBinding.cpp
)
include
(
${
CMAKE_SOURCE_DIR
}
/cmake/Utils.cmake
)
set
(
SOURCES_OP_UNITY_WITH_CP
""
PARENT_SCOPE
)
prepend
(
SOURCES_OP_UNITY_WITH_CP
${
CMAKE_CURRENT_SOURCE_DIR
}
${
SOURCES_OP_UNITY
}
)
set
(
SOURCES_OP_UNITY_WITH_CP
${
SOURCES_OP_UNITY_WITH_CP
}
PARENT_SCOPE
)
set
(
SOURCES_OP_FILESTREAM_WITH_CP
${
SOURCES_OP_FILESTREAM_WITH_CP
}
PARENT_SCOPE
)
set
(
SOURCES_OPENPOSE
${
SOURCES_OPENPOSE
}
${
SOURCES_OP_UNITY_WITH_CP
}
PARENT_SCOPE
)
if
(
UNIX OR APPLE
)
add_library
(
openpose_unity
${
SOURCES_OP_UNITY
}
)
# target_link_libraries(openpose_unity openpose_pose ${OpenCV_LIBS})
install
(
TARGETS openpose_unity
EXPORT OpenPose
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib/openpose
)
endif
(
UNIX OR APPLE
)
src/openpose/unity/unityBinding.cpp
0 → 100644
浏览文件 @
6a6dd2e0
此差异已折叠。
点击以展开。
src/openpose/utilities/errorAndLog.cpp
浏览文件 @
6a6dd2e0
...
...
@@ -10,34 +10,25 @@ namespace op
namespace
UnityDebugger
{
typedef
void
(
__stdcall
*
DebugCallback
)
(
const
char
*
const
str
,
int
type
);
DebugCallback
gDebugCallback
;
DebugCallback
unityDebugCallback
;
bool
unityDebugEnabled
=
true
;
extern
"C"
void
OP_API
OP_RegisterDebugCallback
(
DebugCallback
&
debugCallback
)
{
extern
"C"
void
OP_API
_OPRegisterDebugCallback
(
DebugCallback
debugCallback
)
{
if
(
debugCallback
)
g
DebugCallback
=
debugCallback
;
unity
DebugCallback
=
debugCallback
;
}
void
DebugInUnity
(
const
std
::
string
&
message
,
const
int
type
)
{
if
(
gDebugCallback
)
gDebugCallback
(
message
.
c_str
(),
type
);
}
extern
"C"
void
OP_API
_OPSetDebugEnable
(
bool
enable
)
{
unityDebugEnabled
=
enable
;
}
void
log
(
const
std
::
string
&
message
)
{
DebugInUnity
(
message
,
0
);
void
DebugInUnity
(
const
std
::
string
&
message
,
const
int
type
)
{
if
(
unityDebugEnabled
)
if
(
unityDebugCallback
)
unityDebugCallback
(
message
.
c_str
(),
type
);
}
void
logWarning
(
const
std
::
string
&
message
)
{
DebugInUnity
(
message
,
1
);
}
void
logError
(
const
std
::
string
&
message
)
{
DebugInUnity
(
message
,
-
1
);
}
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
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录