OpenCV 2.4 VideoCapture not working on Windows

后端 未结 9 679
余生分开走
余生分开走 2020-11-22 15:11

I\'m using Python bindings to OpenCV 2.4 installed with following instructions.

My problem is similar to this one, but I need Windows machine solution.

Probl

9条回答
  •  无人及你
    2020-11-22 16:00

    Add C:\OpenCV\3rdparty\ffmpeg\ to the Windows PATH environment variable or copy opencv_ffmpeg.dll from that directory to C:\Python27\ or to a directory that is in the PATH. Alternatively, use the OpenCV binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv.

    Renaming the opencv_ffmpeg.dll file may also be necessary.

    For OpenCV version X.Y.Z
    opencv_ffmpeg.dll ==> opencv_ffmpegXYZ.dll

    For 64-bit OpenCV version X.Y.Z
    opencv_ffmpeg.dll ==> opencv_ffmpegXYZ_64.dll

提交回复
热议问题