Explicitly set OpenCV functions to single threading

This commit is contained in:
Matt Hill
2014-02-20 15:59:35 -06:00
parent b5db3ea78a
commit bb39631acb

View File

@@ -29,6 +29,8 @@ AlprImpl::AlprImpl(const std::string country, const std::string runtimeDir)
stateIdentifier = new StateIdentifier(config); stateIdentifier = new StateIdentifier(config);
ocr = new OCR(config); ocr = new OCR(config);
setNumThreads(0);
this->detectRegion = DEFAULT_DETECT_REGION; this->detectRegion = DEFAULT_DETECT_REGION;
this->topN = DEFAULT_TOPN; this->topN = DEFAULT_TOPN;
this->defaultRegion = ""; this->defaultRegion = "";