AttributeError: module 'cv2' has no attribute 'destroAllWindows'
时间: 2023-10-02 13:06:32 浏览: 160
Python在Geany中调用matplotlib绘图时出现attributeerror错误
根据引用的错误信息,"AttributeError: module 'cv2' has no attribute 'destoryAllWindows'"表示在cv2模块中找不到'destoryAllWindows'这个属性。这个错误通常是因为拼写错误或版本不匹配导致的。为了解决这个错误,你可以检查一下你所使用的OpenCV版本是否支持'destoryAllWindows'属性。如果不支持,你可以尝试更新OpenCV版本或者使用其他方法来关闭窗口。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [OpenCV报错 : AttributeError: module ‘cv2‘ has no attribute ‘destoryAllWindows](https://blog.csdn.net/bbjbbjbbj/article/details/127517024)[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* [无需降级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%"]
- *3* [“AttributeError: module ‘cv2‘ has no attribute ‘SIFT_create‘ ](https://blog.csdn.net/weixin_49076390/article/details/121228821)[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 ]
阅读全文