mirror of
https://github.com/qurator-spk/ocrd_repair_inconsistencies.git
synced 2025-06-09 11:49:58 +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
|
@ -48,8 +48,11 @@ class RepairInconsistencies(Processor):
|
||||||
Label=[LabelType(type_=name,
|
Label=[LabelType(type_=name,
|
||||||
value=self.parameter[name])
|
value=self.parameter[name])
|
||||||
for name in self.parameter.keys()])]))
|
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:
|
for region in regions:
|
||||||
textLineOrder = 'top-to-bottom'
|
textLineOrder = 'top-to-bottom'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue