问题报错详情:
AttributeError: partially initialized module cv2 has no attribute _registerMatType (most likely due to a circular import)
错误应该是是版本问题。解决:
先卸载原来的opencv。
pip uninstall opencv-python
重新安装:
pip install "opencv-python-headless<4.3"
问题报错详情:
AttributeError: partially initialized module cv2 has no attribute _registerMatType (most likely due to a circular import)
错误应该是是版本问题。解决:
先卸载原来的opencv。
pip uninstall opencv-python
重新安装:
pip install "opencv-python-headless<4.3"