Extract and save only contour area android Opencv

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

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 -0600 )edit

can you please give me sample code?

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

Have u solved the problem?? @oshitha

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