Python OpenCV - CascadeClassifier Haarcascade detectMultiScale() not working

it is a possibility. one of several. perhaps skvarg’s opencv-python package isn’t tested on win32. something may be broken.

things you could try:

  1. look at previous releases of the skvarg package and try installing various earlier versions with pip: pip install opencv-python==4.5.1.48 (example)

  2. NOT a solution: the official binary package for Windows from Releases - OpenCV appears to be 64 bit only

  3. find a different package for python and try with that
    – I don’t know of any other packages… except for some v3.4 package on condaforge.

  4. build OpenCV yourself and see if that has better luck

  5. translate python code into a C++ version, compile and run that, see if it also crashes
    – trying this from C++ code makes debugging into OpenCV’s functions easier

I would recommend upgrading the OS. or try running a 64 bit VM: virtual machines - Can I run 64-bit VM guests on a 32-bit host? - Server Fault