Tuesday, May 23, 2017

OpenCV 3.2 and Dlib 19.4 Packages Now Available from Conda-Forge

Anaconda is an asset for us Machine Learning enthusiasts. Not only does it have the ability to create fully isolated Python environments, its pre-built packages for many operating systems and architectures helps you to spend less time setting up, and more time doing actual machine learning stuff.

In some scenarios, to get some Python packages to work in certain environments, getting them from Anaconda was the only way that worked. If you tried installing Dlib or OpenCV 3 on Windows 64-Bit, then you know the effort it takes to get them setup, if it wasn't for Anaconda.

OpenCV and Dlib working perfectly together, thanks to Conda
OpenCV and Dlib working perfectly together, thanks to Conda

If you check my posts on Installing Dlib on Anaconda Python on Windows, and Installing OpenCV 3 on Anaconda Python 3.5 on Windows, you know how easy it is to use conda to install them on Python 3.5 64-Bit on Windows.

But there was a catch: The Anaconda registry only had OpenCV 3.1 and Dlib 19.0 - not the latest versions.


Checking the change-logs for OpenCV 3.2, and Dlib 19.4, we were missing quite a lot of features and optimizations.

But, not anymore!

Conda-Forge has now added the conda packages for OpenCV 3.2 and Dlib 19.4.

These contain the packages for Windows, Linux, and Mac OS, for Python 2.7, 3.5, and 3.6, for 32-Bit and 64-Bit.

To install OpenCV 3.2, just run,
 conda install -c conda-forge opencv=3.2.0  

and, to install Dlib 19.4, just run,
 conda install -c conda-forge dlib=19.4  

So, now we have access to the latest versions of OpenCV and Dlib in almost any of the environments we want.

No comments:

Post a Comment