camera_read.py 194 B

123456789101112
  1. #!/usr/bin/env python3
  2. import cv2
  3. cap = cv2.VideoCapture(0)
  4. while True:
  5. success, frame = cap.read()
  6. cv2.imshow("aa", frame)
  7. if (cv2.waitKey(1) & 0xFF == ord('q')):
  8. break