Getting ready

For this recipe, ensure that you have installed the OpenCV 3.x Python API package and the matplotlib package.

Get OpenCV 3 Computer Vision with Python Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.