Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AmmarkoV committed Apr 13, 2022
1 parent 3a23f9d commit bf5d15b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/MocapNET2/MocapNET2LiveWebcamDemo/livedemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit bf5d15b

Please sign in to comment.