Spaces:
Runtime error
Runtime error
NassimeBejaia
commited on
Commit
•
a59ff1a
1
Parent(s):
cf747f8
Update app.py
Browse files
app.py
CHANGED
@@ -166,7 +166,7 @@ def process_image(selected_image):
|
|
166 |
|
167 |
adaptive_threshold = filters.threshold_local(gray_image, block_size=35, offset=10)
|
168 |
|
169 |
-
binary_adaptive =
|
170 |
|
171 |
thresh = binary_adaptive
|
172 |
|
|
|
166 |
|
167 |
adaptive_threshold = filters.threshold_local(gray_image, block_size=35, offset=10)
|
168 |
|
169 |
+
binary_adaptive = gray_image > adaptive_threshold
|
170 |
|
171 |
thresh = binary_adaptive
|
172 |
|