Replies: 3 comments 7 replies
|
One cannot ensure smooth edges and only 3 colors. You are essentially asking to remove the anti-aliasings. So you will end up with aliased graphics. What version of ImageMagick? What platform/OS? Syntax may differ. Here is for ImageMagick 6 on Unix-like systems.
|
|
Thank you @fmw42 for your suggestion. The result is not perfect, but similar to what I would like to have. The image has some noise. Is there something better that I can do? |
|
The red ink is semi-transparent, so where the ink is thicker, we get a darker red.
Is OCR the objective? What OCR product are you using? I get a fairly good result from Tesseract, if I darken the red ink first: The output g.txt starts with: If your PDF is for reading by humans, then remember that humans are good at ignoring the actual colour of "white" paper, ignoring ink splashes, filling gaps in letters, and so on. |


Uh oh!
There was an error while loading. Please reload this page.
I would like to clean a scanned image like the one displayed here below. I want to convert the red text/graphics to pure red color and the black to pure black, without any color gradients. Ultimately, I am looking for a color reduction method that reduces the scanned image to 3 colors(red, black and white). Obviously I want the text and the graphics to have smooth edges too. Thank you in advance for any suggestions.

All reactions