I have color images of Documents. Sample Input
(taken from https://www.indiamart.com/proddetail/pan-card-21687536812.html)
I wish to create realistic xerox/photocopy image from this. Most xerox/photocopy are set on low tone. Here is a sample output (sample output is not xerox of sample input - I couldnt find the same image for both on net) (taken from http://shrikantmail7862.blogspot.com/2016/06/)
Note output is not a simple Black and White of the color image.
I am looking for a tools/code/algos that will do this for me. I need to do this for over 0.1M images I am sure there must be such a filter in image processing. Looking for suitable pointers
To create a xerox like effect, an approach would be to convert the image to greyscale and then reduce the color space.
Color Space Reduction code (credits @elizer)
The output when the first image is passed into the script can be found below:
[1