mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 20:03:15 +08:00
Moved image pause to always take effect if enabled
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user