Recognize monochrome separator sheet

Discussions about image processing and document imaging.
Post Reply
MadMax
Posts: 2
Joined: Thu Feb 13, 2020 11:21 am

Recognize monochrome separator sheet

Post by MadMax » Thu Feb 13, 2020 11:45 am

Hello forum,

I use the GdPicture Imaging SDK to optimize scanned images and recognize blank pages.
Now our customer has a new requirement.

He has some colored separator sheet and whishes, that we automatically recognize it and remove this page.
Attached you can find an example of such a page (had errors with attaching a tiff file so it is a jpg now). The separator sheets could be yellow, red or blue. But are always monochrome.

Is there any way in GdPicture how I can recognize, if a image is monochrome?

Regards,
Max
Attachments
Colored separator sheet.jpg

Hugo
Posts: 227
Joined: Tue Dec 18, 2018 10:09 am

Re: Recognize monochrome separator sheet

Post by Hugo » Fri Feb 14, 2020 3:13 pm

Hi MadMax,

This is possible. You will need to see how your files you want to keep and the monochrome pages are different. Since from what you've told me these pages are bright colors you can use methods such as these ones:
https://www.gdpicture.com/guides/gdpicture/GdP ... Color.html
https://www.gdpicture.com/guides/gdpicture/GdP ... Space.html

From these methods you can isolate monochrome pages and therefore use them as separators.

If this doesn't help please let me know what kind of pages you are saving.

Regards,

MadMax
Posts: 2
Joined: Thu Feb 13, 2020 11:21 am

Re: Recognize monochrome separator sheet

Post by MadMax » Mon Feb 17, 2020 4:39 pm

Hi Hugo,

thanks for your answer. With the two methods you mentioned it is not possible for me to detect a monochrome page.
The average color of a monochrome page is useless in this case because the color is not fix (bad scans etc.).

I need something like a inverted IsBlank() method which checks, if the white potion is 0%.
I have uploaded two test files. You can download them here:
Coloredseparatorsheet.tif
Normalsheet.tif

Regards,
Max

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest