get_textlines_of_textregion_sorted: fix be61875

This commit is contained in:
Robert Sachunsky 2026-07-01 18:27:46 +02:00
parent 01e69a0e22
commit 5e531ab006

View file

@ -901,7 +901,7 @@ class Eynollah:
if N > 1:
mean_y_diff = np.median(diff_cy)
mean_x_diff = np.median(diff_cx)
count_hor = np.count_nonzero(np.diff(w_h_textline) > 0)
count_hor = np.count_nonzero(np.diff(w_h_textline, axis=0) > 0)
count_ver = N - count_hor
else:
mean_y_diff = 0