Process image first before stopping to display image (debug mode)

This commit is contained in:
Matt Hill
2014-06-02 20:53:00 -04:00
parent c389561754
commit aace8b7c97

View File

@@ -142,6 +142,9 @@ std::vector<AlprResult> AlprImpl::recognize(cv::Mat img)
}
vector<AlprResult> results = dispatcher.getRecognitionResults();
if (config->debugPauseOnFrame)
{
// Pause indefinitely until they press a key
@@ -149,7 +152,7 @@ std::vector<AlprResult> AlprImpl::recognize(cv::Mat img)
{}
}
return dispatcher.getRecognitionResults();
return results;
}
void plateAnalysisThread(void* arg)