
Using the OpenCV library cv2. MinAreaRect function get external rectangle as shown in the figure below:

The rectangle is a minimum external rectangle area, but need to get external rectangle is to be able to joint the two-dimensional point of external rectangle, as shown in red frame rectangle in the diagram below:

Through what way can only be able to fit more red external rectangle, rather than simple with minimum external rectangle area, hope god can help, provide some solution,