Popular Posts

Jun 25, 2020

Play Video -Python(Opencv)


import cv2

import numpy as np



cap = cv2.VideoCapture('vtest.avi')

while cap.isOpened():

    ret, frame = cap.read()

    cv2.imshow("inter", frame)

#press esc to quit

    if cv2.waitKey(40)==27:

        break



cv2.destroyAllWindows()

cap.release()

No comments:

Post a Comment