I have similar need and have found Scan Tailor OSS.
It is not entirely automated. You use scantailor.exe GUI app to create a "project file" that contains configuration, then launch scantailor-cui.exe CUI that loads the file to do batch processing. (processing can be completed in GUI too)
Quick Start Guide
scantailor FAQ: ...