Docker image based PDF text recogntion with OCR Paddle and PDFix SDK
Usage:
./run.sh [OPTIONS]
Options:
--input <input.pdf> Path to the input PDF file
--output <output.pdf> Path the output PDF file
--lang <lang> OCR language (default: eng)
--name <name> License name
--key <key> License key
--build Force rebuild of the Docker image
--help Display this help message
Build the docker image with the name pdfix-paddle-ocr. You can choose another name if you want.
docker build -t pdfix-paddle-ocr .
To run docker container you should map directories with PDF documents to the container (-v parameter) and pass paths to input/output PDF document in the running container
Example:
/home/pdfs_in/scanned.pdf/home/pdfs_out/ocred.pdfPath /home/pdfs_in is mapped to /data_in and /home/pdfs_out is mapped to /data_out
docker run --rm -v /home/pdfs_in:/data_in -v /home/pdfs_out:/data_out -it pdfix-paddle-ocr --input /data_in/scanned.pdf --output /data_out/ocred.pdf --lang eng --name $LICENSE_NAME --key $LICENSE_KEY
Arguments --input, --output, --lang, --name, --key are the same as the CLI
Trial version of the PDFix SDK may apply a watermark on the page and redact random parts of the PDF.
To obtain a PDFix SDK license or report an issue please contact us at [email protected]. For more information visit https://pdfix.net
Content type
Image
Digest
sha256:145e77127…
Size
1007.2 MB
Last updated
over 1 year ago
docker pull pdfix/autotag-paddle