mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-06-08 22:29:56 +02:00
✨ ocrd-galley: Add support for ocrd-eynollah-segment
This commit is contained in:
parent
e618b3b5c0
commit
b0ae5b9c6a
3 changed files with 5 additions and 4 deletions
|
@ -2,12 +2,12 @@ ARG DRONE_COMMIT="latest"
|
|||
FROM quratorspk/ocrd-galley-core-cuda10.0:$DRONE_COMMIT
|
||||
|
||||
ARG PIP_INSTALL="pip install --no-cache-dir"
|
||||
ARG EYNOLLAH_COMMIT="1184d3d"
|
||||
ARG EYNOLLAH_VERSION="0.0.1"
|
||||
|
||||
|
||||
# Build pip installable stuff
|
||||
RUN ${PIP_INSTALL} \
|
||||
https://github.com/qurator-spk/eynollah/archive/$EYNOLLAH_COMMIT.tar.gz
|
||||
"eynollah == ${EYNOLLAH_VERSION}"
|
||||
|
||||
|
||||
# Copy OCR models
|
||||
|
@ -19,5 +19,4 @@ RUN pip check
|
|||
|
||||
|
||||
# Default command
|
||||
# XXX needs to be changed when OCR-D support is ready
|
||||
CMD ["eynollah"]
|
||||
CMD ["ocrd-eynollah-segment"]
|
||||
|
|
|
@ -66,6 +66,7 @@ main() {
|
|||
#ocrd-tesserocr-segment-region --overwrite -I OCR-D-IMG-BIN -O OCR-D-SEG-REGION
|
||||
#ocrd-tesserocr-segment-line --overwrite -I OCR-D-SEG-REGION -O OCR-D-SEG-LINE
|
||||
#ocrd-cis-ocropy-segment --overwrite -I OCR-D-IMG-BIN -O OCR-D-SEG-LINE -P level-of-operation page
|
||||
#ocrd-eynollah-segment -I OCR-D-IMG -O OCR-D-SEG-LINE -P models /var/lib/eynollah
|
||||
ocrd-sbb-textline-detector --overwrite -I OCR-D-IMG-BIN -O OCR-D-SEG-LINE -P model "/var/lib/textline_detection"
|
||||
do_validate
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ sub_images = {
|
|||
"ocrd-skimage-denoise-raw": "ocrd_wrap",
|
||||
"ocrd-skimage-binarize": "ocrd_wrap",
|
||||
"ocrd-skimage-denoise": "ocrd_wrap",
|
||||
"ocrd-eynollah-segment": "eynollah"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue