emilios commited on
Commit
3ba8af6
·
verified ·
1 Parent(s): 68f192d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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