編程運行正常,但之后它顯示和錯誤說:
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)
在此處輸入影像描述
uj5u.com熱心網友回復:
銷毀視窗(注意單數時態)通過標題引數銷毀特定視窗。更改為cv2.destroyAllWindows()或cv2.destroyWindow('hahaha')
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/439571.html
