mirror of
				https://github.com/qurator-spk/ocrd_repair_inconsistencies.git
				synced 2025-10-31 17:04:13 +01:00 
			
		
		
		
	✨ Support TextRegions nested in Table/GraphicRegions
This commit is contained in:
		
							parent
							
								
									6897996810
								
							
						
					
					
						commit
						5c09883c82
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -48,8 +48,11 @@ class RepairInconsistencies(Processor): | |||
|                                      Label=[LabelType(type_=name, | ||||
|                                                       value=self.parameter[name]) | ||||
|                                             for name in self.parameter.keys()])])) | ||||
|              | ||||
|             regions = page.get_TextRegion() | ||||
| 
 | ||||
|             regions = [] | ||||
|             regions.extend(page.get_TextRegion()) | ||||
|             for special_region in page.get_TableRegion() + page.get_GraphicRegion(): | ||||
|                 regions.extend(special_region.get_TextRegion()) | ||||
| 
 | ||||
|             for region in regions: | ||||
|                 textLineOrder = 'top-to-bottom' | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue