Skip to content

Instantly share code, notes, and snippets.

@easonlai
Created February 13, 2021 09:59
Show Gist options
  • Select an option

  • Save easonlai/dfcf5e483bcea6b2426aecd57b5c87db to your computer and use it in GitHub Desktop.

Select an option

Save easonlai/dfcf5e483bcea6b2426aecd57b5c87db to your computer and use it in GitHub Desktop.
k = cv2.waitKey(1)
if k%256 == 27:
# ESC pressed
print("Escape hit, closing...")
break
# Release camera
cam.release()
# Close all camera windows
cv2.destroyAllWindows()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment