I'm trying to install OpenCV for Python through Anaconda, but I can't seem to figure this out.
I tried
conda install opencv
conda install cv2
I also tried searching
conda search cv
No cigar. I ran across this which lists opencv
as an included package:
http://docs.continuum.io/anaconda/pkgs.html
After running conda info
I noticed my version is 3.4.1, but I couldn't seem to find any information about this version online. I'm pretty confused about this.
Am I missing something pretty obvious here? If opencv
was available for a previous version of Anaconda, then why wouldn't it be available for the newer version? And why does that link only show me documentation for version 1.9.2?
I just wanted to update the brilliant answer by Atlas7.
If you're using OpenCV 3, change the test code to the following:
This works for me on Windows
conda install -c conda-forge opencv
conda install -c menpo opencv3
I entered the following command in the command prompt:
This worked for me!!!
I think the easiest option that should work cross-platform and across various versions of Anaconda is
Like others, I had issues with Python 3.5.1/Anaconda 2.4.0 on OS X 10.11..
But I found a compatible package here:
https://anaconda.org/menpo/opencv3
It can be installed via the command line like so:
Worked like a charm. First time I've ever gotten OpenCV to work on 3.x!
An easy and straight forward solution is to install python3.5 first before installing opencv3
followed by