Created
February 13, 2021 09:59
-
-
Save easonlai/dfcf5e483bcea6b2426aecd57b5c87db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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