zuruoke/watermark-removal

How to create the mask file?

Opened this issue · 4 comments

If I can not get the source picture file of the watermark, I am wondering how to create the mask file?

Basically this method needs mask file. if you don't know the watermark then you cannot use it

Basically this method needs mask file. if you don't know the watermark then you cannot use it
If the water mark string is "SAMPLE", and the water mark is composed with 20 "SAMPLE".
The mask file to be prepared is the 1 "SAMPLE" string or the 20 "SAMPLE" strings? While the 20 "SAMPLE" strings must be in the same positions as they are in the picture?
Thanks!

the file name should be mask and the format is png, and the directory path should be utils/{watermark_type}/[portrait|landscape]/mask.png

if you give a value of argument --watermark_type to sample and the image is portrait then then path of the mask file would like this utils/sample/portrait/mask.png. use might need landscape version of mask as well in case of source image is landscape

I dont have the ability to create a custom mask file and some of my documents are portrait and some are landscape. What can I do in this case?