类型错误:destroyWindow() 缺少必需参数“winname”; (位置 1)
编程运行正确,但之后显示错误:
Traceback (most recent call last):
File "D:/python programs/unwired learning/face detection/2.py", line 19, in <module>
cv2.destroyWindow()
TypeError: destroyWindow() missing required argument 'winname' (pos 1)
the programming is running correctly but after that it show and error which says that:
Traceback (most recent call last):
File "D:/python programs/unwired learning/face detection/2.py", line 19, in <module>
cv2.destroyWindow()
TypeError: destroyWindow() missing required argument 'winname' (pos 1)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
destroy window(注意单数时态)通过标题参数销毁特定窗口。更改为
cv2.destroyAllWindows()
或cv2.destroyWindow('hahaha')
destroy window (notice the singular tense) destroys a specific window by title argument. either change to
cv2.destroyAllWindows()
orcv2.destroyWindow('hahaha')