mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 13:20:56 +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);
|
displayImage(config, "Main Image", img);
|
||||||
cv::waitKey(1);
|
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();
|
return dispatcher.getRecognitionResults();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user