This container adds two features to any scanner that can scan to network shares: duplex scanning and OCR (optical character recognition).
DuplexScanOCR watches the /data/consume folder for PDFs and OCRs them with OCRmyPDF. If the file path contains duplex, the script will wait for a second PDF file with duplex in the path and combine them. The finished files are exported to the /data/export folder.
Subfolders are recreated inside the export folder.
To create duplex scans with a normal scanner, scan all front pages in one go, then rotate the stack of paper and scan the backsides in reversed order. DuplexScanOCR will create a single file that alternates between the first file in its original order and the second file in reversed order.
-
DUPLEX_TIMEOUT=<seconds>Sets the maximum time difference between importing the front scan and back scan. Defaults to 600 s. Should be longer than the time it takes to OCR the files. -
OCR_LANG=<LangCode>Sets the OCR language ocrmypdf/tesseract uses. Available LangCodes. Defaults to German (deu). -
LOGLEVEL=<log level>Sets the log level. Defaults toINFO -
LOGFILE=<log file>Sets the log file. If no log file is set, logging to a file is disabled.