vuba.fit_rectangles
- vuba.fit_rectangles(contours, rotate=False)[source]
Fit bounding boxes to contour(s).
- Parameters
contours (ndarray or list) – Contour(s) to fit circles to.
rotate (bool) – Whether to fit rotated bounding boxes, default is False.
- Returns
rectangles – An array or list corresponding to dimensions to bounding boxes fitted.
- Return type
ndarray or list