mirror of
				https://github.com/qurator-spk/ocrd_repair_inconsistencies.git
				synced 2025-10-31 08:54:13 +01:00 
			
		
		
		
	📝 Include an example script
This commit is contained in:
		
							parent
							
								
									e3a1d1e941
								
							
						
					
					
						commit
						e8d6845e74
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		
							
								
								
									
										14
									
								
								examples/fix-ocr-d-gt-page.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								examples/fix-ocr-d-gt-page.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | set -e | ||||||
|  | 
 | ||||||
|  | tmp_fg=FIXED_$RANDOM | ||||||
|  | 
 | ||||||
|  | ocrd_repair_inconsistencies -I OCR-D-GT-PAGE -O $tmp_fg | ||||||
|  | 
 | ||||||
|  | for f in $tmp_fg/*; do | ||||||
|  |   g="OCR-D-GT-PAGE/OCR-D-GT-PAGE_${f#$tmp_fg/$tmp_fg_}" | ||||||
|  |   cp $f $g | ||||||
|  | done | ||||||
|  | 
 | ||||||
|  | ocrd workspace remove-group -rf $tmp_fg | ||||||
|  | rmdir $tmp_fg | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue