mirror of
https://github.com/qurator-spk/sbb_binarization.git
synced 2025-06-26 20:49:56 +02:00
📝 update README to current CLI usage
This commit is contained in:
parent
71b2801183
commit
561f6b92de
1 changed files with 7 additions and 5 deletions
12
README.md
12
README.md
|
@ -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…
Add table
Add a link
Reference in a new issue