mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-07-11 22:29:29 +02:00
get_textlines_of_textregion_sorted: fix be61875
This commit is contained in:
parent
01e69a0e22
commit
5e531ab006
1 changed files with 1 additions and 1 deletions
|
|
@ -901,7 +901,7 @@ class Eynollah:
|
||||||
if N > 1:
|
if N > 1:
|
||||||
mean_y_diff = np.median(diff_cy)
|
mean_y_diff = np.median(diff_cy)
|
||||||
mean_x_diff = np.median(diff_cx)
|
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
|
count_ver = N - count_hor
|
||||||
else:
|
else:
|
||||||
mean_y_diff = 0
|
mean_y_diff = 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue