Page 1 of 1

removing background from a scanned text?

Posted: Mon Jan 28, 2008 1:09 pm
by dvlad
Hi, i have scanned some old book pages, and i want to remove the paper background, and keep only the text and the pictures(artistic capitals) without loseing quality . The image mode is RGB 8 bits, because capital letters are red. Does anyone know of a way to do this? A Photoshop plugin that does this? Or anything else? Anything is welcome.THX IN ADVANCE!

Posted: Tue Jan 29, 2008 1:07 pm
by HaraldHeim
I usually do that by increasing the contrast. As you have images in the scanned page, you may need to mask them out before applying the contrast adjustment.

removing background from a scanned text?

Posted: Wed Jan 30, 2008 11:06 pm
by wvperegrine
I think I have a way that preserves more of the subtleties of most typefaces, if that's important to you. Harald's is the easier way, for sure.':D'

Sounds like what you're dealing with is what old scribes like me call "illuminated text," with embellished capital letters. I've used the following technique to enhance scanned blueprints and scanned calligraphy on faded paper, for example, and I've done it mostly in Photoshop. I think you can do so in The GiMP, Paint Shop Pro and perhaps in other programs of this kind. I'll describe it in Photoshop 7.

With the image open, go to Select > Color Range ...

A dialog box opens, displaying your scanned image and some options

In the dropdown menu labeled "Select:", choose "Sampled Colors"

Now, when your cursor is hovering over the image in the dialog box OR the original image, the cursor will look like an eyedropper. Use the cursor to select a color in either window by clicking on that color (in this case, I would choose the background color of the page, which may range anywhere from off-white to rather badly yellowed)

You can fine-tune the selection by adjusting the setting called "Fuzziness" in that dialog box. I sometimes have to "undo" a few times until I get it right. If you like, you can zoom in on the text to see how well it's isolated from the background (and whether you're losing detail in the serifs, etc.) If necessary, you can use the "quick mask" to help you touch up things like water spots or coffee stains on the paper.

When you're satisfied that you've selected all the background, but nothing important within the pictures (that could be the hard part), go to Edit > Fill ... and again, a dialog box will open. In this box, what I often do is Use:"White" in the dropdown menu under the "Contents" section, and set "Blending" to something like 90 or 95 percent opacity. This way, you actually retain (but greatly reduce) a little bit of the texture and other detail on the page. You may get better results using an off-white or even pure white "fill" without any blending at all, so don't be afraid to experiment a bit to arrive at something that will work for all your scans of this type.

Sounds complicated, but it really isn't, and with a little practice it gives better results than other methods. Good luck!

Backgrounds in scanned text

Posted: Thu Jan 31, 2008 3:32 am
by theponyman
An expensive way to do this is with Vertus Fluid Mask a fairly new plugin or stand alone out of England which makes lifting out a background and dropping the foreground quicker and easier; if resolution is low, its little brother Bling! It which is just out runs under $50USD is easy to use but only with low resolutions as it is designed for online sellers ala ebay to dress up product shots and both programs edgefinding tool would make shot work of seperating the letters and placing them on the color background of your choice

Posted: Fri Jul 11, 2008 10:08 am
by Jen0608
Good advise wvperegrine...I think that's help a lot especially to those like us newbie in photo editing...Anyway practice makes perfect...

Posted: Fri Jul 11, 2008 9:30 pm
by plugsnpixels
I usually do a simple Levels tweak... ;-) Pull up the whites or mids.