Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sample calls to ocrd-tool.json, OCR-D/spec#141 #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 43 additions & 1 deletion ocrd-tool.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,49 @@
"type": "number",
"default": 0.34
}
}
},
"sample-calls": [
{
"description": "Run the sauvola binarization algorithm",
"call": "ocrd-olena-binarize -p '{\"impl\": \"sauvola\"}'"
},
{
"description": "Run the sauvola binarization algorithm with a higher k value",
"call": "ocrd-olena-binarize -p '{\"impl\": \"sauvola\", \"k\": 0.75}'"
},
{
"description": "Run the sauvola-ms binarization algorithm",
"call": "ocrd-olena-binarize -p '{\"impl\": \"sauvola-ms\"}'"
},
{
"description": "Run the sauvola-ms-fg binarization algorithm",
"call": "ocrd-olena-binarize -p '{\"impl\": \"sauvola-ms-fg\"}'"
},
{
"description": "Run the sauvola-ms-split binarization algorithm",
"call": "ocrd-olena-binarize -p '{\"impl\": \"sauvola-ms-split\"}'"
},
{
"description": "Run the kim binarization algorithm",
"call": "ocrd-olena-binarize -p '{\"impl\": \"kim\"}'"
},
{
"description": "Run the wolf binarization algorithm",
"call": "ocrd-olena-binarize -p '{\"impl\": \"wolf\"}'"
},
{
"description": "Run the niblack binarization algorithm",
"call": "ocrd-olena-binarize -p '{\"impl\": \"niblack\"}'"
},
{
"description": "Run the otsu binarization algorithm",
"call": "ocrd-olena-binarize -p '{\"impl\": \"otsu\"}'"
},
{
"description": "Run the singh binarization algorithm",
"call": "ocrd-olena-binarize -p '{\"impl\": \"singh\"}'"
}
]
}
}
}