Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def compare_visual_changes(orig_img, edit_img, start_position):
|
|
| 44 |
blurred_diff = cv2.GaussianBlur(gray_diff, (5, 5), 0)
|
| 45 |
|
| 46 |
# Apply thresholding
|
| 47 |
-
_, thresh = cv2.threshold(blurred_diff,
|
| 48 |
|
| 49 |
# Morphological operations to clean noise
|
| 50 |
kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (5, 5))
|
|
|
|
| 44 |
blurred_diff = cv2.GaussianBlur(gray_diff, (5, 5), 0)
|
| 45 |
|
| 46 |
# Apply thresholding
|
| 47 |
+
_, thresh = cv2.threshold(blurred_diff, 70, 255, cv2.THRESH_BINARY)
|
| 48 |
|
| 49 |
# Morphological operations to clean noise
|
| 50 |
kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (5, 5))
|