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)
CodePudding user response:
destroy window (notice the singular tense) destroys a specific window by title argument. either change to cv2.destroyAllWindows()
or cv2.destroyWindow('hahaha')