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.