dotfiles/.bin/documents-ocr
2023-12-12 08:39:33 +01:00

11 lines
259 B
Plaintext
Executable File

#/bin/sh -xe
. ${HOME}/.bin/_config
needs tesseract--
needs tesseract-deu--
needs tesseract-eng--
needs ocrmypdf--
cd ${PIMDIR}/documents/_incoming
find . -type f -maxdepth 1 -mindepth 1 -name "*.pdf" | xargs -P4 -n1 -t -r -I{} ocrmypdf -l deu $* "{}" "{}"