mirror of
https://github.com/mikegerber/ocrd_calamari.git
synced 2025-06-09 19:59:53 +02:00
✅ Actually binarize the image (not grayscale!)
This commit is contained in:
parent
e07b333db1
commit
e1b9d381a0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue