mirror of
				https://github.com/qurator-spk/dinglehopper.git
				synced 2025-11-04 03:14:16 +01:00 
			
		
		
		
	⚙ cli: Annotate types in process_dir()
This commit is contained in:
		
							parent
							
								
									fe1a713d55
								
							
						
					
					
						commit
						32d4037533
					
				
					 1 changed files with 9 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue