fix(pre_commit): 🎨 auto format pre-commit hooks
This commit is contained in:
1 parent
511f0ab9b2
commit
b3b745508b
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user