From 38db03f353046f99bf190d331c62a0fa5bebf80b Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 13 Aug 2014 17:18:34 -0400 Subject: [PATCH] Added delay to show images. Otherwise, images don't show during videos --- src/openalpr/utility.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openalpr/utility.cpp b/src/openalpr/utility.cpp index 036317e..914fdea 100644 --- a/src/openalpr/utility.cpp +++ b/src/openalpr/utility.cpp @@ -104,7 +104,10 @@ void drawAndWait(cv::Mat* frame) void displayImage(Config* config, string windowName, cv::Mat frame) { if (config->debugShowImages) + { imshow(windowName, frame); + cv::waitKey(5); + } } vector produceThresholds(const Mat img_gray, Config* config)