Ask Your Question

How to Crop and save separately the bounded region? [closed]

asked 2016-11-17 01:39:52 -0600

KirtiSwagat gravatar image

updated 2016-11-17 02:11:48 -0600

berak gravatar image

result_a.jpg here is my processed Image. I want to crop the bounded region and save the cropped area. Specially I want to crop the the Numbers for Digit Recognition Process. Please suggest how to do with OpenCv and C++.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by KirtiSwagat
close date 2016-11-17 22:57:31.809894

1 answer

Sort by ยป oldest newest most voted

answered 2016-11-17 05:51:16 -0600

essamzaky gravatar image

if OrgMat is the orginal image matrix you can do the follwoing

Rect ROIRect (...) // fill your regions coordinates here
Mat ROIMat = OrgMat(ROIRect);

do the previous steps for all regions you got

edit flag offensive delete link more


Thank you very much. I have successfully Implemented the same..

KirtiSwagat gravatar imageKirtiSwagat ( 2016-11-17 22:57:06 -0600 )edit

Question Tools

1 follower


Asked: 2016-11-17 01:39:52 -0600

Seen: 318 times

Last updated: Nov 17 '16