Skip to content

Instantly share code, notes, and snippets.

@Nsk1107
Created November 21, 2016 16:11
Show Gist options
  • Select an option

  • Save Nsk1107/d8ba93b20cdc40d4eaa2e0dffd1e79a8 to your computer and use it in GitHub Desktop.

Select an option

Save Nsk1107/d8ba93b20cdc40d4eaa2e0dffd1e79a8 to your computer and use it in GitHub Desktop.
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