1 #ifndef OPENPOSE_GUI_W_GUI_3D_HPP
2 #define OPENPOSE_GUI_W_GUI_3D_HPP
11 template<
typename TDatums>
15 explicit WGui3D(
const std::shared_ptr<Gui3D>& gui3D);
24 std::shared_ptr<Gui3D> spGui3D;
38 template<
typename TDatums>
44 template<
typename TDatums>
49 template<
typename TDatums>
54 spGui3D->initializationOnThread();
56 catch (
const std::exception& e)
58 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
62 template<
typename TDatums>
68 if (tDatums !=
nullptr)
75 if (!tDatums->empty())
78 std::vector<cv::Mat> cvOutputDatas;
79 for (
auto& tDatum : *tDatums)
80 cvOutputDatas.emplace_back(tDatum.cvOutputData);
81 spGui3D->setImage(cvOutputDatas);
83 auto& tDatum = (*tDatums)[0];
84 spGui3D->setKeypoints(tDatum.poseKeypoints3D, tDatum.faceKeypoints3D, tDatum.handKeypoints3D[0],
85 tDatum.handKeypoints3D[1]);
90 if (!tDatums->empty())
92 auto& tDatum = (*tDatums)[0];
93 tDatum.cvOutputData3D = spGui3D->readCvMat();
96 if (!tDatums->empty())
105 catch (
const std::exception& e)
108 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
115 #endif // OPENPOSE_GUI_W_GUI_3D_HPP
Definition: workerConsumer.hpp:10
void workConsumer(const TDatums &tDatums)
Definition: wGui3D.hpp:63
virtual ~WGui3D()
Definition: wGui3D.hpp:45
WGui3D(const std::shared_ptr< Gui3D > &gui3D)
Definition: wGui3D.hpp:39
static const std::string timerInit(const int line, const std::string &function, const std::string &file)
OP_API void error(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")
void dLog(const T &message, const Priority priority=Priority::Max, const int line=-1, const std::string &function="", const std::string &file="")
Definition: errorAndLog.hpp:53
void initializationOnThread()
Definition: wGui3D.hpp:50
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)
COMPILE_TEMPLATE_DATUM(WPoseTriangulation)
static void timerEnd(const std::string &key)
Definition: wGui3D.hpp:12