the problem of loading mov file in opencv 4

asked 2019-09-18 16:13:41 -0500

surfreta gravatar image

updated 2019-09-18 16:33:42 -0500

I am trying to load a video file, and get some statistics of this video file. can be viewed on the windows, in other words, it is not empty. But why the output is all 0.0 the code is

cap = cv.VideoCapture('C:\\Users\\dataset\\latest\\') 
print ("Video Properties:")
print("\t Framerate:",cap.get(cv.CAP_PROP_FPS))
print("\t Width: ", cap.get(cv.CAP_PROP_FRAME_WIDTH))

the output is

Framerate: 0.0
     Width:  0.0**
edit retag flag offensive close merge delete