mirror of
https://github.com/qurator-spk/ocrd_repair_inconsistencies.git
synced 2025-06-09 03:40:06 +02: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
|
@ -49,7 +49,10 @@ class RepairInconsistencies(Processor):
|
|||
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