From c1a253a057e15b6907bbb39bdc9cdbc81dce2070 Mon Sep 17 00:00:00 2001 From: Florent Berthaut <florent.berthaut@univ-lille.fr> Date: Sat, 31 May 2025 15:38:46 +0200 Subject: [PATCH] Reduce delay for marker detection --- src/modules/DepthCamModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/DepthCamModule.cpp b/src/modules/DepthCamModule.cpp index 3f62d1b..da0e1a4 100644 --- a/src/modules/DepthCamModule.cpp +++ b/src/modules/DepthCamModule.cpp @@ -1437,7 +1437,7 @@ void DepthCamModule::filterMarkers(vector<vector<cv::Point2f> >& cor, time(&now); map<int, s_markerAndTime>::iterator itAl = m_aliveMarkers.begin(); 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); itAl = m_aliveMarkers.erase(itAl); } -- GitLab