Please can anyone help:I require a matlab code for removing text from an Image.

2 vues (au cours des 30 derniers jours)
I want to be able to remove all text from a binary Image containing text and objects/shapes. Please can anyone help

Réponse acceptée

Image Analyst
Image Analyst le 6 Avr 2012
Walter is saying that virtually any kind of weird-shaped blob might be a letter in some alphabet. You want to identify blobs that are in just one alphabet I presume. So basically you need to do OCR on the blobs to identify which ones belong to your alphabet and which are just meaningless scribbles or letters from other alphabets. Giving code for OCR has always been beyond the scope of Answers. Heck, there are companies employing dozens or hundreds of people that have been working on that for decades so I know it would not be worth my time to develop it all by myself. Personally, I'd look for an existing OCR package to buy. But if you want to write your own OCR package, have at it. Maybe you could try shape algorithms like SURF (see wikipedia.org).
  2 commentaires
Aliyu Abdu
Aliyu Abdu le 6 Avr 2012
Thanks, that was helpful.
Image Analyst
Image Analyst le 6 Avr 2012
You can try the File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=OCR

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 6 Avr 2012
Clear the image completely. Every combination of shapes and colors is "text" to some writing system.
Unicode alone has more than 98000 defined characters, and there are probably a several thousand fonts; and then you have hand-written characters complete with shaky hands and pen blotches and human errors.
  4 commentaires
Umar Farooq Ghumman
Umar Farooq Ghumman le 31 Jan 2019
What if it is English? Just English. How would one proceed with it? I would like to remove the text, lines with arrows, and also the box at the bottom.
pic.png
Image Analyst
Image Analyst le 1 Fév 2019
If the text is pure white, you can just get a mask for white pixels and then call regionfill()
whitePixels = grayImage == 255;
outputImage = regionfill(.............
etc.

Connectez-vous pour commenter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by