From 81da94a9582776c99d8d8a2fc024df4c4f43d88c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 5 Jul 2019 12:52:42 +0200 Subject: Revert "tracker/easy: don't recreate preview all the time" --- tracker-easy/tracker-easy.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tracker-easy/tracker-easy.cpp') diff --git a/tracker-easy/tracker-easy.cpp b/tracker-easy/tracker-easy.cpp index 5c1c8684..59c01f68 100644 --- a/tracker-easy/tracker-easy.cpp +++ b/tracker-easy/tracker-easy.cpp @@ -584,6 +584,14 @@ namespace EasyTracker iPreview = Preview(w, h); } } + else + { + // No preview, destroy preview pop-up + if (iDebug) + { + cv::destroyWindow("Preview"); + } + } dbgout << "Frame time:" << iTimer.elapsed_seconds(); //infout << "ProcessFrame - end"; -- cgit v1.2.3