From e1b9d381a019eb5cb8da6bfd115446082284f317 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Thu, 5 Dec 2019 13:40:48 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Actually=20binarize=20the=20image?= =?UTF-8?q?=20(not=20grayscale!)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_recognize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_recognize.py b/test/test_recognize.py index 96f1888..3fc1458 100644 --- a/test/test_recognize.py +++ b/test/test_recognize.py @@ -44,7 +44,7 @@ def test_recognize(workspace): # So I'm going for option c. for f in ['INPUT_0017.tif', 'INPUT_0020.tif']: ff = os.path.join(WORKSPACE_DIR, 'OCR-D-IMG', f) - subprocess.call(['convert', ff, '-colorspace', 'Gray', ff]) + subprocess.call(['convert', ff, '-threshold', '50%', ff]) # XXX Should remove GT text to really test this