1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-06-20 00:59:58 +02:00

⚙ cli: Annotate types in process_dir()

This commit is contained in:
Mike Gerber 2024-04-04 19:38:27 +02:00
parent fe1a713d55
commit 32d4037533

View file

@ -187,8 +187,15 @@ def process(
def process_dir( 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): for gt_file in os.listdir(gt):
gt_file_path = os.path.join(gt, gt_file) gt_file_path = os.path.join(gt, gt_file)
ocr_file_path = os.path.join(ocr, gt_file) ocr_file_path = os.path.join(ocr, gt_file)