mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-10 20:59:54 +02:00
all options checked, failures are fixed and all tests passed
This commit is contained in:
parent
c25fcd8137
commit
3bda2f128e
6 changed files with 143 additions and 129 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue