NassimeBejaia commited on
Commit
33c64b7
1 Parent(s): 3c1fffc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -161,9 +161,9 @@ def process_image(selected_image):
161
  # blurred_img = cv2.GaussianBlur(gray_image, (3, 3), 0)
162
 
163
  # Apply OTSU's thresholding
164
- _, thresh = cv2.threshold(gray_image, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)
165
 
166
-
167
  # kernel = get_dynamic_kernel(thresh.shape[0])
168
  # kernel = np.ones((5, 1), np.uint8)
169
  # thresh = cv2.morphologyEx(thresh, cv2.MORPH_CLOSE, kernel, iterations=2)
 
161
  # blurred_img = cv2.GaussianBlur(gray_image, (3, 3), 0)
162
 
163
  # Apply OTSU's thresholding
164
+ # _, thresh = cv2.threshold(gray_image, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)
165
 
166
+ thresh = gray_image
167
  # kernel = get_dynamic_kernel(thresh.shape[0])
168
  # kernel = np.ones((5, 1), np.uint8)
169
  # thresh = cv2.morphologyEx(thresh, cv2.MORPH_CLOSE, kernel, iterations=2)