Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Put this outside of whiile loop condition block.

capture.release()
cv2.destroyAllWindows()

Put this outside of whiile while loop condition block.

capture.release()
cv2.destroyAllWindows()

Put this outside of while loop condition block.

capture.release()
      k = cv2.waitKey(1)
           if k == ord('q'):
                break
           elif k == 27:
                break

video_capture.release()
cv2.destroyAllWindows()

Put this outside of while loop condition block.

      k = cv2.waitKey(1)
           if k == ord('q'):
                break
           elif k == 27:
                break

video_capture.release()
cv2.destroyAllWindows()