⬆️ ocrd_calamari 1.0.0 (plus changes for legacy ocrd_calmari)
parent
c1cc544944
commit
04d16d93d0
@ -1,27 +0,0 @@
|
|||||||
FROM my_ocrd_workflow-core
|
|
||||||
|
|
||||||
|
|
||||||
# XXX https://github.com/OCR-D/core/issues/642
|
|
||||||
#ARG PIP_INSTALL="pip install --no-cache-dir --use-feature=2020-resolver"
|
|
||||||
ARG PIP_INSTALL="pip install --no-cache-dir"
|
|
||||||
|
|
||||||
|
|
||||||
# Build pip installable stuff
|
|
||||||
RUN ${PIP_INSTALL} \
|
|
||||||
https://github.com/OCR-D/ocrd_calamari/archive/feat/update-calamari1.zip
|
|
||||||
|
|
||||||
|
|
||||||
# Copy OCR models
|
|
||||||
RUN mkdir -p /var/lib/calamari-models/GT4HistOCR
|
|
||||||
COPY data/calamari-models/GT4HistOCR/2019-12-11T11_10+0100 /var/lib/calamari-models/GT4HistOCR/2019-12-11T11_10+0100
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Check pip dependencies
|
|
||||||
# XXX https://github.com/OCR-D/core/issues/642
|
|
||||||
#RUN pip check
|
|
||||||
|
|
||||||
|
|
||||||
# Default command
|
|
||||||
RUN ln -s ocrd-calamari-recognize /usr/local/bin/ocrd-calamari-recognize-feat-update-calamari1
|
|
||||||
CMD ["ocrd-calamari-recognize"]
|
|
@ -0,0 +1,27 @@
|
|||||||
|
FROM my_ocrd_workflow-core
|
||||||
|
|
||||||
|
ARG PIP_INSTALL="pip install --no-cache-dir --use-feature=2020-resolver"
|
||||||
|
|
||||||
|
|
||||||
|
# Build pip installable stuff
|
||||||
|
RUN ${PIP_INSTALL} \
|
||||||
|
# Resolve conflicts early:
|
||||||
|
'tensorflow-gpu == 1.15.*' \
|
||||||
|
'calamari-ocr == 0.3.5' \
|
||||||
|
# Now the real stuff:
|
||||||
|
'ocrd_calamari >= 0.0.7'
|
||||||
|
|
||||||
|
|
||||||
|
# Copy OCR models
|
||||||
|
RUN mkdir -p /var/lib/calamari-models/GT4HistOCR
|
||||||
|
COPY data/calamari-models/GT4HistOCR/2019-07-22T15_49+0200 /var/lib/calamari-models/GT4HistOCR/2019-07-22T15_49+0200
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Check pip dependencies
|
||||||
|
RUN pip check
|
||||||
|
|
||||||
|
|
||||||
|
# Default command
|
||||||
|
RUN ln -s ocrd-calamari-recognize /usr/local/bin/ocrd-calamari-recognize03
|
||||||
|
CMD ["ocrd-calamari-recognize"]
|
Loading…
Reference in New Issue