Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hello,

After a fair amount of digging, I was able to find the answer and a workaround. Posting here, to help out others.

Basically, multiprocessing support for OpenCV, with Python 3.8 is broken on Windows 10 (not sure if it is working for Linux - likely is). It has to do with the way Python 3.8 revamped how module extension dlls are loaded. So if you want to use multiprocessing for OpenCV on Windows 10, use Python 3.7 or earlier.

There is a somewhat painful workaround to enable multiprocessing with Python 3.8. It is described in detail, in the bug report here: https://github.com/opencv/opencv/issues/18502

Using this workaround, I was able to run my heavy processing modules on multiple cores.

Hope this helps.

Cheers!

Vijay