Alx09

Untitled

Nov 25th, 2019
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import numpy as np
  2. import cv2
  3.  
  4. cam = cv2.VideoCapture(0)
  5. a = cam.isOpened()
  6. while a :
  7. ret, frame = cam.read()
  8. if ret == True :
  9. frame = cv2.flip(frame, 1)
  10. cv2.imshow('Camera mea', frame)
  11. if cv2.waitKey(3) & 0xFF == 27:
  12. a = False
  13.  
  14. cam.release()
  15. cv2.destroyAllWindows()
Advertisement
Add Comment
Please, Sign In to add comment