From 93c298cb4f55a2f6c168f85928c459f17e316e13 Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Fri, 31 Jan 2020 18:38:30 +0100 Subject: [PATCH] add sample calls to ocrd-tool.json, OCR-D/spec#141 --- ocrd-tool.json | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/ocrd-tool.json b/ocrd-tool.json index a1007c0..5a7df19 100644 --- a/ocrd-tool.json +++ b/ocrd-tool.json @@ -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\"}'" + } + ] } } }