Error opening file (/home/vaibhav/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:553) in openCV

后端 未结 8 568
挽巷
挽巷 2020-12-30 15:10

I am using OpenCV to display a video my code is as

#include
#include
#include
#include

        
8条回答
  •  离开以前
    2020-12-30 15:59

    If using absolute path, add double slash to path as below.

    data = cv2.VideoCapture('C:\Data\MyVideo.mp4')
    
    data.isOpened()
    

    Out[11]: False

    data = cv2.VideoCapture('C:\\\Data\\\MyVideo.mp4')
    
    data.isOpened()
    

    Out[13]: True

提交回复
热议问题