Saturday 5 December 2020

Removing watermark from an image using bbox parameters

I am using a Computer Vision cloud service to detect watermarks on a set of images. The cloud service returns the location of the watermark in form of Bounding Box (bbox). For example, one output looked like this:

  "text": "Watermarked Text",
  "words": [
    {
      "boundingBox": [
        889,
        1043,
        939,
        1044,
        939,
        1076,
        888,
        1075
      ]

Bounding Box parameters have been previously explained on Stack Overflow.

My goal is to remove the watermark from the image by providing the bbox parameters as an input to a tool that can remove watermarks.

I think OpenCV-Python is a great fit for this task. I checked their Image Processing API but couldn't find any solutions. The closest solution I could find was inpainting.

I'm wondering what is the best way to achieve my task using OpenCV? I'd be grateful for any help.



from Removing watermark from an image using bbox parameters

No comments:

Post a Comment