Skip to main content
0

How to remove text from scanned images

By January 18, 2012May 25th, 2018Photoshop, Tutorial
illustration with embedded text

I have the privilege of working for a publisher of childrens books for the iPad and iPhone. My job as the graphic artist is to convert the book’s images from their original print format to files for interactive display.

Sometimes the original print files are not available. In this situation the pages of the printed book are scanned and sent to me for color correction and reformatting.

Printed text has to be removed from each scanned page.  When the text goes over the illustration like this example, the editing can be challenging and time consuming. 

illustration with embedded text

The Prince and the Pauper (pg. 11). Copyright Golden Films.

Content-Aware Fill

Photoshop CS5 Content-Aware Fill is an obvious choice for this kind of edit, but it doesn’t always return the results hoped for.

This is my first attempt.

example of content-aware fill with loose selection

For this example you can see that I created a loosely drawn lasso selection of the text area covering the illustration. Content-aware seemed to get really confused about what to fill the selection with.

Select by Color Range

The key to the Content-Aware filter is in the selection. Content-Aware works best when the selected area is specific to the objects you want to remove.

Follow these steps for almost fool proof results.

  1. Use the eye dropper tool to pick up the color of the text.
  2. Go to Select>Color Range 
  3. Use the + eye dropper to add to the selection and the  – eye dropper to remove from the selection. Preview with white matte to get a good idea of how well the text is being selected. Adjust the Fuzziness to expand or reduce the selection. Hit OK when you are happy with the preview.image of select color range panel
  4. Check the selection by viewing the selection in the quick mask mode, (q) gives you a quick mask alpha channel, (~) hides the RGB channels giving you a black and white preview of the selection. image of quick mask selection
  5. Clean up the selection by painting out the areas of the illustration that shouldn’t be part of the text selection.
  6. Return to the selection by hitting the (q) key again.
  7. Finally, expand the selection by going to Select>Modify>Expand… Expand by 1 pixel.

Now for the Magic!

Click shift – delete to bring up the fill dialog box. Choose Content-Aware at 100%. Mode Normal. 

The result is almost like magic. All you need to do now is air brush out a few specs left over from the text. The illustration looks perfect.

image of remove text results

Remember the better the selection, the better the results. This applies to all uses of the Content-Aware filter.