Merge pull request #14 from OCR-D/update-usage-readme

📝 update README to current CLI usage
pull/15/head^2
Clemens Neudecker 4 years ago committed by GitHub
commit dd03976f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,7 +9,7 @@ to black-and-white pixels) for OCR using multiple trained models.
## Installation ## Installation
Clone the repository, enter it and run Clone the repository, enter it and run
`pip install .` `pip install .`
@ -19,12 +19,14 @@ Pre-trained models can be downloaded from here:
https://qurator-data.de/sbb_binarization/ https://qurator-data.de/sbb_binarization/
## Usage ## Usage
```sh ```sh
sbb_binarize \ sbb_binarize \
--patches \
-m <directory with models> \ -m <directory with models> \
-i <image file> \ <input image> \
-p <set to true to let the model see the image divided into patches> \ <output image>
-s <directory where the results will be saved>`
``` ```
**Note** In virtually all cases, the `--patches` flag will improve results.

Loading…
Cancel
Save