It is currently Fri Apr 26, 2024 2:22 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Removing Dark Background from Scanned Text
PostPosted: Tue Dec 13, 2011 5:14 pm  (#1) 
Offline
New Member

Joined: Dec 13, 2011
Posts: 2
GIMP Version: 2.6.11
Operating System: Mac OS
OS Version: XP - SP3
GIMP Experience: Basic Level



I downloaded a scanned old book and I want to remove the dark background prior to printing some pages. Is there a way to do this with GIMP?

Thank you.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Removing Dark Background from Scanned Text
PostPosted: Tue Dec 13, 2011 5:39 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Do you have an example page?

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Removing Dark Background from Scanned Text
PostPosted: Tue Dec 13, 2011 5:48 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4047
Read here (in Russian: I used Google Translate):

http://leoblog.ru/?Proekty:Pesni_pro_gr ... -Fu_v_GIMP

I've had some luck with this script (note: this is a direct link to the script):

http://leoblog.ru/files/leon-paper-white.scm

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Removing Dark Background from Scanned Text
PostPosted: Tue Dec 13, 2011 6:26 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
This script is another Gem of a script from Leon.
Before
Image
After
Image

Translated PDF

Attachment:
Leon.pdf [187.43 KiB]
Downloaded 936 times

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Removing Dark Background from Scanned Text
PostPosted: Tue Dec 13, 2011 8:22 pm  (#5) 
Offline
New Member

Joined: Dec 13, 2011
Posts: 2
This is way too complicated for me. I was hoping for an easier way to make the page background white using GIMP. I will try to use Inkscape or printer-scanner software to whiten the pages.

Thank you all for your replies.


Top
 Post subject: Re: Removing Dark Background from Scanned Text
PostPosted: Thu Dec 15, 2011 5:34 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Hi Leo9lives and welcome to Gimp Chat. :)
We have a few topics stickyed on how to install resources into Gimp that may help you.
You can find them here -
viewtopic.php?f=8&t=721 - MAC
viewtopic.php?f=8&t=720 - LINUX
viewtopic.php?f=8&t=719 - WINDOWS

Those 3 posts cover how to install scripts into Gimp on all platforms.

My apologies for your confusion.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Removing Dark Background from Scanned Text
PostPosted: Thu Dec 15, 2011 10:20 pm  (#7) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
leo9lives wrote:
This is way too complicated for me. I was hoping for an easier way to make the page background white using GIMP. I will try to use Inkscape or printer-scanner software to whiten the pages.

Thank you all for your replies.


That is way too complicated ;) A person with a hammer sees everything as a nail ;)

You may just be able to use the levels tool - that is comparable to what most scanners will use to clean up images automatically:

http://docs.gimp.org/en/gimp-tool-levels.html

use Colours->Levels, and in the dialog pull down the white input level (1) until the background is white, pull up the black level (2) until the text is black, then pull up the gamma adjustment (3) to get the best contrast with out the text getting all aliases (jaggies):
Attachment:
levels.jpg
levels.jpg [ 37.34 KiB | Viewed 16459 times ]


Here is a sample using this technique on a source image I found on the web:
Attachment:
sample.jpg
sample.jpg [ 173.41 KiB | Viewed 16457 times ]


-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Removing text from a poster imported as an image

3

No new posts Attachment(s) Use of Fuzzy Select tool to remove white background from black text

2

No new posts Attachment(s) Background color chanage and typed text color change

8

No new posts Attachment(s) Removing flare

2

No new posts Attachment(s) removing px from the bottom of a image

4



* Login  



Powered by phpBB3 © phpBB Group