title: How to find the largest area rectangle inscribing a set of points/polygon?
body: <p>I am working in OpenCV/Python and I came up with this problem. I have used cv2.minAreaRect() to get the Bounding Box surrounding a set of points. Is there any other function/generic algorithm that can give me the largest rectangle inscribed within a polygon (set of points)? I have a set of points of the polygon and the function should be able to return 4 points of the largest rectangle inscribing the input points.</p>
  
  <p>Here is an example of a similar kind of problem
  <img src="https://i.stack.imgur.com/7EDVD.png" alt=""></p>
  
  <p>Thanks. Any help is highly appreciated.</p>