Notebook Demonstration of OpenCV's cv2 API for manipulating images, creating contours, simplifying those contours and creating various bounding structures. I started with Abid Rahman's Contours 1 and 2 blog posts. Those posts do not directly give you all that you need to run them. By virtue of being an IPython Notebook, these are the actual command that worked for me. You will need wget, numpy, matplotlib, OpenCV and shapely. -kurt schwehr 2013-Jan-31