From ccd83e94b150bf0eb23a8a3bcd3e2b2e20416f4f Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Mon, 1 Mar 2021 17:46:48 +0100 Subject: [PATCH] typo: s,cprrsp,corresp,g --- qurator/eynollah/eynollah.py | 4 ++-- qurator/eynollah/utils/drop_capitals.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qurator/eynollah/eynollah.py b/qurator/eynollah/eynollah.py index ca23a16..edb8a89 100644 --- a/qurator/eynollah/eynollah.py +++ b/qurator/eynollah/eynollah.py @@ -50,7 +50,7 @@ from .utils.separate_lines import ( separate_lines_new2, return_deskew_slop) from .utils.drop_capitals import ( - adhere_drop_capital_region_into_cprresponding_textline, + adhere_drop_capital_region_into_corresponding_textline, filter_small_drop_capitals_from_no_patch_layout) from .utils.marginals import get_marginals from .utils.resize import resize_image @@ -1753,7 +1753,7 @@ class Eynollah: polygons_of_tabels = [] pixel_img = 4 polygons_of_drop_capitals = return_contours_of_interested_region_by_min_size(text_regions_p, pixel_img) - all_found_texline_polygons = adhere_drop_capital_region_into_cprresponding_textline(text_regions_p, polygons_of_drop_capitals, contours_only_text_parent, contours_only_text_parent_h, all_box_coord, all_box_coord_h, all_found_texline_polygons, all_found_texline_polygons_h, kernel=KERNEL, curved_line=self.curved_line) + all_found_texline_polygons = adhere_drop_capital_region_into_corresponding_textline(text_regions_p, polygons_of_drop_capitals, contours_only_text_parent, contours_only_text_parent_h, all_box_coord, all_box_coord_h, all_found_texline_polygons, all_found_texline_polygons_h, kernel=KERNEL, curved_line=self.curved_line) # print(len(contours_only_text_parent_h),len(contours_only_text_parent_h_d_ordered),'contours_only_text_parent_h') pixel_lines = 6 diff --git a/qurator/eynollah/utils/drop_capitals.py b/qurator/eynollah/utils/drop_capitals.py index 5479457..4472f24 100644 --- a/qurator/eynollah/utils/drop_capitals.py +++ b/qurator/eynollah/utils/drop_capitals.py @@ -6,7 +6,7 @@ from .contour import ( return_parent_contours, ) -def adhere_drop_capital_region_into_cprresponding_textline( +def adhere_drop_capital_region_into_corresponding_textline( text_regions_p, polygons_of_drop_capitals, contours_only_text_parent,