diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f92ba15 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +all: install + +install: + pip install . diff --git a/README.md b/README.md index be80345..dfb4d5c 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,30 @@ # Binarization + > Binarization for document images ## Introduction -This tool performs document image binarization (i.e. transform colour/grayscale to black-and-white pixels) for OCR using multiple trained models. + +This tool performs document image binarization (i.e. transform colour/grayscale +to black-and-white pixels) for OCR using multiple trained models. ## Installation + Clone the repository, enter it and run -`./make` + +`pip install .` ### Models + Pre-trained models can be downloaded from here: + https://qurator-data.de/sbb_binarization/ ## Usage -`sbb_binarize -m -i --p --s ` + +```sh +sbb_binarize \ + -m \ + -i \ + -p \ + -s ` +```