2020-02-26 07:26:48 -0600 | received badge | ● Notable Question (source) |
2019-05-05 11:16:58 -0600 | received badge | ● Popular Question (source) |
2017-08-14 03:00:42 -0600 | received badge | ● Student (source) |
2017-07-25 12:37:31 -0600 | received badge | ● Editor (source) |
2017-07-25 00:44:50 -0600 | asked a question | Robustly crop rotated bounding box on photos I'm trying to extract the rotated bounding box of contours robustly. I would like to take an image, find the largest contour, get its rotated bounding box, rotate the image to make the bounding box vertical, and crop to size. For a demonstration, here is an original image linked in the following code. I would like to end up with that shoe rotated to vertical and cropped to size. The following code from this answer seems to work on simple images like opencv lines, etc., but not on photos. Ends up with this, which is rotated correctly but cropped wrong: |