From c7057bad5e9bbacd867b0225012b625bd819e846 Mon Sep 17 00:00:00 2001 From: cneud <952378+cneud@users.noreply.github.com> Date: Sat, 13 May 2023 12:47:06 +0200 Subject: [PATCH] Update README.md --- README.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 07bb411..80dab77 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,11 @@ cd eynollah; pip install -e . Alternatively, you can run `make install` or `make install-dev` for editable installation. +## Models +Pre-trained models can be downloaded from [qurator-data.de](https://qurator-data.de/eynollah/). + +In case you want to train your own model to use with Eynollah, have a look at [sbb_pixelwise_segmentation](https://github.com/qurator-spk/sbb_pixelwise_segmentation). + ## Usage The command-line interface can be called like this: @@ -70,13 +75,7 @@ The following options can be used to further configure the processing: | `-sa ` | save all (plot, enhanced/binary image, layout) to this directory | If no option is set, the tool will perform layout detection of main regions (background, text, images, separators and marginals). - -The tool produces better output from RGB images as input than greyscale or binarized images. - -## Models -Pre-trained models can be downloaded from [qurator-data.de](https://qurator-data.de/eynollah/). - -In case you want to train your own model to use with Eynollah, have a look at [sbb_pixelwise_segmentation](https://github.com/qurator-spk/sbb_pixelwise_segmentation). +The tool produces better quality output when RGB images are used as input than greyscale or binarized images. #### Use as OCR-D processor @@ -88,10 +87,10 @@ In this case, the source image file group with (preferably) RGB images should be ocrd-eynollah-segment -I OCR-D-IMG -O SEG-LINE -P models ``` -Any image referenced by `@imageFilename` in PAGE-XML is passed on directly to Eynollah as a processor, so that e.g. calling +Any image referenced by `@imageFilename` in PAGE-XML is passed on directly to Eynollah as a processor, so that e.g. ``` ocrd-eynollah-segment -I OCR-D-IMG-BIN -O SEG-LINE -P models ``` -still uses the original (RGB) image despite any binarization that may have occured in previous OCR-D processing steps +uses the original (RGB) image despite any binarization that may have occured in previous OCR-D processing steps