VideoCapture OpenCV 2.4.2 error in windows

后端 未结 5 1039
名媛妹妹
名媛妹妹 2020-12-10 07:38

I have a problem using VideoCapture class with OpenCV 2.4.2 under windows XP 32bits. It doesn\'t open any file or camera and fixing it\'s being a pain. Im using visual studi

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-10 08:13

    I also faced with this problem and solved it by correct the path of the function:

    VideoCapture cap(videoName);
    

    If the AVI file of videoName does't exist, it will be an error:

    (../../modules/highgui/src/cap_ffmpeg_impl.hpp:XXX)
    

    where XXX represents the line number.

提交回复
热议问题