Path to network implementation of OCR-D
Build or pull the Docker image:
make build # or docker pull
Then run the container – providing host-side directories for the volumes DATA and MODELS, but also a (multi-line) string KEYS with public key credentials:
make run DATA=/mnt/workspaces MODELS=~/.local/share KEYS=$(cat ~/.ssh/id_rsa.pub) PORT=8022
Then you can log in from remote (but let's use localhost for the example):
ssh -p 8022 localhost "ocrd-import -P some-document"
For actual processing, you will first need to download some models into your MODELS volume:
ssh -p 8022 localhost "ocrd resmgr download ocrd-tesserocr-recognize *"
Subsequently, you can use these models on your DATA files:
ssh -p 8022 localhost "ocrd process -m some-document/mets.xml 'tesserocr-recognize -P segmentation_level region -P model Fraktur'"
# or equivalently:
ssh -p 8022 localhost "ocrd-tesserocr-recognize -m some-document/mets.xml -P segmentation_level region -P model Fraktur"
For parallel processing, you can either
Apart from the SSH server, this currently also exposes a webserver for the OCR-D browser installed in the container:
browse-ocrd some-document/mets.xml
You can then access localhost:8085 with your browser for the GUI.
Content type
Image
Digest
Size
7.4 GB
Last updated
about 4 years ago
docker pull bertsky/ocrd_controller