NassimeBejaia commited on
Commit
9462bf0
1 Parent(s): 258a6ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -174,7 +174,7 @@ def process_image(selected_image):
174
  # Example: setting offset to a small fraction of the global mean intensity.
175
  offset = np.mean(gray_image) * 0.05
176
 
177
- adaptive_threshold = filters.threshold_local(gray_image, block_size, offset, method='mean')
178
 
179
  binary_adaptive = gray_image > adaptive_threshold
180
 
 
174
  # Example: setting offset to a small fraction of the global mean intensity.
175
  offset = np.mean(gray_image) * 0.05
176
 
177
+ adaptive_threshold = filters.threshold_local(gray_image, block_size, offset=offset, method='mean')
178
 
179
  binary_adaptive = gray_image > adaptive_threshold
180