mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-11-10 06:34:11 +01:00
Add test images; call TrOCR processor from the same directory as the TrOCR model
This commit is contained in:
parent
8732007aaf
commit
ed5b5c13dd
6 changed files with 8 additions and 8 deletions
|
|
@ -13,7 +13,7 @@ def test_run_eynollah_binarization_filename(
|
|||
tests_dir,
|
||||
options,
|
||||
):
|
||||
infile = tests_dir.joinpath('resources/kant_aufklaerung_1784_0020.tif')
|
||||
infile = tests_dir.joinpath('resources/2files/kant_aufklaerung_1784_0020.tif')
|
||||
outfile = tmp_path.joinpath('kant_aufklaerung_1784_0020.png')
|
||||
run_eynollah_ok_and_check_logs(
|
||||
'binarization',
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ from ocrd_models.constants import NAMESPACES as NS
|
|||
@pytest.mark.parametrize(
|
||||
"options",
|
||||
[
|
||||
["-trocr"],
|
||||
[], # defaults
|
||||
["-doit", #str(outrenderfile.parent)],
|
||||
],
|
||||
["-trocr"],
|
||||
], ids=str)
|
||||
def test_run_eynollah_ocr_filename(
|
||||
tmp_path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue