I need to automatically remove the mildly colored background of a scanned document image for OCR.
ScanTailor is an open source C++ GUI-based app that does background separation among other things, but I cannot figure out how to run only the last step which actually removes the background.
Ideally, I could find the code that does this and either:
- Port that part to C#
- Modify the C++ to respond to command line execution, only performing that step on a given image
Can you help me understand how I can do either?
or do you know other libraries that can do this? (any language/platform acceptable)