Update app.py
Browse files
app.py
CHANGED
|
@@ -56,8 +56,8 @@ def remove_watermark(image_path,file_type="",saved_path=""):
|
|
| 56 |
|
| 57 |
# Create the mask for the watermark area
|
| 58 |
# text_mask_path = 'watermark_mask.png'
|
| 59 |
-
|
| 60 |
-
text_mask_path ='./mask/mask_2.png'
|
| 61 |
cleaned_image = remove_watermark_area(watermark_area, text_mask_path)
|
| 62 |
# cv2.imwrite('cleaned_watermark.jpg', cleaned_image)
|
| 63 |
# Paste back the cleaned watermark on the original image
|
|
|
|
| 56 |
|
| 57 |
# Create the mask for the watermark area
|
| 58 |
# text_mask_path = 'watermark_mask.png'
|
| 59 |
+
text_mask_path ='./mask/mask_1.png'
|
| 60 |
+
# text_mask_path ='./mask/mask_2.png'
|
| 61 |
cleaned_image = remove_watermark_area(watermark_area, text_mask_path)
|
| 62 |
# cv2.imwrite('cleaned_watermark.jpg', cleaned_image)
|
| 63 |
# Paste back the cleaned watermark on the original image
|