Created
July 1, 2014 02:58
-
-
Save arthurbenemann/cda73c94b63f99377d1d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| v = cv2.VideoCapture('http://10.5.5.9:8080/live/amba.m3u8') | |
| # v = cv2.VideoCapture('http://10.5.5.9:8080/live/aaba.m3u8') | |
| i = 0 | |
| while True: | |
| v.grab() | |
| if i > 10: | |
| i = 0 | |
| gotNewFrame, frame = v.retrieve() | |
| if gotNewFrame: | |
| cv2.imshow('frame', frame) | |
| i = i + 1 | |
| ch = 0xFF & cv2.waitKey(5) | |
| if ch == 27: | |
| break | |
| cv2.destroyAllWindows() | |
| v.release() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment