Remove page numbers from image/scan?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
badbob001
Posts: 1
Joined: 2016-01-22T06:06:39-07:00
Authentication code: 1151

Remove page numbers from image/scan?

Post by badbob001 »

I'm processing page images and want trim out the margins, including the page numbers in the margins. The page number text is usually the opposite color of the page/margin (eg: black text over white; white text over black) so it's hard to trim out.

One idea is to determine the margin color, fill in the margin with the opposite color, determine the trim area based on the new margin color, and then apply that new trim area to the original image. The idea is to fill the margin with a similar color to the page number text, which will make it easier for trim to ignore the page number text. Is this possible to do currently?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Remove page numbers from image/scan?

Post by snibgo »

Probably.

For a more useful answer, you might supply an example image. You can upload to somewhere like dropbox.com and paste the URL here.
snibgo's IM pages: im.snibgo.com
Post Reply