Monday, May 20, 2019

Installing OpenCV got easier

OpenCV is undoubtedly the unmatched de facto standard library for computer vision. Not only does it provide a near complete set of vision algorithms, the set of primitive graphics functions it provides to manipulate images makes it essential to many of our projects.

OpenCV being used when building a Keras CNN model
OpenCV being used when building a Keras CNN model

Installing the latest version of OpenCV used to be hard. The pre-built binaries available was never up to the tasks we wanted. Compiling from source was an option, but was tedious and time consuming.

Then, we got the anaconda versions of OpenCV from Conda-Forge, which we could simply install using,

conda install -c conda-forge opencv

Now, things are going to be simpler, as Anaconda native OpenCV packages are now available.



The Anaconda Package Lists (https://docs.anaconda.com/anaconda/packages/pkg-docs/) now list OpenCV 3.4.2 package for Windows, Linux, and MacOS, for Python 3.7, 3.6, and 2.7.

Anaconda now has native OpenCV packages
Anaconda now has native OpenCV packages

All you need to do to install is to run

conda install opencv

Like any conda package, conda will resolve all the dependencies for you.
Happy OpenCV programming...




Build Deeper: The Path to Deep Learning

Learn the bleeding edge of AI in the most practical way: By getting hands-on with Python, TensorFlow, Keras, and OpenCV. Go a little deeper...

Get your copy now!

No comments:

Post a Comment