Actually binarize the image (not grayscale!)

fix/readme-no-checkpoint
Gerber, Mike 5 years ago
parent e07b333db1
commit e1b9d381a0

@ -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

Loading…
Cancel
Save