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.

Build Deeper: Deep Learning Beginners' Guide is the ultimate guide for anyone taking their first step into Deep Learning.

Get your copy now!

2 comments:

  1. Hi Thimira,

    Thanks for your tutorial.
    I am struggling to install cv2. This is the error I am getting.
    CondaVerificationError: The package for qt located at C:\ProgramData\Anaconda2\pkgs\qt-5.6.2-vc9_1
    appears to be corrupted. The path 'Library/translations/qt_gl.qm'
    specified in the package manifest cannot be found.

    Can't seem to get cv2 installed, how can I troubleshoot this?

    ReplyDelete
  2. make sure you install anaconda3 ver 4.4, newer versions are unable to install dlib. Use the following to install the latest opencv and dlib:
    conda install -c conda-forge opencv
    conda install -c conda-forge dlib

    ReplyDelete