Imagemagick or similar for scripted image enhancement
-
01-10-2019 - |
Question
I found the following algorithm to work fairly well for enhancement of various images of whiteboards, etc:
- duplicate the layer, make sure the top layer is active
- (gaussian)blur the new layer. You shouldn't be able to read the text anymore.
- set the layer mode to dodge
- invert the layer
I tried it out in gimp and it looks promising. I'd like to try it en-masse for a large number of images and make it available as a command line tool.
I realize I can script gimp, but that feels too heavy for this purpose. Imagemagick seems ideal for this, but I don't know if I can do the layering with it.
So the question is:
- Is there a way to script imagemagick to do the above algorithm without the use of a temporary file?
- Is there a reasonable alternative library/tool that can be integrated with Python?
Solution
There is a ImageMagick script for whiteboard cleanup here - http://www.fmwconcepts.com/imagemagick/whiteboard/index.php
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow