From 9d2ebd9cecae851e49c5da60e8547a23a2f0087f Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Wed, 5 Apr 2023 15:01:12 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=94=20Add=20a=20basic=20test=20for=20ocrd?= =?UTF-8?q?=5Ftrocr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-ocrd_trocr.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 test-ocrd_trocr.sh diff --git a/test-ocrd_trocr.sh b/test-ocrd_trocr.sh new file mode 100755 index 0000000..2c19376 --- /dev/null +++ b/test-ocrd_trocr.sh @@ -0,0 +1,14 @@ +#!/bin/sh +set -ex + +cd `mktemp -d /tmp/test-ocrd_trocr-XXXXX` + +# Prepare processors + +# 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-trocr-recognize -I OCR-D-SEG-LINE-SBB -O TEST-TROCR