1 #ifndef OPENPOSE_HAND_W_HAND_RENDERER_HPP
2 #define OPENPOSE_HAND_W_HAND_RENDERER_HPP
10 template<
typename TDatums>
14 explicit WHandRenderer(
const std::shared_ptr<HandRenderer>& handRenderer);
18 void work(TDatums& tDatums);
21 std::shared_ptr<HandRenderer> spHandRenderer;
35 template<
typename TDatums>
37 spHandRenderer{handRenderer}
41 template<
typename TDatums>
44 spHandRenderer->initializationOnThread();
47 template<
typename TDatums>
59 for (
auto& tDatum : *tDatums)
60 spHandRenderer->renderHand(tDatum.outputData, tDatum.handKeypoints);
68 catch (
const std::exception& e)
72 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
79 #endif // OPENPOSE_HAND_W_HAND_RENDERER_HPP
void initializationOnThread()
Definition: wHandRenderer.hpp:42
Definition: wHandRenderer.hpp:11
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
bool checkNoNullNorEmpty(const TPointerContainer &tPointerContainer)
Definition: pointerContainer.hpp:7
COMPILE_TEMPLATE_DATUM(WCvMatToOpInput)
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)
WHandRenderer(const std::shared_ptr< HandRenderer > &handRenderer)
Definition: wHandRenderer.hpp:36
void work(TDatums &tDatums)
Definition: wHandRenderer.hpp:48
static void timerEnd(const std::string &key)