Advertisement
Guest User

Untitled

a guest
Oct 16th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import numpy as np
  2. import cv2
  3.  
  4. cap = cv2.VideoCapture(0)
  5.  
  6. while(True):
  7. ret, frame = cap.read()
  8. cv2.imshow('frame', frame)
  9.  
  10. if cv2.waitKey(1) & 0xFF == ord('q'):
  11. break
  12.  
  13. cap.release()
  14. cv2.destroyAllWindows()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement