First time here? Check out the FAQ!
Hi there! Please sign in
help
faq
tags
users
badges
This forum is disabled, please visit
https://forum.opencv.org
ALL
UNANSWERED
Ask Your Question
Revision history [
back
]
1
initial version
answered
2016-02-11 06:45:07 -0600
StevenPuttemans
20029
●
16
●
82
●
207
http://stevenputtemans...
Simply said
Use
findContours
on the binary image. It will return blob locations.
Then use
boundingRect
to get the rectangle surrounding the blob
Now loop over all the rectangles AND use the
rectangle
function to draw them
Good luck!
Copyright
OpenCV foundation
, 2012-2018. Content on this site is licensed under a
Creative Commons Attribution Share Alike 3.0
license.
Powered by Askbot version 0.10.2
Please note: OpenCV answers requires javascript to work properly, please enable javascript in your browser,
here is how