Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ def inference(img):
|
|
9 |
#my_result = cv2.dilate(my_result,(1,1))
|
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 |
img_bw = 255*(cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) > 5).astype('uint8')
|
13 |
|
14 |
se1 = cv2.getStructuringElement(cv2.MORPH_RECT, (5,5))
|
@@ -30,6 +31,6 @@ iface = gradio.Interface(
|
|
30 |
outputs='image',
|
31 |
title='Hello World',
|
32 |
description='The simplest interface!',
|
33 |
-
examples=["llama.jpg"])
|
34 |
|
35 |
iface.launch()
|
|
|
9 |
#my_result = cv2.dilate(my_result,(1,1))
|
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 |
+
|
13 |
img_bw = 255*(cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) > 5).astype('uint8')
|
14 |
|
15 |
se1 = cv2.getStructuringElement(cv2.MORPH_RECT, (5,5))
|
|
|
31 |
outputs='image',
|
32 |
title='Hello World',
|
33 |
description='The simplest interface!',
|
34 |
+
examples=["llama.jpg", "dT4KW.png"])
|
35 |
|
36 |
iface.launch()
|