From 518becf76bb5313949c76e9fa02d1ada2c25242d Mon Sep 17 00:00:00 2001 From: Stéphane Lenclud Date: Sat, 27 Apr 2019 18:06:06 +0200 Subject: Easy Tracker: Auto center when user removes her hat. --- tracker-easy/tracker-easy.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tracker-easy/tracker-easy.h') diff --git a/tracker-easy/tracker-easy.h b/tracker-easy/tracker-easy.h index 37337087..65b777bf 100644 --- a/tracker-easy/tracker-easy.h +++ b/tracker-easy/tracker-easy.h @@ -101,7 +101,7 @@ namespace EasyTracker Preview iPreview; std::atomic ever_success = false; - mutable QMutex center_lock, data_lock; + mutable QMutex iProcessLock, iDataLock; // Deadzone int iDeadzoneEdge=0; @@ -144,6 +144,12 @@ namespace EasyTracker cv::Vec3d iBestTranslation; // Best angles cv::Vec3d iBestAngles; + // Time at which we found our last best solution + Timer iBestTime; + // Center translation + cv::Vec3d iCenterTranslation = {0,0,0}; + // Center angles + cv::Vec3d iCenterAngles = { 0,0,0 }; }; } -- cgit v1.2.3