Add unpaper as another pre-processing step

This commit is contained in:
Pit Kleyersburg
2016-02-16 10:49:55 +01:00
parent 0e2d8cc0d8
commit fb36a49c26
5 changed files with 53 additions and 36 deletions

View File

@@ -189,6 +189,9 @@ GNUPG_HOME = os.getenv("HOME", "/tmp")
# Convert is part of the ImageMagick package
CONVERT_BINARY = os.getenv("PAPERLESS_CONVERT_BINARY")
# Unpaper
UNPAPER_BINARY = os.getenv("PAPERLESS_UNPAPER_BINARY", "unpaper")
# This will be created if it doesn't exist
SCRATCH_DIR = os.getenv("PAPERLESS_SCRATCH_DIR", "/tmp/paperless")