| 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 | } |
nothing calls this directly
no test coverage detected