Opencv detect solid rectangle. Find the approximate contour for each of the contours.