Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DuplexScanOCR

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.

Duplex scanning

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.

Environment Variables

  • 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 to INFO

  • LOGFILE=<log file> Sets the log file. If no log file is set, logging to a file is disabled.

About

Watches the /data/consume folder for pdf's and ocr's them. If the filename contains duplex, the script waites for a second pdf and combines them.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Packages

Used by

Contributors

Languages