Ask Your Question

Revision history [back]

I would try find contours + bounding rect. See this:

http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/bounding_rects_circles/bounding_rects_circles.html