NassimeBejaia commited on
Commit
cf747f8
1 Parent(s): b648f26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -167,9 +167,11 @@ def process_image(selected_image):
167
  adaptive_threshold = filters.threshold_local(gray_image, block_size=35, offset=10)
168
 
169
  binary_adaptive = gray_image_array > adaptive_threshold
 
 
170
 
171
  # Apply OTSU's thresholding
172
- _, thresh = cv2.threshold(binary_adaptive, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)
173
 
174
  # kernel = get_dynamic_kernel(thresh.shape[0])
175
  # kernel = np.ones((5, 1), np.uint8)
 
167
  adaptive_threshold = filters.threshold_local(gray_image, block_size=35, offset=10)
168
 
169
  binary_adaptive = gray_image_array > adaptive_threshold
170
+
171
+ thresh = binary_adaptive
172
 
173
  # Apply OTSU's thresholding
174
+ # _, thresh = cv2.threshold(binary_adaptive, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)
175
 
176
  # kernel = get_dynamic_kernel(thresh.shape[0])
177
  # kernel = np.ones((5, 1), np.uint8)