OpenCV报错修复: AttributeError: module 'cv2.dnn' has no attribute 'DictValue'

报错:
AttributeError: module 'cv2.dnn' has no attribute 'DictValue'。

 

执行以下命令可以自动修复:

pip install opencv-fixer==0.2.5
python -c "from opencv_fixer import AutoFix; AutoFix()"

 

 

详细修复方式请参考:https://soulteary.com/2024/01/07/fix-opencv-dependency-errors-opencv-fixer.html

posted @ 2024-04-08 18:48  Shiyu_Huang  阅读(987)  评论(0编辑  收藏  举报