Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,8 @@ def inference(img):
|
|
36 |
|
37 |
#denoise = restoration.denoise_tv_chambolle( out , weight=0.1)
|
38 |
#thresh = threshold_otsu(denoise)
|
39 |
-
thresh = threshold_otsu(gray)
|
|
|
40 |
#out = closing(denoise > thresh, square(2))
|
41 |
out =gray>thresh
|
42 |
|
|
|
36 |
|
37 |
#denoise = restoration.denoise_tv_chambolle( out , weight=0.1)
|
38 |
#thresh = threshold_otsu(denoise)
|
39 |
+
#thresh = threshold_otsu(gray)
|
40 |
+
thresh = 0.4
|
41 |
#out = closing(denoise > thresh, square(2))
|
42 |
out =gray>thresh
|
43 |
|