More bug fixes revealed by demo scripts.

This commit is contained in:
Tadas Baltrusaitis
2017-11-22 17:53:15 +00:00
parent 41af428f5c
commit 89332ea943
8 changed files with 32 additions and 42 deletions

View File

@@ -295,10 +295,9 @@ int main (int argc, char **argv)
}
}
visualizer.SetFps(fps_tracker.GetFPS());
visualizer.ShowObservation();
// detect key presses
char character_press = cv::waitKey(1);
// show visualization and detect key presses
char character_press = visualizer.ShowObservation();
// restart the trackers
if(character_press == 'r')
@@ -312,7 +311,7 @@ int main (int argc, char **argv)
// quit the application
else if(character_press=='q')
{
return(0);
return 0;
}
// Update the frame count
@@ -332,6 +331,8 @@ int main (int argc, char **argv)
active_models[model] = false;
}
sequence_number++;
}
return 0;