First time here? Check out the FAQ!
answered 2016-11-03 09:39:38 -0600
you can use findcontours and boundingRect as described in the following sample
Creating Bounding boxes and circles for contours