OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

OpenCV remove watermark

  • Thread starter Thread starter bomboerick
  • Start date Start date
B

bomboerick

Guest
I am trying to remove this watermark, I have tried a thousand ways but none of them work, any ideas, here is the code

Code:
if __name__ == '__main__':

    img = cv2.imread("doc.jpg")
    cv2.imshow("Image With Water Mark", img)

    img1 = cv2.imread("doc.jpg")
    _, thresh = cv2.threshold(img1, 150, 255, cv2.THRESH_BINARY)
    #cv2.imshow('Image Without Water Mark', thresh)
    cv2.imshow('Image Without Water Mark', thresh)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

enter image description here

This is the result:

enter image description here

Some ideas of how solve this
<p>I am trying to remove this watermark, I have tried a thousand ways but none of them work, any ideas, here is the code</p>
<pre><code>if __name__ == '__main__':

img = cv2.imread("doc.jpg")
cv2.imshow("Image With Water Mark", img)

img1 = cv2.imread("doc.jpg")
_, thresh = cv2.threshold(img1, 150, 255, cv2.THRESH_BINARY)
#cv2.imshow('Image Without Water Mark', thresh)
cv2.imshow('Image Without Water Mark', thresh)
cv2.waitKey(0)
cv2.destroyAllWindows()
</code></pre>
<p><a href="https://i.sstatic.net/vodRX.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/vodRX.jpg" alt="enter image description here" /></a></p>
<p>This is the result:</p>
<p><a href="https://i.sstatic.net/V78zH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/V78zH.png" alt="enter image description here" /></a></p>
<p>Some ideas of how solve this</p>
 

Latest posts

Top