mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-04-30 19:22:03 +02:00
do_order_of_regions(): use region mask instead of textline mask…
for local (within-box) ordering of region contours, use the same text mask (merely eroded) as for the contour extraction itself: the text+table+drop mask from early+full layout prediction, rather than the textline mask, because the latter may be empty in some boxes and is unlikely to be more useful than the region mask itself
This commit is contained in:
parent
63df9be4db
commit
7e7cc6a801
1 changed files with 2 additions and 2 deletions
|
|
@ -2536,7 +2536,7 @@ class Eynollah:
|
||||||
polygons_of_textregions,
|
polygons_of_textregions,
|
||||||
polygons_of_textregions_h,
|
polygons_of_textregions_h,
|
||||||
polygons_of_drop_capitals,
|
polygons_of_drop_capitals,
|
||||||
boxes, textline_mask_tot_ea)
|
boxes, regions_without_separators) #textline_mask_tot_ea)
|
||||||
else:
|
else:
|
||||||
boxes_d = self.run_boxes_order(text_regions_p_d, num_col_classifier, erosion_hurts,
|
boxes_d = self.run_boxes_order(text_regions_p_d, num_col_classifier, erosion_hurts,
|
||||||
regions_without_separators_d,
|
regions_without_separators_d,
|
||||||
|
|
@ -2547,7 +2547,7 @@ class Eynollah:
|
||||||
polygons_of_textregions_d,
|
polygons_of_textregions_d,
|
||||||
polygons_of_textregions_h_d,
|
polygons_of_textregions_h_d,
|
||||||
polygons_of_drop_capitals,
|
polygons_of_drop_capitals,
|
||||||
boxes_d, textline_mask_tot_ea_d)
|
boxes_d, regions_without_separators_d) #textline_mask_tot_ea_d)
|
||||||
self.logger.info(f"Detection of reading order took {time.time() - t_order:.1f}s")
|
self.logger.info(f"Detection of reading order took {time.time() - t_order:.1f}s")
|
||||||
|
|
||||||
self.logger.info("Step 5/5: Output Generation")
|
self.logger.info("Step 5/5: Output Generation")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue