title: Find largest rectangle inside polygon - Python
body: <p>Is there an easy way to the maximum upright rectangle that fits inside a shape? I'm using OpenCV.</p>
  
  <p><a href="http://docs.opencv.org/master/dd/d49/tutorial_py_contour_features.html#gsc.tab=0" rel="nofollow noreferrer">http://docs.opencv.org/master/dd/d49/tutorial_py_contour_features.html#gsc.tab=0</a></p>
  
  <p><a href="https://stackoverflow.com/questions/21410449/how-do-i-crop-to-largest-interior-bounding-box-in-opencv/21479072#21479072">How do I crop to largest interior bounding box in OpenCV?</a></p>
  
  <p><a href="https://i.stack.imgur.com/Pyi20.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pyi20.png" alt="enter image description here"></a></p>