Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import numpy as np
|
|
6 |
|
7 |
def inference(img):
|
8 |
out = cv2.erode(img,(15,15))
|
9 |
-
out = cv2.dilate(out,(
|
10 |
# https://scikit-image.org/docs/dev/api/skimage.morphology.html#skimage.morphology.remove_small_objects
|
11 |
# my_result = cv2.remove_small_objects(binarized.astype(bool), min_size=2, connectivity=2).astype(int)
|
12 |
|
|
|
6 |
|
7 |
def inference(img):
|
8 |
out = cv2.erode(img,(15,15))
|
9 |
+
out = cv2.dilate(out,(55,55))
|
10 |
# https://scikit-image.org/docs/dev/api/skimage.morphology.html#skimage.morphology.remove_small_objects
|
11 |
# my_result = cv2.remove_small_objects(binarized.astype(bool), min_size=2, connectivity=2).astype(int)
|
12 |
|