Skip to content

Commit 47a5adf

Browse files
author
Robert Sachunsky
committed
compute_hlines: fix h/v kernel size
1 parent 3ac4b70 commit 47a5adf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocrd_cis/ocropy/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ def compute_hlines(binary, scale,
536536
## with zero horizontal dilation, hlines would need
537537
## to be perfectly contiguous (i.e. without noise
538538
## from binarization):
539-
d1 = odd(max(1,scale/8))
540-
d0 = odd(max(1,scale/4))
539+
d0 = odd(max(1,scale/8))
540+
d1 = odd(max(1,scale/4))
541541
# TODO This does not cope well with slightly sloped or heavily fragmented lines
542542
horiz = binary
543543
# 1- close horizontally a little to make warped or

0 commit comments

Comments
 (0)