Created
November 21, 2016 16:11
-
-
Save Nsk1107/d8ba93b20cdc40d4eaa2e0dffd1e79a8 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
| import cv2 | |
| import numpy as np | |
| import Support | |
| cam=cv2.VideoCapture(0) | |
| def getFrame(): | |
| while 1: | |
| _,frm=cam.read() | |
| #cv2.imshow('frm',frm) | |
| Support.frame=frm | |
| if cv2.waitKey(1) & 0xFF == ord('q'): | |
| cv2.destroyAllWindows() | |
| break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment