From 8052e9fdc432ea6da02962f5790b4cd2bda01299 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Sun, 6 Apr 2014 12:22:06 -0500 Subject: [PATCH] Moved image pause to always take effect if enabled --- src/openalpr/alpr_impl.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/openalpr/alpr_impl.cpp b/src/openalpr/alpr_impl.cpp index ec5df5e..9bdc144 100644 --- a/src/openalpr/alpr_impl.cpp +++ b/src/openalpr/alpr_impl.cpp @@ -138,14 +138,14 @@ std::vector AlprImpl::recognize(cv::Mat img) displayImage(config, "Main Image", img); cv::waitKey(1); - if (config->debugPauseOnFrame) - { - // Pause indefinitely until they press a key - while ((char) cv::waitKey(50) == -1) - {} - } } - + + if (config->debugPauseOnFrame) + { + // Pause indefinitely until they press a key + while ((char) cv::waitKey(50) == -1) + {} + } return dispatcher.getRecognitionResults(); }