Successful resolution cv2.VideoCapture () always open a video file false returns of the problem

Successful resolution cv2.VideoCapture () always open a video file false returns of the problem

 

table of Contents

Solve the problem

Solution


 

 

Solve the problem

cv2.VideoCapture () open a video file problem
    vid = cv2.VideoCapture (video_path) # 0 parameter representative of the camera is turned on.
    print (vid.isOpened ())
path and functions are no problems, the result is always the single return false

 

 

Solution

Need to copy the site-packages \ cv2 following opencv_ffmpeg340_64.dll exe files to the current file directory can be

Guess you like

Origin blog.csdn.net/qq_41185868/article/details/80865936