This commit is contained in:
Robert Sachunsky 2025-10-08 12:06:40 +02:00
parent e4ce4c593b
commit 05fb64676a

View file

@ -1928,8 +1928,8 @@ class Eynollah:
def get_slopes_and_deskew_new_curved(self, contours_par, textline_mask_tot, boxes, def get_slopes_and_deskew_new_curved(self, contours_par, textline_mask_tot, boxes,
mask_texts_only, num_col, scale_par, slope_deskew): mask_texts_only, num_col, scale_par, slope_deskew):
if not len(contours): if not len(contours_par):
return [], [], [], [] return [], [], []
self.logger.debug("enter get_slopes_and_deskew_new_curved") self.logger.debug("enter get_slopes_and_deskew_new_curved")
with share_ndarray(textline_mask_tot) as textline_mask_tot_shared: with share_ndarray(textline_mask_tot) as textline_mask_tot_shared:
with share_ndarray(mask_texts_only) as mask_texts_only_shared: with share_ndarray(mask_texts_only) as mask_texts_only_shared: