Only show timing information when --clock is used

This commit is contained in:
Matt Hill
2014-08-19 00:40:37 -04:00
parent 6b0fbc2f5e
commit 14579a2227

View File

@@ -294,7 +294,11 @@ bool detectandshow( Alpr* alpr, cv::Mat frame, std::string region, bool writeJso
{ {
for (int i = 0; i < results.size(); i++) 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++) for (int k = 0; k < results[i].topNPlates.size(); k++)
{ {