Ask Your Question

manrajsingh's profile - activity

2019-09-04 11:30:01 -0600 received badge  Notable Question (source)
2018-05-14 03:34:27 -0600 received badge  Popular Question (source)
2016-04-13 11:44:27 -0600 received badge  Enthusiast
2016-04-01 06:38:20 -0600 commented answer Cropping minAreaRect from image

Sure, I'll try it out on some more real world cases and if I find it is really robust, I'll issue a PR. :D

2016-04-01 06:10:11 -0600 received badge  Scholar (source)
2016-04-01 06:10:08 -0600 received badge  Supporter (source)
2016-04-01 05:01:54 -0600 commented answer Cropping minAreaRect from image

Hey! :) Thanks for the pointer. I was able to extract it after some manipulations. Would love to have it as an inbuilt function as it did require finding height and width for cropping. Sadly boundingRect() didn't work for me in this case. Thank you once again. I guess you can update your answer so that I can mark it as correct and upvote it. :)

2016-04-01 03:07:36 -0600 commented answer Cropping minAreaRect from image

I believe what you want to say is get angle from the contour using minAreaRect. I'm already getting that. Third parameter here is angle. ((196.22874450683594, 149.16806030273438), (194.9783935546875, 59.012847900390625), -77.98100280761719) What I want to know is how to crop the area around this.

2016-04-01 01:14:00 -0600 received badge  Organizer (source)
2016-04-01 00:49:23 -0600 asked a question 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