tests: improve tesseract coverage

This commit is contained in:
James R. Barlow
2020-01-04 02:35:14 -08:00
parent 599028bebb
commit 32041c43e1
2 changed files with 95 additions and 2 deletions
+2 -2
View File
@@ -260,8 +260,8 @@ def generate_hocr(
log,
):
output_hocr = next(o for o in output_files if o.endswith('.hocr'))
output_sidecar = next(o for o in output_files if o.endswith('.txt'))
output_hocr = next(o for o in output_files if fspath(o).endswith('.hocr'))
output_sidecar = next(o for o in output_files if fspath(o).endswith('.txt'))
prefix = os.path.splitext(output_hocr)[0]
args_tesseract = tess_base_args(language, engine_mode)