import cv2
import numpy as np


capture = cv2.VideoCapture("test.avi")

while capture.isOpened():
    ret, fram = capture.read()
    cv2.imshow("inter", frame=ret)
    if cv2.waitKey(40) == 27:
        break
cv2.destroyAllWindows()
capture.release()
