提交 71078eb1 编写于 作者: G gineshidalgo99

Cleaning keypoints if > 0

上级 5366e093
......@@ -52,6 +52,8 @@ namespace op
void increase(const PoseProperty property, const double value);
void clear();
protected:
const PoseModel mPoseModel;
Point<int> mNetOutputSize;
......
......@@ -42,6 +42,8 @@ namespace op
{
if (mTracking < 1 || frameId % (mTracking+1) == 0)
spPoseExtractorNet->forwardPass(inputNetData, inputDataSize, scaleInputToNetInputs);
else
spPoseExtractorNet->clear();
}
catch (const std::exception& e)
{
......
......@@ -332,6 +332,19 @@ namespace op
}
}
void PoseExtractorNet::clear()
{
try
{
mPoseKeypoints.reset();
mPoseScores.reset();
}
catch (const std::exception& e)
{
error(e.what(), __LINE__, __FUNCTION__, __FILE__);
}
}
void PoseExtractorNet::checkThread() const
{
try
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册