I have seen this question pop up several places, but the only time I have seen it answered is through Visual Studio using cpp or on a Linux OS.
I am trying to add contribution modules to OpenCV and for use with Python-Anaconda in Spyder. Specifically, I am looking to add the bgsegm module. I have tried several different ways but with no success.
I have downloaded the current master branches of OpenCV and Opencv_contrib. I put them in a new folder I named opencv-3.0. In opencv I create a new folder named build. I ran command prompt in that folder and used the command:
cmake -D OPENCV_EXTRA_MODULES_PATH= ..\..\opencv_contrib\modules
which returns
the source directory "C:/opencv-3.0/opencv_contrib/modules" does not appear to contain CMakeLists.txt
What am I missing on the command line? make -j5? I dont even get the option to run it because of the error.
Alternatively when running from the cmake GUI, I'm not sure what to use as my generator. I do not have Visual Studio and that is what everyone seems to use. Even if I had VS I want to be able to use this in python and Sypder. Suggestions?
OPENCV_EXTRA_MODULES_PATH
and..\..\opencv_contrib\modules
means that you assign empty value for variable and attempt to use given path as source. Correct call:cmake -D OPENCV_EXTRA_MODULES_PATH=..\..\opencv_contrib\modules ..
– Tsyvarevcmake must be run ...
looks selfexplanatory. You may also google it. If you will failed to resolve your problem, formulate it in the question post itself, not in the comments: On Stack Overflow comments are used only for clarifiing posts(questions, answers) or for request for clarification. – Tsyvarev