Please can anyone help:I require a matlab code for removing text from an Image.
Show older comments
I want to be able to remove all text from a binary Image containing text and objects/shapes. Please can anyone help
Accepted Answer
More Answers (1)
Walter Roberson
on 6 Apr 2012
0 votes
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 Comments
Aliyu Abdu
on 6 Apr 2012
Walter Roberson
on 6 Apr 2012
Okay, so is that 12-point Arabic, or is it Thai, or is it Japanese, or is it in Horta, or is it in Dalek ?
Umar Farooq Ghumman
on 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.

Image Analyst
on 1 Feb 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.
Categories
Find more on Language Support in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!