Created
March 8, 2021 08:55
-
-
Save yokeshrana/793312db83eb7bd029feeeedabc9abaa to your computer and use it in GitHub Desktop.
Reading Video using Opencv
This file contains 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 | |
vid = cv2.VideoCapture("Resources/test_video.mp4") | |
#since video is stream of pictures we have to use something else here | |
while True: | |
success,img=vid.read() | |
if success: | |
cv2.imshow("Video", img) | |
if cv2.waitKey(1) & 0xFF == ord('q'): | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment