Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import cv2
- cam = cv2.VideoCapture(0)
- a = cam.isOpened()
- while a :
- ret, frame = cam.read()
- if ret == True :
- frame = cv2.flip(frame, 1)
- cv2.imshow('Camera mea', frame)
- if cv2.waitKey(3) & 0xFF == 27:
- a = False
- cam.release()
- cv2.destroyAllWindows()
Advertisement
Add Comment
Please, Sign In to add comment