Skip to content

Commit fe122ae

Browse files
author
Robert Sachunsky
committed
segment: adapt to numpy deprecation
1 parent a2100c2 commit fe122ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocrd_cis/ocropy/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ def compute_seplines(binary, scale, maxseps=0):
643643
sepdists.append(np.median(subdistances))
644644
#LOG.debug("adding sublabel %d as sep %d (size %d [%s])", sublabel, numsep, sublabelsize, str(sublabelslice))
645645
sepsizes = np.array(sepsizes)
646-
sepslices = np.array(sepslices)
646+
sepslices = np.array(sepslices, dtype=object)
647647
LOG.debug("detected %d separator candidates", numsep)
648648
DSAVE("seps-raw", sepmap[labels])
649649
# now dilate+erode to link neighbouring candidates,

0 commit comments

Comments
 (0)