all options checked, failures are fixed and all tests passed

This commit is contained in:
vahid 2021-02-27 09:59:10 -05:00
parent c25fcd8137
commit 3bda2f128e
6 changed files with 143 additions and 129 deletions

View file

@ -43,7 +43,6 @@ def get_text_region_boxes_by_given_contours(contours):
def filter_contours_area_of_image(image, contours, hirarchy, max_area, min_area):
found_polygons_early = list()
jv = 0
for c in contours:
if len(c) < 3: # A polygon cannot have less than 3 points

View file

@ -58,4 +58,5 @@ def xml_reading_order(page, order_of_texts, id_of_texts, id_of_marginalia, found
name.set('index', str(indexer_region))
name.set('regionRef', 'r%s' % indexer_region)
indexer_region += 1
return id_of_marginalia