First time here? Check out the FAQ!
answered 2016-04-19 19:47:49 -0600
You want the function boundingRect.
updated 2016-04-20 08:43:08 -0600
You want the function boundingRectImgproc.boundingRect().