mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 23:32:54 +08:00
Explicitly set OpenCV functions to single threading
This commit is contained in:
@@ -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 = "";
|
||||||
|
Reference in New Issue
Block a user