Installing the OpenCV library

OpenCV is an open source library for developing computer vision applications. It can be used in both academic and commercial applications under a BSD license that allows you to freely use, distribute, and adapt it. This recipe will show you how to install the library on your machine.

Getting ready

When you visit the OpenCV official website at, you will find the latest release of the library, the online documentation, and many other useful resources about OpenCV.

How to do it...

From the OpenCV website, go to the Download page that corresponds to the platform of your choice (Linux/Unix/Mac or Windows). From there you will be able to download the OpenCV package. You will then uncompress ...

Get OpenCV 2 Computer Vision Application Programming Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.