Added a pause_on_frame debug variable (useful for debugging video)

This commit is contained in:
Matt Hill
2014-04-06 12:19:40 -05:00
parent 47fa2504cb
commit 7817810461
4 changed files with 10 additions and 3 deletions

View File

@@ -136,10 +136,14 @@ std::vector<AlprResult> AlprImpl::recognize(cv::Mat img)
displayImage(config, "Main Image", img);
// Pause indefinitely until they press a key
cv::waitKey(1);
//while ((char) cv::waitKey(50) == -1)
// {}
if (config->debugPauseOnFrame)
{
// Pause indefinitely until they press a key
while ((char) cv::waitKey(50) == -1)
{}
}
}