AttributeError: module 'cv2' has no attribute 'DestroyAllWindows'
时间: 2023-09-03 22:09:12 浏览: 285
求解报错:AttributeError:module ‘os’ has no attribute ‘exit’
AttributeError: module 'cv2' has no attribute 'DestroyAllWindows'错误是由于cv2模块中没有DestroyAllWindows方法引起的。根据引用中的代码,可以看出该错误是由于在使用cv2.destroyALLwindows()方法时出现的。正确的方法是使用cv2.destroyAllWindows()方法来关闭所有打开的窗口。所以,您需要将cv2.destroyALLwindows()改为cv2.destroyAllWindows()。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [AttributeError: module ‘cv2.cv2‘ has no attribute ‘destroyALLwindows](https://blog.csdn.net/weixin_58097161/article/details/118728397)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [AttributeError: module ‘cv2.cv2‘ has no attribute ‘destroyALLWindows](https://blog.csdn.net/singlesmile/article/details/119752916)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [无需降级scipy的情况下解决AttributeError: module ‘scipy.misc’ has no attribute ‘imread’,imresize...](https://download.csdn.net/download/weixin_38701640/13745210)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文