From bb39631acbaf941eb0810428b279213ed3209bef Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Thu, 20 Feb 2014 15:59:35 -0600 Subject: [PATCH] Explicitly set OpenCV functions to single threading --- src/openalpr/alpr_impl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openalpr/alpr_impl.cpp b/src/openalpr/alpr_impl.cpp index 6866211..5c405a7 100644 --- a/src/openalpr/alpr_impl.cpp +++ b/src/openalpr/alpr_impl.cpp @@ -29,6 +29,8 @@ AlprImpl::AlprImpl(const std::string country, const std::string runtimeDir) stateIdentifier = new StateIdentifier(config); ocr = new OCR(config); + setNumThreads(0); + this->detectRegion = DEFAULT_DETECT_REGION; this->topN = DEFAULT_TOPN; this->defaultRegion = "";