1 | initial version |
your build probably used BUILD_SHARED_LIBS in the cmake settings, so it's not using static, but dynamic libs(dlls). in this case:
"ImportError: DLL load failed: The specified module could not be found"
means, that the cv2 module was loaded, but not the other opencv-dlls, you need to adjust your PATH environment var, add the path to the opencv-dlls here, so cv2.pyd can find them at runtime.
if you don't want that, untick BUILD_SHARED_LIBS in cmake-gui, and rebuild opencv with static libs. this will give you a huge, but self-contrained cv2.pyd (like the 9mb with the prebuilt one)