fix(pre_commit): 🎨 auto format pre-commit hooks

This commit is contained in:
pre-commit-ci[bot] committed 2024-05-16 07:23:55 +00:00
1 parent 511f0ab9b2
commit b3b745508b
1 file changed
+1 -1
+1 -1
View File
@@ -120,7 +120,7 @@ def _mask_has_holes(mask: np.ndarray) -> bool:
def _mask_has_multiple_segments(mask: np.ndarray) -> bool:
if mask.size == 0:
return False
mask_uint8 = mask.astype(np.uint8)
mask_uint8 = mask.astype(np.uint8)
number_of_labels, _ = cv2.connectedComponents(mask_uint8, connectivity=4)
return number_of_labels > 2