mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	update binarization threshold
This commit is contained in:
		@@ -59,6 +59,8 @@ def _create_job_service(job):
 | 
			
		||||
        command += f' -m {job.service_args["model"]}'
 | 
			
		||||
        if 'binarization' in job.service_args and job.service_args['binarization']:
 | 
			
		||||
            command += ' --binarize'
 | 
			
		||||
            value = job.service_args['ocropus_nlbin_threshold']
 | 
			
		||||
            command += f' --ocropus-nlbin-threshold {value}'
 | 
			
		||||
    elif job.service == 'transkribus-htr-pipeline':
 | 
			
		||||
        transkribus_htr_pipeline_model_id = job.service_args['model']
 | 
			
		||||
        command += f' -m {transkribus_htr_pipeline_model_id}'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user