运行控制台出现:AttributeError: module ‘cv2.dnn’ has no attribute ‘getUnconnectedOutLayersNames’
英文意思是cv2.dnn模块没有这个getUnconnectedOutLayersNames属性(方法)
解决方法:
pip3 install opencv-python==4.4.0.46
本文介绍如何修复在运行OpenCV时遇到的AttributeError,即cv2.dnn模块缺少getUnconnectedOutLayersNames方法。解决方案是通过pip安装特定版本的opencv-python(4.4.0.46)。
运行控制台出现:AttributeError: module ‘cv2.dnn’ has no attribute ‘getUnconnectedOutLayersNames’
英文意思是cv2.dnn模块没有这个getUnconnectedOutLayersNames属性(方法)
解决方法:
pip3 install opencv-python==4.4.0.46

被折叠的 条评论
为什么被折叠?
