From 9010250911323194a83aaa0e9b372f3c97c0f50a Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Tue, 4 Feb 2020 13:54:45 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=20test:=20Move=20binarization=20into?= =?UTF-8?q?=20the=20workspace=20fixture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_recognize.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_recognize.py b/test/test_recognize.py index 0fca48f..b6b6980 100644 --- a/test/test_recognize.py +++ b/test/test_recognize.py @@ -30,10 +30,6 @@ def workspace(): "https://github.com/OCR-D/assets/raw/master/data/kant_aufklaerung_1784/data/OCR-D-IMG/" + f, os.path.join(WORKSPACE_DIR, 'OCR-D-IMG', f)) - return workspace - - -def test_recognize(workspace): # The binarization options I have are: # # a. ocrd_kraken which tries to install cltsm, whose installation is borken on my machine (protobuf) @@ -46,6 +42,10 @@ def test_recognize(workspace): ff = os.path.join(WORKSPACE_DIR, 'OCR-D-IMG', f) subprocess.call(['convert', ff, '-threshold', '50%', ff]) + return workspace + + +def test_recognize(workspace): # XXX Should remove GT text to really test this CalamariRecognize(