Ask Your Question
0

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

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

KirtiSwagat gravatar image

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

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
2

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

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);
imwrite("c:\\roiImage.bmp",ROIMat);

do the previous steps for all regions you got

edit flag offensive delete link more

Comments

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

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

Question Tools

1 follower

Stats

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

Seen: 147 times

Last updated: Nov 17 '16