diff --git a/Dockerfile-ocrd_cis b/Dockerfile-ocrd_cis new file mode 100644 index 0000000..73ccb76 --- /dev/null +++ b/Dockerfile-ocrd_cis @@ -0,0 +1,18 @@ +FROM my_ocrd_workflow-core + +ARG PIP_INSTALL="pip3 install --no-cache-dir --use-feature=2020-resolver" +ARG OCRD_CIS_VERSION="0.1.5" + + +# Build pip installable stuff +RUN ${PIP_INSTALL} \ +# Now the real stuff: + "https://github.com/cisocrgroup/ocrd_cis/archive/v${OCRD_CIS_VERSION}.tar.gz" + + +# Check pip dependencies +RUN pip3 check + + +# Default command +CMD ["ocrd-cis-ocropy-segment"] diff --git a/build b/build index efe5467..b35c989 100755 --- a/build +++ b/build @@ -30,3 +30,4 @@ docker build --cache-from=my_ocrd_workflow-ocrd_olena -t my_ocrd_work docker build --cache-from=my_ocrd_workflow-ocrd_tesserocr -t my_ocrd_workflow-ocrd_tesserocr -f Dockerfile-ocrd_tesserocr . docker build --cache-from=my_ocrd_workflow-sbb_textline_detector -t my_ocrd_workflow-sbb_textline_detector -f Dockerfile-sbb_textline_detector . docker build --cache-from=my_ocrd_workflow-sbb_binarization -t my_ocrd_workflow-sbb_binarization -f Dockerfile-sbb_binarization . +docker build --cache-from=my_ocrd_workflow-ocrd_cis -t my_ocrd_workflow-ocrd_cis -f Dockerfile-ocrd_cis . diff --git a/run b/run index 5b6c3da..b035279 100755 --- a/run +++ b/run @@ -42,6 +42,14 @@ build_alias ocrd-sbb-textline-detector ${DOCKER_IMAGE_PREFIX}-sbb_textline_detec build_alias ocrd-calamari-recognize ${DOCKER_IMAGE_PREFIX}-ocrd_calamari:${DOCKER_IMAGE_TAG} build_alias ocrd-tesserocr-recognize ${DOCKER_IMAGE_PREFIX}-ocrd_tesserocr:${DOCKER_IMAGE_TAG} build_alias ocrd-dinglehopper ${DOCKER_IMAGE_PREFIX}-dinglehopper:${DOCKER_IMAGE_TAG} +build_alias ocrd-cis-ocropy-clip ${DOCKER_IMAGE_PREFIX}-ocrd_cis:${DOCKER_IMAGE_TAG} +build_alias ocrd-cis-ocropy-resegment ${DOCKER_IMAGE_PREFIX}-ocrd_cis:${DOCKER_IMAGE_TAG} +build_alias ocrd-cis-ocropy-segment ${DOCKER_IMAGE_PREFIX}-ocrd_cis:${DOCKER_IMAGE_TAG} +build_alias ocrd-cis-ocropy-deskew ${DOCKER_IMAGE_PREFIX}-ocrd_cis:${DOCKER_IMAGE_TAG} +build_alias ocrd-cis-ocropy-denoise ${DOCKER_IMAGE_PREFIX}-ocrd_cis:${DOCKER_IMAGE_TAG} +build_alias ocrd-cis-ocropy-binarize ${DOCKER_IMAGE_PREFIX}-ocrd_cis:${DOCKER_IMAGE_TAG} +build_alias ocrd-cis-ocropy-dewarp ${DOCKER_IMAGE_PREFIX}-ocrd_cis:${DOCKER_IMAGE_TAG} +build_alias ocrd-cis-ocropy-recognize ${DOCKER_IMAGE_PREFIX}-ocrd_cis:${DOCKER_IMAGE_TAG} . $self_dir/my_ocrd_workflow