Added delay to show images. Otherwise, images don't show during videos

This commit is contained in:
Matt Hill
2014-08-13 17:18:34 -04:00
parent eb7dba41a3
commit 38db03f353

View File

@@ -104,7 +104,10 @@ void drawAndWait(cv::Mat* frame)
void displayImage(Config* config, string windowName, cv::Mat frame) void displayImage(Config* config, string windowName, cv::Mat frame)
{ {
if (config->debugShowImages) if (config->debugShowImages)
{
imshow(windowName, frame); imshow(windowName, frame);
cv::waitKey(5);
}
} }
vector<Mat> produceThresholds(const Mat img_gray, Config* config) vector<Mat> produceThresholds(const Mat img_gray, Config* config)