1 #ifndef OPENPOSE_FACE_W_FACE_EXTRACTOR_HPP
2 #define OPENPOSE_FACE_W_FACE_EXTRACTOR_HPP
10 template<
typename TDatums>
14 explicit WFaceDetector(
const std::shared_ptr<FaceDetector>& faceDetector);
18 void work(TDatums& tDatums);
21 std::shared_ptr<FaceDetector> spFaceDetector;
35 template<
typename TDatums>
37 spFaceDetector{faceDetector}
41 template<
typename TDatums>
46 template<
typename TDatums>
58 for (
auto& tDatum : *tDatums)
59 tDatum.faceRectangles = spFaceDetector->detectFaces(tDatum.poseKeypoints, tDatum.scaleInputToOutput);
67 catch (
const std::exception& e)
71 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
78 #endif // OPENPOSE_FACE_W_FACE_EXTRACTOR_HPP
void work(TDatums &tDatums)
Definition: wFaceDetector.hpp:47
WFaceDetector(const std::shared_ptr< FaceDetector > &faceDetector)
Definition: wFaceDetector.hpp:36
void initializationOnThread()
Definition: wFaceDetector.hpp:42
Definition: wFaceDetector.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:47
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)
static void timerEnd(const std::string &key)