I think you should install opencv-contrib-python instead. The module you’re using is not support in opencv-python. See opencv-contrib-python.
To install:
pip install opencv-contrib-python
I think you should install opencv-contrib-python instead. The module you’re using is not support in opencv-python. See opencv-contrib-python.
To install:
pip install opencv-contrib-python