1 #ifndef OPENPOSE_CORE_W_KEEP_TOP_N_PEOPLE_HPP
2 #define OPENPOSE_CORE_W_KEEP_TOP_N_PEOPLE_HPP
10 template<
typename TDatums>
14 explicit WKeepTopNPeople(
const std::shared_ptr<KeepTopNPeople>& keepTopNPeople);
20 void work(TDatums& tDatums);
23 std::shared_ptr<KeepTopNPeople> spKeepTopNPeople;
35 template<
typename TDatums>
37 spKeepTopNPeople{keepTopNPeople}
41 template<
typename TDatums>
46 template<
typename TDatums>
51 template<
typename TDatums>
63 for (
auto& tDatumPtr : *tDatums)
65 tDatumPtr->poseKeypoints = spKeepTopNPeople->keepTopPeople(
66 tDatumPtr->poseKeypoints, tDatumPtr->poseScores);
67 tDatumPtr->faceKeypoints = spKeepTopNPeople->keepTopPeople(
68 tDatumPtr->faceKeypoints, tDatumPtr->poseScores);
69 tDatumPtr->handKeypoints[0] = spKeepTopNPeople->keepTopPeople(
70 tDatumPtr->handKeypoints[0], tDatumPtr->poseScores);
71 tDatumPtr->handKeypoints[1] = spKeepTopNPeople->keepTopPeople(
72 tDatumPtr->handKeypoints[1], tDatumPtr->poseScores);
81 catch (
const std::exception& e)
85 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()
void work(TDatums &tDatums)
virtual ~WKeepTopNPeople()
WKeepTopNPeople(const std::shared_ptr< KeepTopNPeople > &keepTopNPeople)
bool checkNoNullNorEmpty(const TPointerContainer &tPointerContainer)
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="")