1 | initial version |
ah, if you're starting from the colorblob sample, you're actually pretty close already ;)
you just take the boundingRect from your contour, extract the submat from your image, and imwrite that to sdcard.
don't forget the write permission!