From 14579a22276b942e2460d93fe16e97b3743e8df6 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Tue, 19 Aug 2014 00:40:37 -0400 Subject: [PATCH] Only show timing information when --clock is used --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 56dd67f..41923aa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -294,7 +294,11 @@ bool detectandshow( Alpr* alpr, cv::Mat frame, std::string region, bool writeJso { for (int i = 0; i < results.size(); i++) { - std::cout << "plate" << i << ": " << results[i].result_count << " results -- Processing Time = " << results[i].processing_time_ms << "ms." << std::endl; + std::cout << "plate" << i << ": " << results[i].result_count << " results"; + if (measureProcessingTime) + std::cout << " -- Processing Time = " << results[i].processing_time_ms << "ms."; + std::cout << std::endl; + for (int k = 0; k < results[i].topNPlates.size(); k++) {