Programmatically remove watermarked text from image
I am developing a web application using php and I 开发者_Go百科need to process thousands of images which are watermarked. How do I remove the watermarked text programmatically from the image and save them?
You can't, this is impossible. That's the point of watermarks.
Visual recognition - as in the case of differentiating a watermark from the rest of an image - is in the domain of artificial intelligence, and it requires A LOT of neural network training.
If you can write a perfect algorithm for this one, you can break any CAPTCHA too. So good luck if you manage to do it! That said, you might be way over your head on this one.
Images with watermarks got them for a reason (Often due to copyright).
Removing them can lead their author to sue you.
That said, you can't do it automatically or/and programaticaly. If you really need to remove them, do it manually and buy Photoshop©
If anyone can remove the watermark of the image by just putting a simple code, then what is the use of firstly putting them on the images? It is of no use if anyone can easily remove it.
It can be removed by image editing by tools like Photoshop etc. But that will make you violate the copyrights law of the image owner. If you really need that image, request the owner via email or something.
Don't try to remove. Try to guess the link without watermark Ex:
watermarked http://domain.com/36436/34fdhfh_wtm.jpg
no watermark http://domain.com/36436/34fdhfh_nwm.jpg
:) of course it is not that simple (depends on the website owner) but somehow there might be a rule though
精彩评论