Page 1 of 1

Recognize monochrome separator sheet

Posted: Thu Feb 13, 2020 11:45 am
by MadMax
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

Re: Recognize monochrome separator sheet

Posted: Fri Feb 14, 2020 3:13 pm
by Hugo
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,

Re: Recognize monochrome separator sheet

Posted: Mon Feb 17, 2020 4:39 pm
by MadMax
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