从JPEG的不同位置删除文本水印[关闭]

问题描述 投票:-5回答:1
我正在尝试找出如何从一堆照片中删除固定大小的水印。水印位于img的不同位置。因此,使用Mask和Inpaint对处理多个位置无济于事。enter image description here

enter image description here

enter image description here

我可以使用Python知道如何做吗?

python opencv image-processing mask watermark
1个回答
0
投票
很容易:

from PIL import Image, ImageChops a=Image.open('9Ws21.jpg') b=Image.open('9OKGy.jpg') c=ImageChops.lighter(a, b) c.save('out_cat.png')

enter image description here
© www.soinside.com 2019 - 2024. All rights reserved.