mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-06-08 22:29:56 +02:00
✨ Add support for ocrd_wrap aka ocrd-skimage-*
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c3f37d8460
commit
94a035e2cf
4 changed files with 26 additions and 1 deletions
|
@ -35,6 +35,7 @@ def main(ctx):
|
|||
step_for(ctx, "ocrd_olena", tags),
|
||||
step_for(ctx, "ocrd_segment", tags),
|
||||
step_for(ctx, "ocrd_tesserocr", tags),
|
||||
step_for(ctx, "ocrd_wrap", tags),
|
||||
step_for(ctx, "sbb_binarization", tags),
|
||||
step_for(ctx, "sbb_textline_detector", tags),
|
||||
{
|
||||
|
|
18
Dockerfile-ocrd_wrap
Normal file
18
Dockerfile-ocrd_wrap
Normal file
|
@ -0,0 +1,18 @@
|
|||
ARG DRONE_COMMIT="latest"
|
||||
FROM quratorspk/ocrd-galley-core:$DRONE_COMMIT
|
||||
|
||||
ARG PIP_INSTALL="pip install --no-cache-dir"
|
||||
ARG OCRD_WRAP_VERSION="0.1.4"
|
||||
|
||||
|
||||
# Build pip installable stuff
|
||||
RUN ${PIP_INSTALL} \
|
||||
"ocrd_wrap == ${OCRD_WRAP_VERSION}"
|
||||
|
||||
|
||||
# Check pip dependencies
|
||||
RUN pip check
|
||||
|
||||
|
||||
# Default command
|
||||
CMD ["ocrd-preprocess-image"]
|
|
@ -1,7 +1,8 @@
|
|||
How to add a processor
|
||||
----------------------
|
||||
* Add model download to `build` (if necessary)
|
||||
* Add a Dockerfile
|
||||
* Add to `build`
|
||||
* Add commands to `wrapper/qurator/ocrd_galley/cli.py`
|
||||
* Add to `.drone.star`
|
||||
|
||||
Releasing
|
||||
|
|
|
@ -35,6 +35,11 @@ sub_images = {
|
|||
"ocrd-segment-from-coco": "ocrd_segment",
|
||||
"ocrd-segment-repair": "ocrd_segment",
|
||||
"ocrd-segment-evaluate": "ocrd_segment",
|
||||
"ocrd-preprocess-image": "ocrd_wrap",
|
||||
"ocrd-skimage-normalize": "ocrd_wrap",
|
||||
"ocrd-skimage-denoise-raw": "ocrd_wrap",
|
||||
"ocrd-skimage-binarize": "ocrd_wrap",
|
||||
"ocrd-skimage-denoise": "ocrd_wrap",
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue