Moved image pause to always take effect if enabled

This commit is contained in:
Matt Hill
2014-04-06 12:22:06 -05:00
parent 7817810461
commit 8052e9fdc4

View File

@@ -138,14 +138,14 @@ std::vector<AlprResult> 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();
}