Jan-01-2025, 11:55 AM
Hello,
Any solution to remove watermark image from pdf file using python
I tried using cv2.inpaint
It is just changing the colour.
import cv2
import numpy as np
img = cv2.imread("test.jpg")
alpha = 2.0
beta = -130
new = alpha * img + beta
new = np.clip(new, 0, 255).astype(np.uint8)
cv2.imwrite("cleaned.png", new)
is there any otherway to remove bookmark image from pdf pages.
Any solution to remove watermark image from pdf file using python
I tried using cv2.inpaint
It is just changing the colour.
import cv2
import numpy as np
img = cv2.imread("test.jpg")
alpha = 2.0
beta = -130
new = alpha * img + beta
new = np.clip(new, 0, 255).astype(np.uint8)
cv2.imwrite("cleaned.png", new)
is there any otherway to remove bookmark image from pdf pages.