MCPcopy Create free account
hub / github.com/CMU-Perceptual-Computing-Lab/openpose / work

Method work

include/openpose/3d/wJointAngleEstimation.hpp:63–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62 template<typename TDatums>
63 void WJointAngleEstimation<TDatums>::work(TDatums& tDatums)
64 {
65 try
66 {
67 if (checkNoNullNorEmpty(tDatums))
68 {
69 // Debugging log
70 opLogIfDebug("", Priority::Low, __LINE__, __FUNCTION__, __FILE__);
71 // Profiling speed
72 const auto profilerKey = Profiler::timerInit(__LINE__, __FUNCTION__, __FILE__);
73 // Input
74 auto& tDatumPtr = tDatums->at(0);
75 const auto& poseKeypoints3D = tDatumPtr->poseKeypoints3D;
76 const auto& faceKeypoints3D = tDatumPtr->faceKeypoints3D;
77 const auto& handKeypoints3D = tDatumPtr->handKeypoints3D;
78 // Running Adam model
79 spJointAngleEstimation->adamFastFit(
80 tDatumPtr->adamPose, tDatumPtr->adamTranslation, tDatumPtr->vtVec, tDatumPtr->j0Vec,
81 tDatumPtr->adamFaceCoeffsExp, poseKeypoints3D, faceKeypoints3D, handKeypoints3D);
82 // Profiling speed
83 Profiler::timerEnd(profilerKey);
84 Profiler::printAveragedTimeMsOnIterationX(profilerKey, __LINE__, __FUNCTION__, __FILE__);
85 // Debugging log
86 opLogIfDebug("", Priority::Low, __LINE__, __FUNCTION__, __FILE__);
87 }
88 }
89 catch (const std::exception& e)
90 {
91 this->stop();
92 tDatums = nullptr;
93 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
94 }
95 }
96
97 COMPILE_TEMPLATE_DATUM(WJointAngleEstimation);
98}

Callers

nothing calls this directly

Calls 6

checkNoNullNorEmptyFunction · 0.85
opLogIfDebugFunction · 0.85
adamFastFitMethod · 0.80
whatMethod · 0.80
errorFunction · 0.50
stopMethod · 0.45

Tested by

no test coverage detected