Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cropping minAreaRect from image

I am trying to extract an object that is inclined/oriented at an angle in the image. I have drawn bounding box around it and able to crop area using command img[y:y+h,x:x+w] where x ,y, h and w are points, height and width . However, this is not possible with minAreaRect() as returned value has angle parameter. Is there a way or in built function to extract this rectangle? I'm able to draw that rectangle around it.

image description

Cropping minAreaRect from image

I am trying to extract an object that is inclined/oriented at an angle in the image. I have drawn bounding box around it and able to crop area using command img[y:y+h,x:x+w] where x ,y, h and w are points, height and width . However, this is not possible with minAreaRect() as returned value has angle parameter. Is there a way or in built function to extract this rectangle? I'm able to draw that rectangle around it.

image description