From aabcafe46f599989bf18922aaa06c360622b3223 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Thu, 17 Aug 2023 19:40:26 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=94=20Add=20test-sbb=5Fbinarization.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-sbb_binarization.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 test-sbb_binarization.sh diff --git a/test-sbb_binarization.sh b/test-sbb_binarization.sh new file mode 100755 index 0000000..cc0afa9 --- /dev/null +++ b/test-sbb_binarization.sh @@ -0,0 +1,16 @@ +#!/bin/sh +set -ex + +test_id=`basename $0` +cd `mktemp -d /tmp/$test_id-XXXXX` + +# Prepare processors +ocrd resmgr download ocrd-sbb-binarize default-2021-03-09 + +# Prepare test workspace +wget https://qurator-data.de/examples/actevedef_718448162.first-page+binarization+segmentation.zip +unzip actevedef_718448162.first-page+binarization+segmentation.zip +cd actevedef_718448162.first-page+binarization+segmentation + +# Run tests +ocrd-sbb-binarize -P model default-2021-03-09 -I OCR-D-IMG -O TEST-OCRD-SBB-BINARIZE