From 32d403753325a595b5bdb7ee2c76bc5aa99ce3cc Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Thu, 4 Apr 2024 19:38:27 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=20cli:=20Annotate=20types=20in=20proc?= =?UTF-8?q?ess=5Fdir()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dinglehopper/cli.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/dinglehopper/cli.py b/src/dinglehopper/cli.py index a4b3ce5..78ac33c 100644 --- a/src/dinglehopper/cli.py +++ b/src/dinglehopper/cli.py @@ -187,8 +187,15 @@ def process( def process_dir( - gt, ocr, report_prefix, reports_folder, *, metrics, differences, textequiv_level -): + gt: str, + ocr: str, + report_prefix: str, + reports_folder: str = ".", + *, + metrics: bool = True, + differences: bool = False, + textequiv_level: str = "region", +) -> None: for gt_file in os.listdir(gt): gt_file_path = os.path.join(gt, gt_file) ocr_file_path = os.path.join(ocr, gt_file)