From ec188964b479cbc4aec2b2de98be50eb2a6fa057 Mon Sep 17 00:00:00 2001 From: Djordje Senicic Date: Fri, 7 Sep 2018 13:34:37 -0400 Subject: [PATCH] examples:classification: Use configuration.numFrames instead of hard coded big value Signed-off-by: Djordje Senicic --- examples/classification/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/classification/main.cpp b/examples/classification/main.cpp index 99bf7b2..21c05a7 100644 --- a/examples/classification/main.cpp +++ b/examples/classification/main.cpp @@ -230,7 +230,7 @@ bool RunConfiguration(const std::string& config_file, int num_layers_groups, uin for(int i = 0; i < 3; i ++) selclass_history[k][i] = -1; avg_fps = 0.0; - int num_frames = 999999; + int num_frames = configuration.numFrames; std::cout << "About to start ProcessFrame loop!!" << std::endl; // Process frames with available EOPs in a pipelined manner @@ -609,8 +609,6 @@ void DisplayFrame(const ExecutionObjectPipeline* eop, VideoWriter& writer, cv::imshow(imagenet_win, show_image); #endif -#endif - #ifdef RMT_GST_STREAMER cv::resize(show_image, to_stream, cv::Size(640,480)); writer << to_stream; -- 2.39.2