Commit f54d8c43 authored by oscar's avatar oscar

提交修改

parent bf4267ce
......@@ -75,6 +75,19 @@ int BaseTracker<T>::Run(const std::vector<std::vector<float> >& detections, int
#endif
if (detections.empty())
{
/*** Delete lose tracked tracks ***/
for (auto it = m_tracker.begin(); it != m_tracker.end();)
{
if (it->second->IsLost())
{
lostId.push_back(it->first);
it = m_tracker.erase(it);
}
else
{
it++;
}
}
return 0;
}
#ifdef _USING_NSIGHT_
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment