added image DPI detection to the tesseract parser.

This commit is contained in:
Jonas Winkler
2020-11-25 19:37:48 +01:00
parent 9bfa088eb5
commit 3b655c95d9
4 changed files with 48 additions and 3 deletions

View File

@@ -346,6 +346,8 @@ OCR_OUTPUT_TYPE = os.getenv("PAPERLESS_OCR_OUTPUT_TYPE", "pdfa")
# TODO: validate this.
OCR_MODE = os.getenv("PAPERLESS_OCR_MODE", "skip")
OCR_IMAGE_DPI = os.getenv("PAPERLESS_OCR_IMAGE_DPI")
# GNUPG needs a home directory for some reason
GNUPG_HOME = os.getenv("HOME", "/tmp")