1 #ifndef OPENPOSE_GUI_W_GUI_HPP
2 #define OPENPOSE_GUI_W_GUI_HPP
10 template<
typename TDatums>
14 explicit WGui(
const std::shared_ptr<Gui>& gui);
23 std::shared_ptr<Gui> spGui;
37 template<
typename TDatums>
43 template<
typename TDatums>
48 template<
typename TDatums>
53 spGui->initializationOnThread();
55 catch (
const std::exception& e)
57 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
61 template<
typename TDatums>
67 if (tDatums !=
nullptr)
74 if (!tDatums->empty())
76 std::vector<Matrix> cvOutputDatas;
77 for (
auto& tDatumPtr : *tDatums)
78 cvOutputDatas.emplace_back(tDatumPtr->cvOutputData);
79 spGui->setImage(cvOutputDatas);
84 if (!tDatums->empty())
93 catch (
const std::exception& e)
96 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
static void printAveragedTimeMsOnIterationX(const std::string &key, const int line, const std::string &function, const std::string &file, const unsigned long long x=DEFAULT_X)
static const std::string timerInit(const int line, const std::string &function, const std::string &file)
static void timerEnd(const std::string &key)
void initializationOnThread()
WGui(const std::shared_ptr< Gui > &gui)
void workConsumer(const TDatums &tDatums)
COMPILE_TEMPLATE_DATUM(WPoseTriangulation)
OP_API void error(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")
void opLogIfDebug(const T &message, const Priority priority=Priority::Max, const int line=-1, const std::string &function="", const std::string &file="")