mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-04-30 19:22:03 +02:00
avoid deskewed contour matching w/ -romb
This commit is contained in:
parent
998ee2ecee
commit
c478c03db4
1 changed files with 1 additions and 1 deletions
|
|
@ -2423,7 +2423,7 @@ class Eynollah:
|
||||||
|
|
||||||
polygons_of_textregions = return_contours_of_interested_region(text_regions_p, label_text,
|
polygons_of_textregions = return_contours_of_interested_region(text_regions_p, label_text,
|
||||||
min_area=MIN_AREA_REGION)
|
min_area=MIN_AREA_REGION)
|
||||||
if np.abs(slope_deskew) >= SLOPE_THRESHOLD:
|
if np.abs(slope_deskew) >= SLOPE_THRESHOLD and not self.reading_order_machine_based:
|
||||||
polygons_of_textregions_d = return_contours_of_interested_region(text_regions_p_d, label_text,
|
polygons_of_textregions_d = return_contours_of_interested_region(text_regions_p_d, label_text,
|
||||||
min_area=MIN_AREA_REGION)
|
min_area=MIN_AREA_REGION)
|
||||||
if (len(polygons_of_textregions) and
|
if (len(polygons_of_textregions) and
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue