Scantools

Scantools is a library and a matching set of command line programs for manipulation of graphic files, written with a view towards handling of scanned documents.

Link