Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

croping should be done by this method in C++, i got accurate croping image.

Rect roi(r.x, r.y, r.width, r.height);
Mat image_roi = image(roi);
image_roi.copyTo(cropimage);
imwrite("cropimage.jpg",image_roi);