From bf5d15bcd190aecc4424e66fed458fbdede652a9 Mon Sep 17 00:00:00 2001 From: Ammar Qammaz Date: Thu, 14 Apr 2022 00:36:58 +0300 Subject: [PATCH] fixed issue https://github.com/FORTH-ModelBasedTracker/MocapNET/issues/80 --- src/MocapNET2/MocapNET2LiveWebcamDemo/livedemo.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/MocapNET2/MocapNET2LiveWebcamDemo/livedemo.cpp b/src/MocapNET2/MocapNET2LiveWebcamDemo/livedemo.cpp index ff549ba..e95fbbf 100644 --- a/src/MocapNET2/MocapNET2LiveWebcamDemo/livedemo.cpp +++ b/src/MocapNET2/MocapNET2LiveWebcamDemo/livedemo.cpp @@ -374,6 +374,12 @@ int main(int argc, char *argv[]) // These final calls add delays to frame processing so // they are not counted in loop time //------------------------------------------------------ + + + //Frames should increment even when visualization is off.. + ++frameID; + + if (options.visualize) { char key = 0; @@ -385,8 +391,6 @@ int main(int argc, char *argv[]) key = waitKey(1); } - ++frameID; - if (key==27) { fprintf(stderr,GREEN "Received Escape key from UI, terminating the application.." NORMAL);