Cara Menghentikan Program CV2 Python
# at the end of the code, in the loop
while True:
# ... (code here)
k = cv2.waitkey(1)
if k == 27:
break
# at the end of the code, outside of the while loop
cv2.destroyAllWindows()
# at the end of the code, in the loop
while True:
# ... (code here)
k = cv2.waitkey(1)
if k == 27:
break
# at the end of the code, outside of the while loop
cv2.destroyAllWindows()
# YOU MUST CLICK ON THE WINDOW AND PRESS "ESC" KEY TO EXIT THE WINDOW