How can i read an avi file using python opencv ? The following code below does not work
import numpy as np
import cv2
import os
cap = cv2.VideoCapture('/home/ast/datasets/ewap/seq_eth/seq_eth.avi')
ret, frame = cap.read()
print(ret)
print(np.shape(frame))
I get output
False
()