Bundle olena as an OCR-D tool
make deps-ubuntu
...will try to install the required packages on Ubuntu.
make install
...will download, patch and build olena/scribo from source, and install locally (in a path relative to the CWD).
make test
...will clone the assets repository from Github, make a workspace copy, and run checksum tests for binarization on them.
This package has the following user interfaces:
ocrd-olena-binarizeTo be used with PageXML documents in an OCR-D annotation workflow. Input could be any valid workspace with source images available. Currently covers the Page hierarchy level only. Uses either (the last) AlternativeImage, if any, or imageFilename, otherwise. Adds an AlternativeImage with the result of binarization for every page.
"ocrd-olena-binarize": {
"executable": "ocrd-olena-binarize",
"description": "OLENA's binarization algos for OCR-D (on page-level)",
"categories": [
"Image preprocessing"
],
"steps": [
"preprocessing/optimization/binarization"
],
"input_file_grp": [
"OCR-D-SEG-BLOCK",
"OCR-D-SEG-LINE",
"OCR-D-SEG-WORD",
"OCR-D-IMG"
],
"output_file_grp": [
"OCR-D-SEG-BLOCK",
"OCR-D-SEG-LINE",
"OCR-D-SEG-WORD"
],
"parameters": {
"impl": {
"description": "The name of the actual binarization algorithm",
"type": "string",
"required": true,
"enum": ["sauvola", "sauvola-ms", "sauvola-ms-fg", "sauvola-ms-split", "kim", "wolf", "niblack", "singh", "otsu"]
},
"win-size": {
"description": "Window size",
"type": "number",
"format": "integer",
"default": 101
},
"k": {
"description": "Sauvola's formulae parameter",
"format": "float",
"type": "number",
"default": 0.34
}
}
}
Content type
Image
Digest
Size
299.5 MB
Last updated
almost 7 years ago
docker pull bertsky/olena