Compile OpenCV with anaconda python
Hello, I am trying to compile opencv with anaconda python support (I need to use opencv in python). The pre-built packages available from conda channels (e.g. intel or conda-forge) are not usable for me as I require to link the opencv with intel python distribution (installed via conda), with own custom compiled ffmpeg as well as I need cuda support.
I am using cmake-gui to configure opencv build environment. The problem I am facing is Cmake is unable to detect anaconda python on its own (given it is installed at the default conda installation path /home/user/minicaonda). If I manually add paths to anaconda as given at the following link the Python Libraries are still not detected. https://groups.google.com/a/continuum...
As a result cmake configure log shows that python2 & python3 are unavailable. If I run make as it is the cv2.so (or cv2.cpython*.so) is not built.
Can someone guide me on how to resolve this issue?
"as well as I need cuda support." -- not possible from opencv's python wrappers at all.
It's possible with Cython https://github.com/bafu/cv2cuda but I've also encountered the same problem as OP trying to build OCV with an Anaconda python.