Traceback (most recent call last):
File "test.py", line 75, in <module>
cv2.destoryAllWindows()
AttributeError: module 'cv2' has no attribute 'destoryAllWindows'
解决:单词拼写错误
----> cv2.destroyAllWindows()
----> destroy 不是 destory
博客展示了OpenCV中拼写错误的解决案例,指出cv2.destroyAllWindows()里存在拼写错误,正确的是destroy而非destory,体现了在使用Python和OpenCV时需注意代码拼写准确性。
Traceback (most recent call last):
File "test.py", line 75, in <module>
cv2.destoryAllWindows()
AttributeError: module 'cv2' has no attribute 'destoryAllWindows'
解决:单词拼写错误
----> cv2.destroyAllWindows()
----> destroy 不是 destory
1356
2万+

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