Skip to content
Snippets Groups Projects
Commit c1a253a0 authored by Florent Berthaut's avatar Florent Berthaut
Browse files

Reduce delay for marker detection

parent b8782e81
No related branches found
No related tags found
No related merge requests found
...@@ -1437,7 +1437,7 @@ void DepthCamModule::filterMarkers(vector<vector<cv::Point2f> >& cor, ...@@ -1437,7 +1437,7 @@ void DepthCamModule::filterMarkers(vector<vector<cv::Point2f> >& cor,
time(&now); time(&now);
map<int, s_markerAndTime>::iterator itAl = m_aliveMarkers.begin(); map<int, s_markerAndTime>::iterator itAl = m_aliveMarkers.begin();
for(; itAl!=m_aliveMarkers.end();) { for(; itAl!=m_aliveMarkers.end();) {
if(difftime(now, itAl->second.detection) > 1) { if(difftime(now, itAl->second.detection) > 0.2) {
m_removedMarkers.push_back(itAl->second); m_removedMarkers.push_back(itAl->second);
itAl = m_aliveMarkers.erase(itAl); itAl = m_aliveMarkers.erase(itAl);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment