Alright so I'm a complete n00b at image processing so forgive me if my question sounds vague. I'll try to supplement it with what I have learnt until now and also a couple of images.
See the caption in the image below?
What I'm essentially trying to do, it to remove it and restore the original image in (Python using OpenCV).
Now I have a couple of approaches in mind. First one I read about is a technique called Inpainting. Now I saw a tutorial on inpaiting here but this required me to create a separate mask where the non-zero pixels denote the stuff I want gone.
Now what I noticed is that the caption is not fully opaque. So i was wondering if there is any possible way to restore the original image by first removing the darkened part of the strip. (essentially something very the original image with only the whitened text on it) and then create a mask of the text and then use inpaiting.
Now I have a couple of questions.
- What technique do I use to remove the darkened part (let the text be now, we can remove it in the second step using inpainting)
- Does this algorithm even make sense. Is there a better approach I should be looking at?
NOTE: In no way am I looking for any sort of code or specific implementation. I'm just looking for what techniques and procedures I can study up on so as to get the job done. The rest is on me