Problem with MOG2 OCL test
Hi, I've downloaded and compiled OpenCV 3.3 source from github. I'm trying to run the MOG2 OpenCL test (opencv_perf_video), but I get the following error:
opencv\sources\modules\video\perf\opencl\perf_bgfg_mog2.cpp(67): error: Value of: cap.isOpened()
Actual: false
Expected: true
I haven't modified the perf_bgfg_mog2.cpp file, just compiled it as-is. Could someone help me with troubleshooting this issue?
Many thanks
"I haven't modified the perf_bgfg_mog2.cpp file," -- you're not expected to do that, all fine there ;)
the test tries to load 2 video files, which are not present on your opencv install by default, you would need the https://github.com/opencv/opencv_extra repo for this.
I'm running it with an AVI file, just as I did in OpenCV3.0. Here's the command:
I do have those AVI files, as I was using them in OpenCV3.0
so, you can no more run the same test successfully, as in 3.0 ?
testcode was slightly modified (see last blame at bottom)
Exactly, it works flawlessly in 3.0.