Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. import numpy as np
  2. import cv2
  3. cap = cv2.VideoCapture('vids/street.MOV')
  4. while(cap.isOpened()):
  5.     ret, frame = cap.read()
  6.     gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
  7.     cv2.imshow('frame',gray)
  8.     if cv2.waitKey(1) & 0xFF == ord('q'):
  9.         break
  10. cap.release()
  11. cv2.destroyAllWindows()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement