Why would video files not open in OpenCV (both C & C++ APIs)?

后端 未结 2 1672
春和景丽
春和景丽 2021-01-28 02:53

I am swapping from EmguCV to OpenCV so that I can try some of the OpenCV functions that are not yet wrapped by EmguCV. However I\'m failing to load my simple test video file, wh

2条回答
  •  野性不改
    2021-01-28 03:41

    umm..if emgu and your project use the same version, just copy the emgu's opencv dlls(and all other dlls) to your folder..maybe it will work.

    one reason why that maybe is because opencv is not built with ffmpeg (or you are missing them in your folder, just copy them over then it also might start to work). opencv rely on ffmpeg to do almost all of the decoding. opencv ffmpeg/s are probably built in release mode so if your project is in debug mode it probably wont work either.

提交回复
热议问题