Skip to content

joschrew/workflow-endpoint-usage-example

Repository files navigation

This are instructions how to use the workflow endpoint

  1. Clone this repo and start all containers needed for the workflow (processing-server, mongoDb, rabbitMq, processing-workers)
git clone https://github.com/joschrew/workflow-endpoint-usage-example.git
cd workflow-endpoint-usage-example
# It is assumed ocrd/all:maximum is already there otherwise: docker pull ocrd/all:maximum
# the `data`-directory is used for providing the workspace to all processing-workers
docker-compose up -d ocrd-processing-server ocrd-mongodb ocrd-rabbitmq ocrd-olena-binarize ocrd-anybaseocr-crop ocrd-cis-ocropy-denoise ocrd-tesserocr-segment-region ocrd-segment-repair ocrd-cis-ocropy-clip ocrd-cis-ocropy-segment ocrd-cis-ocropy-dewarp ocrd-tesserocr-recognize
  1. Provide the workspace
    copy the workspace to the data folder so that the mets is available at data/mets.xml

  2. Run a workflow

curl -v -X POST "localhost:8000/workflow?mets_path=/data/mets.xml&page_wise=True" -H "Content-type: multipart/form-data" -F "workflow=@test-workflow.txt"
  1. Query the workflow
curl "localhost:8000/workflow/{workflow-id-received-from-previous-call}" | jq

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published