Home > other >  [for] want joint a group of some external rectangular (Python)
[for] want joint a group of some external rectangular (Python)

Time:10-04

Now get a group of two-dimensional point as shown in the figure below:


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,
  • Related