Ask Your Question
0

Removing text from image

asked 2014-12-01 01:29:38 -0600

Roop gravatar image

hi!

I need help in removing the text appering on the image while preserving the background. The text can be at any position in image.

Input Image is: image description

and the required output is: image description

Please suggest me the way how can I achieve this.

Thanks in advance.

edit retag flag offensive close merge delete

Comments

1

Here is simple because it is black on white, and the letters are not bold, so applying a blur there or even a similar white, it will not be seen, but normally you should do inpainting. And for that you need to detect the text, that is: you will need the text mask, where you need to apply the inpainting method.

thdrksdfthmn gravatar imagethdrksdfthmn ( 2014-12-01 04:28:11 -0600 )edit

I also have other images with coloured background; if i proceed as you said, then i have following problems arising: 1. noises in the image.. several other parts of image get detected as text 2. by applying inpainting..patch is visible in image

Roop gravatar imageRoop ( 2014-12-02 02:58:09 -0600 )edit

Honestly, this is a case where you could use MS Paint. But I assume you want to do it programmatically ;)

Doombot gravatar imageDoombot ( 2014-12-02 08:08:25 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-12-03 01:52:40 -0600

Have you tried opencv inpaint? Example

void inpaint(InputArray src, InputArray inpaintMask, OutputArray dst, double inpaintRadius, int flags)

Steps???:

  1. Text recognition
  2. Build "inpaintMask" with positions of the text
  3. Call inpaint
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-12-01 01:29:38 -0600

Seen: 3,508 times

Last updated: Dec 03 '14