1 | initial version |
Make sure your OpenCV library is built with parallel framework support (TBB, OpenMP, pthreads). Run print cv2.getBuildInformation()
in python interpreter and find corresponding line in the output.
Even in case when parallel framework has been enabled, some algorithms could be implemented without multithreading support.
Not sure, but it could help: try to call cv2.setNumThreads(4)
to set number of threads explicitly.
__Note:__ all the above advices are compatible with OpenCV 3.x, version 2.4 uses slightly different python module naming