Update README.md
Browse files
README.md
CHANGED
@@ -82,7 +82,7 @@ def detect_bboxes(masks: np.ndarray):
|
|
82 |
)
|
83 |
for contour in list(contours):
|
84 |
if len(list(contour)) >= 4:
|
85 |
-
# smallest rectangle containing all points
|
86 |
x, y, width, height = cv2.boundingRect(contour)
|
87 |
bounding_box = [x, y, x + width, y + height]
|
88 |
detected_blocks.append(bounding_box)
|
|
|
82 |
)
|
83 |
for contour in list(contours):
|
84 |
if len(list(contour)) >= 4:
|
85 |
+
# smallest rectangle containing all points
|
86 |
x, y, width, height = cv2.boundingRect(contour)
|
87 |
bounding_box = [x, y, x + width, y + height]
|
88 |
detected_blocks.append(bounding_box)
|