Tutorial: Detection / recognition of multiple rectangles and extracting with OpenCV This tutorial will be focused on being able to take a picture and extract the rectangles in the image that are above a certain size: I am using OpenCV 2.4.2 on Microsoft Visual Express 2008 but it should work with other version as well. Thanks to: opencv-code.com for their helpful guides