Extract and save only contour area android Opencv

asked 2014-09-26 20:27:06 -0500

Already I draw a contours. But I want to crop and save that contour area. How can do that?

edit retag flag offensive close merge delete

Comments

  • get the boundingRect) of a single contour, then Mat.submat() to crop it.
berak gravatar imageberak ( 2014-09-27 03:53:46 -0500 )edit

can you please give me sample code?

oshitha gravatar imageoshitha ( 2014-09-27 20:53:33 -0500 )edit

Have u solved the problem?? @oshitha

fayme007 gravatar imagefayme007 ( 2015-11-18 04:04:24 -0500 )edit